Bug #16493 Updated: Suggested blank $PHP_SELF in function, low level error message.
| From: | hholzgra@php.net | Date: | Mon, 08 Apr 2002 14:37:30 +0000 |
| Subject: | Bug #16493 Updated: Suggested blank $PHP_SELF in function, low level error message. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-4351@lists.php.net to get a copy of this message | ||
ID: 16493
Updated by: hholzgra@php.net
Reported By: markis.brachel@ntlworld.com
-Status: Open
+Status: Bogus
Bug Type: Output Control
Operating System: Windows NT
PHP Version: 4.1.2
New Comment:
see http://php.net/variables.scope
Previous Comments:
------------------------------------------------------------------------
[2002-04-08 09:23:03] markis.brachel@ntlworld.com
What I did:
Function in remotefile.inc:
function listusers(){
echo "Blah <a href='$PHP_SELF?file=mainpage'>Link</a> blah">
}
Then require file in my main.php file.
require_once("remotefile.inc");
And call the function
What I expect is for the output to be:
Blah <a href='main.php?file=mainpage'>Link</a> blah
Which infact it is.
However, I also get a low level error message saying PHP_SELF is
blank.
Current solution for problem:
function listusers(){
$PHP_SELF = "";
echo "Blah <a href='$PHP_SELF?file=mainpage'>Link</a> blah">
}
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=16493&edit=1