Re: how to get the filesize of an online document?
| From: | Gevorg Harutyunyan | Date: | Wed, 08 Apr 2009 07:58:16 +0000 |
| Subject: | Re: how to get the filesize of an online document? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-291202@lists.php.net to get a copy of this message | ||
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> 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 advance
>
> Sebastian
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
Best Regards,
Gevorg Harutyunyan
www.soongy.com