PHP_SELF or REQUEST_URI within Function ?
| From: | Arcadius A. | Date: | Fri, 31 Aug 2001 12:27:04 +0000 |
| Subject: | PHP_SELF or REQUEST_URI within Function ? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-65399@lists.php.net to get a copy of this message | ||
Hello !
Why this script prints an empty string(it prints nothing) as the value of
the variable "u" ?
This happens even if $REQUEST_URI or PHP_SELF is used instead of
SCRIPT_FILENAME .
Thanks...
<?
function menu( $theurl)
{
//global $u ;
$u = $SCRIPT_FILENAME;
echo $u;
echo $theurl;
}
?>
Hello there !!!
<? menu(hoho.com) ?>