Page 1 of 1

how display out the image without specifc director?

Posted: Mon May 17, 2004 10:42 am
by teckyan888
let say i have a picture that instore in a folder...Then,can i don't use the specific directory to search it out? If got,what is the code for it? thanks...

Posted: Mon May 17, 2004 11:01 am
by lostboy
2 ways:

1. fix the path as a constant in the application (on the main include file, say) DEFINE $imagepath = "some\path\to\images\";

2. write a functions that scours the folders looking for a match using the filesysem utils FSO. In particular have a look at the user comments below...there are a few that match your needs