note 59216 modified in function.runkit-import by danbrown
| From: | danbrown@php.net | Date: | Sun, 20 Jul 2008 01:25:46 +0000 |
| Subject: | note 59216 modified in function.runkit-import by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-141910@lists.php.net to get a copy of this message | ||
Heres a nice function to reload the whole program, note, requires PHP5.1:
<?php
function reload() {
$files = get_included_files();
foreach($files as $file) {
if (runkit_lint_file($file)) {
runkit_import($file);
} else {
return false;
}
}
}
?>
--was--
Heres a nice function to reload the whole program, note, requires PHP5.1:
<?
function reload() {
$files = get_included_files();
foreach($files as $file) {
if (runkit_lint_file($file)) {
runkit_import($file);
} else {
return false;
}
}
}
?>
http://php.net/manual/en/function.runkit-import.php