$PATH_INFO strangeness

From: Date: Mon, 20 Aug 2001 23:24:06 +0000
Subject: $PATH_INFO strangeness
Groups: php.general 
Request: Send a blank email to php-general+get-63583@lists.php.net to get a copy of this message
I'm trying to develop an application that uses "search engine friendly" URLs, by reading everything after test.php as the variables necessary to display the requested dynamic content. I'm encountering the following strange results with $PATH_INFO. Scenario 1: Running Apache 1.3.20 (SAPI) on WIN2K with PHP 4.0.6. Calling test.php/foo/bar with the contents: <? phpinfo(); ?> Produces the result (among everything else): HTTP_SERVER_VARS["PATH_INFO"]: /foo/bar However, an <? echo "Path info: $PATH_INFO"; ?> produces an empty result. Same with $HTTP_SERVER_VARS["PATH_INFO"]. Scenario 2 (a & b): Running a) Apache 1.3.12 on WIN2K w/ PHP 4.0.6 (cgi binary) or b) Apache 1.3.12 on Linux with PHP 4.0.4pl1 (cgi binary) Calling test.php/foo/bar with the contents: <? phpinfo(); ?> Produces a 500 internal server error. Can someone give me some tips for accomplishing this task, or point me in the direction of some good documentation on said subject? TIA. -- Best regards, Brian Curtis

« previous php.general (#63583) next »