|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-04-08 10:37 UTC] hholzgra@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Dec 14 13:00:01 2025 UTC |
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"> }