note 13282 deleted from function.filesize by jimw

From: Date: Fri, 14 Dec 2001 20:17:24 +0000
Subject: note 13282 deleted from function.filesize by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-22718@lists.php.net to get a copy of this message
I find it is much easier to use outbuffer to check the file size of an remote file. Hier is a example: //-------------------------------------- ob_start();//start out buffer $fp=fopen($picurlname,"rb");//open remote file fpassthru($fp);//send file to the output $response=ob_get_contents();//get file content $size=ob_get_length();//get file size ob_end_clean();//close buffer without output //-------------------------------------- I use this to copy photos form remote server into my album

« previous php.notes (#22718) next »