Is there a way to test for a file?
| From: | Doug Coning | Date: | Tue, 08 Oct 2002 14:59:57 +0000 |
| Subject: | Is there a way to test for a file? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-119270@lists.php.net to get a copy of this message | ||
Hi everyone,
I'm a PHP newbie and wanted to know if there is a way to test for a file.
The reason I'd like to do this is because I'm writing a query to return
items from a catalog. However, if the client hasn't uploaded a picture or
if the picture is misteriously missing from the image folder, instead of
returning the product with the infamous missing jpeg picture, I would rather
the product be skipped altogether.
I'd like PHP to check to see if the image/picture.jpg exists before
returning the picture. Is this possible?
Thanks!
Doug Coning
American Web Studio
www.americanwebstudio.com