linuxjuggler/codeigniter-restserver — comment on commit fc1d9a8022f4a0f558eb5ddd960e2571f2fb30a1
File:  line 0
By linuxjuggler:

since the apache_request_headers function will work only if php was installed as apache mod ( http://php.net/manual/en/function.apache-request-headers.php check the change log ), i had a problem on the live server
so i have change it a bit to check if its exist or not ..
if its not found use the getenv() function instead ..

am not sure if my code is right, but it solved my problem ..