note 19879 rejected from function.file by torben
| From: | torben@php.net | Date: | Thu, 14 Mar 2002 00:55:42 +0000 |
| Subject: | note 19879 rejected from function.file by torben | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-27768@lists.php.net to get a copy of this message | ||
Question:
How do I get the size of an html page that is a url not a file?
Answer:
$myurl = "http://www.fuzzygroup.com/";
$content_array = file($myurl);
$content = implode("", $content_array);
$mysize = strlen($content);
print $mysize;
[Ed. note - I just accidentally rejected this note, so I'm putting it back using the original
poster's email address. -- Torben]