Hi,
Basically, in PHP, I want to read a file then overwrite that file with new information and the old read information.
Any ideas how I'd go about doing this?
I figured it'd be something like this, but this doesn't work;
Regards,PHP Code:$file = fopen("genchat.php", "r+");
$read = fread($file, filesize($filename));
$data = ("$data $read");
fwrite($file, $data);
fclose($file);
James.





Reply With Quote




