note 74060 deleted from function.include-once by bobby

From: Date: Thu, 22 Mar 2007 14:32:00 +0000
Subject: note 74060 deleted from function.include-once by bobby
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-124715@lists.php.net to get a copy of this message
Note Submitter: leahcim at pythontech dot net dot au ---- in reply to: tszming, I think you mean, <?php function my_include_once($path) { if ( !defined($path) ) { include($path); define($path, 1); // instead of defined() } } ?> Secondly, I don't see how this is any more optimized then PHP's native function. There is reason why functions exist in PHP's core, please don't re-invent the wheel for no gain in functionality. It could mis-lead people into falsely using this function.

« previous php.notes (#124715) next »