note 11832 deleted from function.class-exists by ezyang

From: Date: Thu, 04 Oct 2007 22:47:07 +0000
Subject: note 11832 deleted from function.class-exists by ezyang
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-131101@lists.php.net to get a copy of this message
Note Submitter: emurano at optushome dot com dot au ---- Multiple inclusion protection can be achieved in php3 and for non class related code, for example: <?php if(!defined("_SOME_UNIQUE_CONSTANT_")) { define("_SOME_UNIQUE_CONSTANT_",TRUE); // Your protected code here } ?> Make sure that you use a different constant for each protected piece of code. Generally this is used on a file per file basis. Just #ifndef in C!

« previous php.notes (#131101) next »