note 61252 added to function.fstat
| From: | mordae at mordae dot net | Date: | Sun, 29 Jan 2006 15:12:56 +0000 |
| Subject: | note 61252 added to function.fstat | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-102669@lists.php.net to get a copy of this message | ||
dom at dodgydom dot com wrote:
Best way i found was to open the url into $data and make a temporary file with the contents of $data
then get the fstats on the temporary file :).
OMG why? The only thing that will remain is the file size. You also download up to 1G file, which
probably is not what you want.
To get size use PHP's function filesize() with URL wrappers or ask yourself via HTTP.
----
Server IP: 212.24.129.6
Probable Submitter: 212.158.130.217
----
Manual Page -- http://www.php.net/manual/en/function.fstat.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+61252
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+61252&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+61252&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+61252&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+61252&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+61252&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+61252&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+61252&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+61252&report=yes
Search -- http://master.php.net/manage/user-notes.php