[PHPLIB] including only once From: Sylvan Ravinet (sylvan <email protected>)
Date: 03/28/00

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.