RE: [PHP] Quick Q: how to detect if image exists?
| From: | Maxim Maletsky | Date: | Thu, 14 Sep 2000 05:32:03 +0000 |
| Subject: | RE: [PHP] Quick Q: how to detect if image exists? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-16716@lists.php.net to get a copy of this message | ||
Thanks,
I though about it, but was curious is there could be a dedicated
'graphic_related' function...
Cheers!
-----Original Message-----
From: Jason Murray [mailto:Jason.Murray@melbourneit.com.au]
Sent: Thursday, September 14, 2000 3:26 PM
To: Maxim Maletsky; PHP General List. (E-mail)
Subject: RE: [PHP] Quick Q: how to detect if image exists?
> 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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net