3
Contributors
5
Replies
6
Views
6 Years
Discussion Span
Last Post by andrewliu
0

Have a look at the functions in SPL. If you're looking for something simpler and you have the filename already - check for its existence with file_exists(). Check out the file functions in the php manual:

http://uk.php.net/manual/en/ref.filesystem.php

Be careful though, when using paths to files. Most don't reference in the same was as 'href' or 'src' attributes in html. They usually access the webroot if you use an absolute reference ("/...").

0

I do want to search and have the filename in the weblink. and what is SPL? sorry, i'm new to this

0

You must stored the path of the image file into mysql database. Then try to query the file path using PHP.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.