[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

[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 yo