|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #14122 wrong $PHP_SELF value when executing script with params
Submitted: 2001-11-19 14:48 UTC Modified: 2002-06-18 18:58 UTC
From: techtonik at tut dot by Assigned:
Status: Closed Package: Variables related
PHP Version: 4.0.6 OS: Windows 98 Apache 1.3.22
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: techtonik at tut dot by
New email:
PHP Version: OS:


 [2001-11-19 14:48 UTC] techtonik at tut dot by
* script index.php located alone in 'directory/site/'
When calling it like 'http://server/directory/site/index/index' variable
$SCRIPT_NAME = $PHP_SELF = $HTTP_SERVER_VARS["SCRIPT_NAME"] = $HTTP_SERVER_VARS["PHP_SELF"] = '/directory/site/index/index.php' instead of '/directory/site/index.php' 

* standart version 4.06 php4apache.dll & php4ts.dll
Build Date Jun 22 2001 running in safe mode.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-12-24 10:09 UTC]
Dupe of 13606
 [2002-06-18 18:58 UTC]
See bug #13606

PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Tue Oct 19 12:03:33 2021 UTC