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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to