Check if file exists with file_exists().

Niklas


-----Original Message-----
From: Diana Castillo [mailto:[EMAIL PROTECTED] 
Sent: 3. huhtikuuta 2003 11:42
To: [EMAIL PROTECTED]
Subject: [PHP] @getimagesize


even though I use a @getimagesize , I still get the following Warning
when the image is not on the server.  I need to somehow not have the
warning come out when there is no image there.

Warning:
getimagesize(http://www.hotelresb2b.com/planos/PLHAHC019330.GIF)
[function.getimagesize]: failed to create stream: HTTP request failed!
HTTP/1.1 404 Not Found at
c:\inetpub\wwwroot\web\site\ReservationManager.php line 190.

I am using PHP Version 4.3.1
Thank you , Diana 

###########################################
This message has been scanned by F-Secure Anti-Virus for Internet Mail.
For more information, connect to http://www.F-Secure.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to