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


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to