Remote File system size

From: Date: Wed, 12 Sep 2001 10:36:57 +0000
Subject: Remote File system size
Groups: php.general 
Request: Send a blank email to php-general+get-67032@lists.php.net to get a copy of this message
I need to know the file size of remote file, but never be able to do it. One of the my example PHP Script: <?php $location = "http://www.blockm.com/admin.gif"; $fp = fopen($location,"w"); file://$fp = file_exists($location); if(!$fp) {$message = "File not found";} else {$message = "File Found"; $temp = fstat($location); $image = GetImageSize ($location); } echo "$message<br>"; echo "File Size: " . $temp[7] . "<br>"; echo "Image Size: $image[3]<br>"; fclose($fp); ?> The above script can working properly for reading local file. NB: I am doing project for Banner exchange. I want to put all the banner immage on remote Server. Regards Eko

« previous php.general (#67032) next »