note 63266 deleted from function.include by aidan

From: Date: Sat, 15 Apr 2006 16:21:43 +0000
Subject: note 63266 deleted from function.include by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-108142@lists.php.net to get a copy of this message
Note Submitter: ffmpeg dot php at NOSPAM dot gmail dot com ---- Slightly modification to the above example to allow the included file to access the global scope. <? function get_include_contents($filename) { extract($GLOBALS); if (is_file($filename)) { ob_start(); include $filename; $contents = ob_get_contents(); ob_end_clean(); return $contents; } return false; } ?>

« previous php.notes (#108142) next »