how display out the image without specifc director?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
teckyan888
Forum Commoner
Posts: 40
Joined: Tue May 11, 2004 10:46 am

how display out the image without specifc director?

Post 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...
lostboy
Forum Contributor
Posts: 329
Joined: Mon Dec 30, 2002 8:12 pm
Location: toronto,canada

Post 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
Post Reply