note 51978 deleted from function.getallheaders by didou

From: Date: Mon, 31 Dec 2007 00:05:19 +0000
Subject: note 51978 deleted from function.getallheaders by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-134559@lists.php.net to get a copy of this message
Note Submitter: ZevS ---- if PHP installed not as Apache-module: <?php function emu_getallheaders() { foreach($_SERVER as $h=>$v) if(ereg('HTTP_(.+)',$h,$hp)) $headers[$hp[1]]=$v; return $headers; } ?> I put this code to file "/var/www/include", and edit php.ini: auto_prepend_file = "/var/www/include"

« previous php.notes (#134559) next »