tags:

views:

148

answers:

1

I've just switched my scripts to a different server. On the previous server this worked flawlessly, and now that I've switched them to a different server, I can't understand the problem.

I'm not sure it would help, but here's the relevant code.

$headers = apache_request_headers();

PHP Version is: PHP 5.3.2

Any help would be appreciated.

+4  A: 

From the docs:

This function is only supported when PHP is installed as an Apache module.

Said docs also include replacement functions that mimic the functionality of apache_request_headers by stepping through $_SERVER.

ceejayoz