note 51978 deleted from function.getallheaders by didou

[email protected]
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"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.