Quote:
Originally posted by Validus
I wonder why this doesn't work. Anybody have any ideas?
<?
$fp = fopen("source.php", "r");
$out = fread($fp, filesize("output.php"));
?>
<? echo $out; ?>
|
In addition to the filesize() being called on a different file, make sure that source.php is in your php include path.
You can get your include_path by calling
ini_get('include_path');
and you can change it by calling
ini_set('include_path', '/path/one:/path/two:/etc');