Thread: PHP problem!
View Single Post
Old 06-18-2002, 05:40 PM  
dodo
Confirmed User
 
Join Date: Jan 2002
Posts: 162
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; ?>
you are opening source.php and using filesize of output.php.

you should use the filesize of source.php. remember to close $fp

__________________
FREE TRAFFIC TRADING on any host. Also try our 200% traffic back program.Click here
We host the scripts for you so you trade on our bandwidth.
dodo is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote