RE: [PHP] PHP_SELF or REQUEST_URI within Function ?

From: Date: Fri, 31 Aug 2001 03:27:08 +0000
Subject: RE: [PHP] PHP_SELF or REQUEST_URI within Function ?
Groups: php.general 
Request: Send a blank email to php-general+get-65401@lists.php.net to get a copy of this message
> <? > function menu( $theurl) > { > //global $u ; > $u = $SCRIPT_FILENAME; > echo $u; > echo $theurl; > } > ?> > > Hello there !!! > > <? menu(hoho.com) ?> Variable scope. You need a "global $SCRIPT_FILENAME;" at the top of the function. Jason

« previous php.general (#65401) next »