note 19879 added to function.file

From: Date: Thu, 14 Mar 2002 00:32:04 +0000
Subject: note 19879 added to function.file
Groups: php.notes 
Request: Send a blank email to php-notes+get-27766@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] -- http://www.php.net/manual/en/function.file.php http://master.php.net/manage/user-notes.php?action=edit+19879 http://master.php.net/manage/user-notes.php?action=delete+19879 http://master.php.net/manage/user-notes.php?action=reject+19879

« previous php.notes (#27766) next »