according to the documentation on php.net , This function will not work on remote files; the file to be examined must be accessible via the server's filesystem.
so it wont work for http "Niklas lampén" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > 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