note 107531 added to function.get-headers

From: Date: Wed, 15 Feb 2012 19:06:58 +0000
Subject: note 107531 added to function.get-headers
Groups: php.notes 
Request: Send a blank email to php-notes+get-186153@lists.php.net to get a copy of this message
It should be noted that rather than returning "false" on failure, this function (and others) return a big phat WARNING that will halt your script in its tracks if you do not have error reporting /warning turned off. Thats just insane! Any function that does something like fetch a URL should simply return false, without a warning, if the URL fails for whatever reason other than it is badly formatted. ---- Server IP: 69.147.83.197 Probable Submitter: 190.42.215.22 ---- Manual Page -- http://www.php.net/manual/en/function.get-headers.php Edit -- https://master.php.net/note/edit/107531 Del: integrated -- https://master.php.net/note/delete/107531/integrated Del: useless -- https://master.php.net/note/delete/107531/useless Del: bad code -- https://master.php.net/note/delete/107531/bad+code Del: spam -- https://master.php.net/note/delete/107531/spam Del: non-english -- https://master.php.net/note/delete/107531/non-english Del: in docs -- https://master.php.net/note/delete/107531/in+docs Del: other reasons-- https://master.php.net/note/delete/107531 Reject -- https://master.php.net/note/reject/107531 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#186153) next »