try an fopen to check if the file is there first ? -----Original Message----- From: Diana Castillo [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 7:24 PM To: [EMAIL PROTECTED] Subject: [PHP] @getimagesize
I use @getimagesize to resize pictures that I get from a url which comes from a database which is always changing. The problem is that sometimes the url does not contain the picture is is supposed to , and then I get the following error - I can't seem to get rid of this error, does anyone know how to capture the error so it doesnt come out in a message like this? getimagesize(http://www.hotelresb2b.com/images/hoteles/P1KYHC014833.JPG) [function.getimagesize]: failed to create stream: HTTP request failed! HTTP/1.1 404 Not Found at ReservationManager.php line 299. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php