note 11832 added to function.class-exists.php

From: Date: Fri, 09 Mar 2001 05:35:45 +0000
Subject: note 11832 added to function.class-exists.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-12092@lists.php.net to get a copy of this message
Multiple inclusion protection can be achieved in php3 and for non class related code, for example: 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! http://www.php.net/manual/en/function.class-exists.php

« previous php.notes (#12092) next »