Date: 03/28/00
- Next message: Kristian Koehntopp: "Re: [PHPLIB] Search engine problems (temporary redirect) with session"
- Previous message: Afam Agbodike: "[PHPLIB] multiple name web authentication"
- Next in thread: Kristian Koehntopp: "Re: [PHPLIB] including only once"
- Reply: Kristian Koehntopp: "Re: [PHPLIB] including only once"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
hi all,
how about wrapping all PHP code inside each PHPlib file by a:
if (!defined(NAME_OF_FILE_TO_INCLUDE_ONLY_ONCE)){
define(NAME_OF_FILE_TO_INCLUDE_ONLY_ONCE, true)
//code to be executed only once here...
}
// other PHP code if really needed (probably not in PHPlib's case)
this would prevent accidental multiple inclusions of the files, that
often bores beginners or other PHPlib users.
Just say and I try to make the change in CVS this week.
-Sylvan
-
PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>.
To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in
the body, not the subject, of your message.
- Next message: Kristian Koehntopp: "Re: [PHPLIB] Search engine problems (temporary redirect) with session"
- Previous message: Afam Agbodike: "[PHPLIB] multiple name web authentication"
- Next in thread: Kristian Koehntopp: "Re: [PHPLIB] including only once"
- Reply: Kristian Koehntopp: "Re: [PHPLIB] including only once"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

