Hello,

I'm trying to work with the environment variable $PATH_INFO in a website
that has PHP as CGI, not as an Apache module. The differences are these:

1. As an Apache module when I get into this URL:
http://foo/script.php/path/info
everything works fine and $PATH_INFO equals to "/path/info"

2. But as CGI (the case of my Hosting Provider), the server sends a 500
Error and says "premature end of script headers".

Is this a normal behavior or its a problem with the server ? I'm hosting my
website on VERIO and can not change provider.

This is the answer that they gave me:
--------------------------------------
The above URL is not a valid path, and will not work when PHP is running as
a cgi. Please be advised that we have upgraded to PHP 4.1.2, so the error
coding is different. The above path is displaying an Internal Server error
because the php cgi is attempting to parse a path that does not exist.
------------------------------------

Are they right ?

TIA,

_____________________
Mauricio Cuenca



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to