note 74718 deleted from function.filesize by danbrown

From: Date: Sun, 18 Jan 2009 18:07:21 +0000
Subject: note 74718 deleted from function.filesize by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-149408@lists.php.net to get a copy of this message
Note Submitter: plyyyy [AT] gmail [DOT] com ---- simple addition to function remotefsize by Josh Finlay(http part): (sometimes servers send headers in lower case) if (($sch == "http") || ($sch == "https")) { $headers = array_change_key_case(get_headers($url, 1),CASE_LOWER); if ((!array_key_exists("content-length", $headers))) { return false; } return $headers["content-length"]; }

« previous php.notes (#149408) next »