note 61252 deleted from function.fstat by danbrown
| From: | danbrown@php.net | Date: | Sun, 11 Jan 2009 18:34:59 +0000 |
| Subject: | note 61252 deleted from function.fstat by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-149061@lists.php.net to get a copy of this message | ||
Note Submitter: mordae at mordae dot net
----
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.