[PHP] PATH_INFO in CGI Mode

2002-05-24 Thread Mauricio Cuenca

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




Re: [PHP] PATH_INFO in CGI Mode

2002-05-24 Thread Analysis Solutions

Mauricio:

On Fri, May 24, 2002 at 09:25:33AM -0500, Mauricio Cuenca wrote:
 
 I'm trying to work with the environment variable $PATH_INFO in a website
 that has PHP as CGI, not as an Apache module.

I find the following to provide consistent information between CGI and 
Module modes:

   *['PHP_SELF']
   *['REQUEST_URI']
   *['SCRIPT_NAME']

The * represents $_SERVER or $HTTP_SERVER_VARS.

--Dan

-- 
   PHP classes that make web design easier
SQL Solution  |   Layout Solution   |  Form Solution
sqlsolution.info  | layoutsolution.info |  formsolution.info
 T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
 4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409

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