Apache 2 Correctly Sets PATH_TRANSLATED

According to the CGI specification, PATH_TRANSLATED should be set only when PATH_INFO has a value.

The PHP Apache 1.x module always sets PATH_TRANSLATED, regardless of PATH_INFO. The Apache 2.x module correctly obeys the specification.

To get the actual path to the script, use SCRIPT_FILENAME instead.

Get Upgrading to PHP 5 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.