note 10511 added to include
| From: | schmonz at dailyjolt dot com | Date: | Mon, 08 Jan 2001 17:46:56 +0000 |
| Subject: | note 10511 added to include | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-9479@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;
}
http://www.php.net/manual/function.include.php