isn't REQUIRE passed down to next REQUIRE?

From: Date: Sun, 26 Nov 2000 03:41:50 +0000
Subject: isn't REQUIRE passed down to next REQUIRE?
Groups: php.general 
Request: Send a blank email to php-general+get-27218@lists.php.net to get a copy of this message
IMAGINE THIS: <? /* INITIALIZE - set MySQL class, shopping cart class, and more... */ require ("common_top.inc"); if ($blah) { include ("some_content.php"); } die (); ?> Now - shouldn't the "some_content.php" file be able to use things that were initialized in common_top.inc? It seems (through trial/error) that I have to re-initialize the stuff at the top of "some_content.php" again?!? Is this a bug? Is it supposed to be that way? Isn't it inefficient to call that stuff TWICE?

« previous php.general (#27218) next »