> include_once(). Does it get included TWICE?
By "it", I mean lib.php.
Sorry
Roko
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
> in lib.php
> define("__LIB_PHP__",1);
> in service.php:
> define("__SERVICE_PHP__',1);
> if (!__LIB_PHP__){
> require('lib.php');
I am not sure I was clear enough.
I _want_ those include_once('lib.php') statements to be in service.php,
because service.php could get included from a file ot
D]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 28, 2001 12:18 PM
Subject: [PHP] nested include_once()
> If I use include_once() to include these files in main.php:
>
> main.php
> -
> include_once('lib.php');
> include_once('service
If I use include_once() to include these files in main.php:
main.php
-
include_once('lib.php');
include_once('service.php');
-
And file service.php also has a line in it:
service.php
--
include_once('lib.php');
--
Will lib.php get included twice or only _once()
4 matches
Mail list logo