Re: getimagesize() with ftp-url?
| From: | nicos@php.net | Date: | Sat, 12 Oct 2002 22:40:25 +0000 |
| Subject: | Re: getimagesize() with ftp-url? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-119746@lists.php.net to get a copy of this message | ||
getimagesize isn't remote.
--
Nicos - CHAILLAN Nicolas
nicos@php.net
www.WorldAKT.com - Hébergement de sites Internet
"Stefan Wessman" <onionman@home.se> a écrit dans le message de news:
20021012220441.86027.qmail@pb1.pair.com...
> Hi!
>
> Can anyone tell me if the getimagesize() function is supposed to work with
> ftp-url's?
> The PHP Manual states "URL support was added in PHP 4.0.5", but maby that
is
> supposed to mean http-url's only?
>
> The following is an expample of how i would like to be able to use
> getimagesize():
>
> <?php
> $size =
>
> getimagesize("ftp://user:pass@www.mysite.net/pictures/image.jpg");
>
> echo '<pre>';
> print_r($size);
> echo '</pre>';
> ?>
>
> This code yields the following errors in my log:
>
> [12-Oct-2002 23:32:14] PHP Warning: getimagesize(): php_hostconnect:
> connect failed in getimagesize.php on line 2
> [12-Oct-2002 23:32:14] PHP Warning: getimagesize(...): failed to create
> stream: FTP server reports 227 Entering Passive Mode (194.236.xxx.xxx in
> getimagesize.php on line 2
>
> Is this a bug, or is it a missing feature, or maby a documentation issue?
> I've tried it on a few different ftp-servers, so i don't think that is the
> problem.. but who knows?
>
> Any thoghts would be appreciated.
>
> /OnionMan
>
>