Fwd: [PHP] Globals with require() has no value
| From: | XFred . | Date: | Fri, 04 Aug 2000 14:55:37 +0000 |
| Subject: | Fwd: [PHP] Globals with require() has no value | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-10140@lists.php.net to get a copy of this message | ||
Again I post .
I'm going nuts.
at least tell me where I should look around.
I've asked on irc php topiced chans :no result
I've parsed php.net support : no result ...
I've been here .. still no results .. maybe I'm only with bots ?? ;))
From: "XFred ." <xfred_1@hotmail.com> To: php-general@lists.php.net Subject: [PHP] Globals with require() has no value Date: Fri, 04 Aug 2000 13:23:56 GMT Sorry for asking again but I really need help... Why a global defined into a require()ed file has no value in an other require()ed one ...? for exemple: -----main file------------ <? require("globals.php3"); require("IB_fcts.php3"); echo $gsp; //this works here //valid script follows .. ?> ----globals.php3------- <? $gsp="/usr/interbase/bases/gsp.gdb"; ?> ----IB_fcts.php3------ <? echo $gsp; // no output function my_fct() { global $gsp;________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.comecho $gsp; // no output ..} ?> I would be grateful to anyone who could help .. thx. ________________________________________________________________________ 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