passing argument between scripts

From: Date: Sat, 07 Dec 2002 16:53:15 +0000
Subject: passing argument between scripts
Groups: php.general 
Request: Send a blank email to php-general+get-127384@lists.php.net to get a copy of this message
Hi All, I use the following, very common construct: In script A I do a require of script B: require("http://www.domain.nl/test/inc/scriptB.php"); in scriptB I define a constant: define("CONSTANT_X", "VALUE_1"); I try to use this constant in scriptA, but it seems that the value is not passed: echo(CONSTANT_X); in srciptA display CONSTANT_X In scriptB the echo displays the correct value. My hostprovider has the following setting, which in my view should make it possible to pass arguments as shown above. register_globals = on safemode = on open_basedir refers to the htdoc folder of the domain. Kind regards, Geert Arts

« previous php.general (#127384) next »