Bug #13256 Updated: Remote File Size / Attribute
| From: | derick@php.net | Date: | Wed, 12 Sep 2001 05:18:34 +0000 |
| Subject: | Bug #13256 Updated: Remote File Size / Attribute | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-65804@lists.php.net to get a copy of this message | ||
ID: 13256
Updated by: derick
Reported By: eko@softhome.net
Old Status: Open
Status: Bogus
Bug Type: Filesystem function related
Operating System: Windows & Linux
PHP Version: 4.0.6
New Comment:
Ask for support questions on the php-general@lists.php.net mailing list.
Derick
Previous Comments:
------------------------------------------------------------------------
[2001-09-11 21:01:09] eko@softhome.net
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");
//$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
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=13256&edit=1