Re: global scope issue

From: Date: Thu, 14 Aug 2003 01:29:35 +0000
Subject: Re: global scope issue
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-159511@lists.php.net to get a copy of this message
> /dir1/script1.php > <?php > include("/dir1/script2.php"); > print_r($test); //works great > print_r($GLOBALS['test']); //does not work > ?> Works fine for me when I have the include as include( 'script2.php' ); Make sure that the include is correct...I figure that you dont have dir1 off of the root directory. -- BigDog

« previous php.general (#159511) next »