note 51978 deleted from function.getallheaders by didou
| Newsgroups | php.notes |
|---|---|
| Message-ID | <[email protected]> |
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"