I want to write to file exactly what is displayed on screen (text), so I thought I could use output buffering and then flush the contents to a file.
I start with:
$filename = "site\\New_Thread_Requested.php";
$fp = fopen ($filename, "r+");
ob_start();
//body of code goes here, some echo statements scattered around
fflush($fp);
ob_end_flush();
This shows on screen what I want, but the file is not changed at all.
Can anyone tell me why?
Thanks,
Wally-o