Re: @getimagesize
| From: | Diana Castillo | Date: | Thu, 03 Apr 2003 10:42:10 +0000 |
| Subject: | Re: @getimagesize | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-142104@lists.php.net to get a copy of this message | ||
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" <niklas.lists@publico.fi> wrote in message
news:007201c2f9be$afa36a20$bafac5c3@niklasxp...
> Check if file exists with file_exists().
>
>
> Niklas
>
>
> -----Original Message-----
> From: Diana Castillo [mailto:diana@interhotel.com]
> Sent: 3. huhtikuuta 2003 11:42
> To: php-general@lists.php.net
> 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/