nested require_once

From: Date: Thu, 16 Oct 2003 16:45:01 +0000
Subject: nested require_once
Groups: php.general 
Request: Send a blank email to php-general+get-166321@lists.php.net to get a copy of this message
Hi All, I just wanted to confirm that require_once works as I think it should, but the manual isn't too clear about nesting scripts (or i'm just thick =). What I think is/should be happening is that dbLib.ink is only included in index.php once, but when I run helperLib.php on its own, it has dbLib.php. In index.php, i have require_once("includes/outputLib.php"); require_once("includes/dbLib.php"); require_once("includes/helperLib.php"); and then within helperLib.php, i have require_once("dbLib.php"); I know this seems to be exactly what the whole 'once' part is about, but better safe than sorry. thank you, Craig

« previous php.general (#166321) next »