note 10511 deleted from function.include by philip

From: Date: Fri, 02 Nov 2001 06:57:02 +0000
Subject: note 10511 deleted from function.include by philip
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-20274@lists.php.net to get a copy of this message
I wrote this a while back for use with PHP3. It's rough, not heavily tested, and probably doesn't follow precisely the semantics of the PHP4 implementation, but perhaps someone will find it useful anyway. function require_once ( $filespec ) { $unique_val = 'php_include_' . md5($filespec); global $$unique_val; if (! isset($$unique_val)) { $$unique_val = $unique_val; include($filespec); } return; }

« previous php.notes (#20274) next »