Thread: PHP problem!
View Single Post
Old 06-18-2002, 09:18 PM  
leverage7
Registered User
 
Join Date: Jun 2002
Posts: 9
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');
leverage7 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote