note 99814 added to function.getallheaders

From: Date: Wed, 08 Sep 2010 17:24:48 +0000
Subject: note 99814 added to function.getallheaders
Groups: php.notes 
Request: Send a blank email to php-notes+get-172380@lists.php.net to get a copy of this message
// apache_request_headers replicement for nginx if (!function_exists('apache_request_headers')) { function apache_request_headers() { foreach($_SERVER as $key=>$value) { if (substr($key,0,5)=="HTTP_") { $key=str_replace(" ","-",ucwords(strtolower(str_replace("_"," ",substr($key,5))))); $out[$key]=$value; }else{ $out[$key]=$value; } } return $out; } } ---- Server IP: 69.147.83.197 Probable Submitter: 89.216.117.17 ---- Manual Page -- http://www.php.net/manual/en/function.getallheaders.php Edit -- https://master.php.net/note/edit/99814 Del: integrated -- https://master.php.net/note/delete/99814/integrated Del: useless -- https://master.php.net/note/delete/99814/useless Del: bad code -- https://master.php.net/note/delete/99814/bad+code Del: spam -- https://master.php.net/note/delete/99814/spam Del: non-english -- https://master.php.net/note/delete/99814/non-english Del: in docs -- https://master.php.net/note/delete/99814/in+docs Del: other reasons-- https://master.php.net/note/delete/99814 Reject -- https://master.php.net/note/reject/99814 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#172380) next »