Re: how to get the filesize of an online document?
| From: | Sebastian Muszytowski | Date: | Wed, 08 Apr 2009 11:13:05 +0000 |
| Subject: | Re: how to get the filesize of an online document? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-291206@lists.php.net to get a copy of this message | ||
Hi,
thanks for the hint, but how can i get the size when the header isn't specified?
is there the possibility to "count the bits and bytes" when i get the file?
Sebastian
Gevorg Harutyunyan schrieb:
Hi, You must get content-length http header value, but sometimes header is not set and you don't have any chance to get size. For more info see **get_headers** function description. On Wed, Apr 8, 2009 at 12:31 PM, Sebastian Muszytowski <s.muszytowski@googlemail.com <mailto:s.muszytowski@googlemail.com>> wrote:Hello everyone,i have a little problem. I want to get the filesize of an online document (for example an rss or atom feed). I tried the filesize() function, but this doesn't work. I also search for options with cUrl but i didn't found any solution.Hope you can give me some hints or code snipplets so that i can work for an solution.Thanks in advanceSebastian-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php-- Best Regards, Gevorg Harutyunyan www.soongy.com <http://www.soongy.com>