[PHP] Re: getimagesize with image in database

2002-09-02 Thread Erwin

Chaillan Nicolas wrote:
 Hi,

 There is no way to get the filesize of a file using a remote file.

That's not true. GetImageSize works also on remote files.

 here's my code
 $imagesize = getimagesize(http://domain/image.jpg);
 echo $imagesize[3];

 but it returns nothing.  If I use a local file, without http  it
 works.

But I have no clue what's the problem here. Are you sure the file exists?

Grtz Erwin



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




[PHP] Re: getimagesize with image in database

2002-09-01 Thread CHAILLAN Nicolas

Hi,

There is no way to get the filesize of a file using a remote file. You
should download it to a tmp directory then check. If it is get with an http
server, you should code something with sockets to ask to the http server the
filesize using a request.

--
Merci de nous avoir choisi. - Thanks you for your choice.
Nicos - CHAILLAN Nicolas
[EMAIL PROTECTED]
[EMAIL PROTECTED]
www.GroupAKT.com - Hébergement Group.
www.WorldAKT.com - Hébergement de sites Internet
Chuck Barnett [EMAIL PROTECTED] a écrit dans le message de news:
006901c251d8$3ce1ec20$[EMAIL PROTECTED]
Hi, I'm trying to get an image size from an image in a database.

here's my code
$imagesize = getimagesize(http://domain/image.jpg);
echo $imagesize[3];

but it returns nothing.  If I use a local file, without http  it works.

I have php 4.0.6

any suggestions.

Thanks,
Chuck




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