RE: [PHP] Quick Q: how to detect if image exists?
| From: | Jason Murray | Date: | Thu, 14 Sep 2000 06:26:29 +0000 |
| Subject: | RE: [PHP] Quick Q: how to detect if image exists? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-16713@lists.php.net to get a copy of this message | ||
> How to detect if immage exists?
>
> I need the script to be under the statement so,
> unless I upload a certain file in a certain directory
> the function will not work..
>
> Something like:
>
> if (I can find the $image in this $directory)
> {
> Go
> }
> else
> ....
file_exists()
http://www.php.net/manual/function.file-exists.php
Jason