maybe you can try this.
in your bb_plugins.php :
<?php
function execute($phpfile) { $descriptorspec = array( 0 => array("pipe", "r"), 1 => array("pipe", "w"), 2 => array("file", "/dev/null", "a"), ); $process = proc_open("php", $descriptorspec, $pipes); if (is_resource($process)) { $code = file_get_contents ($phpfile, true); fwrite($pipes[0], $code); fclose($pipes[0]); $res=""; while(!feof($pipes[1])) { $res .= fgets($pipes[1], 1024); } fclose($pipes[1]); $phpfooter = $res; proc_close($process); } return $res; }
$phpheader = execute('./templates/php_header.php'); $phpfooter = execute('./templates/php_footer.php');
?>
good luck.
Rusty |