RE: [PHP] using globals in require()

From: Date: Thu, 03 Aug 2000 12:48:21 +0000
Subject: RE: [PHP] using globals in require()
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-9915@lists.php.net to get a copy of this message
Could you please provide how you are setting some of these variables within your globals.php3 file, and also how you are using these values within the functions that are referencing it? Sam Masiello System Analyst Chek.Com (716) 853-1362 x289 smasiello@chekinc.com -----Original Message----- From: XFred . [mailto:xfred_1@hotmail.com] Sent: Thursday, August 03, 2000 6:56 AM To: php-general@lists.php.net Subject: [PHP] using globals in require() Hi, I have troubles using previously defined globals in a require()ed file . exemple: <? require("globals.php3"); require("IB_fcts.php3"); //valid script follows .. the globals defined in globals.php3 are not defined while executing functions in IB_fcts.php3 of course in these function I used : global $var_defined_in_globalphp3; but the variable is set to 0. anyone can help ? ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#9915) next »