Doc #61303 [Opn->Csd]: $_SERVER['PHP_SELF'] description

From: Date: Wed, 18 Dec 2013 21:38:13 +0000
Subject: Doc #61303 [Opn->Csd]: $_SERVER['PHP_SELF'] description
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-10720@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=61303&edit=1 ID: 61303 Updated by: philstu@php.net Reported by: pl1 at liscovius dot de Summary: $_SERVER['PHP_SELF'] description -Status: Open +Status: Closed Type: Documentation Problem Package: Documentation problem PHP Version: Irrelevant -Assigned To: +Assigned To: philstu Block user comment: N Private report: N New Comment: This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. Previous Comments: ------------------------------------------------------------------------ [2013-05-03 01:40:18] pete at petermcdonald dot co dot uk Agreed the example should be something more along the lines of $_SERVER['PHP_SELF'] in a script at the address http://example.com/somedir/foo.php would be /somedir/foo.php. The __FILE__ constant contains the full path and filename of the current (i.e. included) file. ------------------------------------------------------------------------ [2012-03-06 18:17:46] pl1 at liscovius dot de Description: ------------ --- From manual page: http://www.php.net/reserved.variables.server#refsect1-reserved.variables.server-indices --- The description of $_SERVER['PHP_SELF'] is ambiguous and differs too between english and german documentation. In the example is an url given, but it is a quite bad example. Is the called script test.php? Or is the script foo.bar, as the reader must assume when reading the current description ? (which wouldn't normally call the PHP interpreter.., unless someone tweaked server/htaccess configuration especially for this example) I did my own similiar test and I got 'test.php' with http requests, regardless what i append in the url /test.php , /test.php/bla, or /test.php?bla=1 and i got no /test.php/bla (english documentation) or /test.php/bla/ (as in german php documentation) ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=61303&edit=1

« previous php.doc.bugs (#10720) next »