Doc #61303 [Com]: $_SERVER['PHP_SELF'] description

From: Date: Fri, 03 May 2013 01:40:18 +0000
Subject: Doc #61303 [Com]: $_SERVER['PHP_SELF'] description
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-9774@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 Comment by: pete at petermcdonald dot co dot uk Reported by: pl1 at liscovius dot de Summary: $_SERVER['PHP_SELF'] description Status: Open Type: Documentation Problem Package: Documentation problem PHP Version: Irrelevant Block user comment: N Private report: N New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [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 (#9774) next »