php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3045 Yes, it is bacause PATH_TRANSLATED...
Submitted: 1999-12-24 20:35 UTC Modified: 2000-06-28 14:19 UTC
From: andrey at cherezov dot koenig dot su Assigned:
Status: Closed Package: Other
PHP Version: 4.0 Beta 3 OS: Windows98
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: andrey at cherezov dot koenig dot su
New email:
PHP Version: OS:

 

 [1999-12-24 20:35 UTC] andrey at cherezov dot koenig dot su
Addition to bug report id 3042, 3044.
Yes, if my web-server (Eserv/2.91) set value
of PATH_TRANSLATED to the same string as in the
command line of PHP.EXE (v4), i.e. script filename,
PHP4 opens this script OK and runs OK.
But... please re-read the CGI specifications:
PATH_TRANSLATED is NOT for script filename...

From CGI docs:
For example, the URL "http://host/dir/foo.cgi/stuff1/stuff2/stuff3" would have "wnroot/stuff1/stuff2/stuff3" in the PATH_TRANSLATED variable. 
---------------
PATH_INFO 
Extra information in the "path" of a CGI URL. More precisely everything after the actual name of the program. For example, the URL "http://host/dir/foo.cgi/stuff1/stuff2/stuff3" would have "/stuff1/stuff2/stuff3" in the PATH_INFO variable. 

PATH_TRANSLATED 
This assumes that PATH_INFO is the path of a file relative to your root and provides the path relative to the system root. For example, the URL "http://host/dir/foo.cgi/stuff1/stuff2/stuff3" would have "wnroot/stuff1/stuff2/stuff3" in the PATH_TRANSLATED variable. 


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-06-28 14:19 UTC] andi at cvs dot php dot net
Please check PHP 4.0.1 when it is released tomorrow. This should be fixed. If you still have problems please open a new bug report.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Jun 04 01:01:29 2024 UTC