Hello,
After the page is generated, I want to let the user to press the save button to save the page to the server.
I once think to save all echo'ed messages to variables and write them to a file.But seems too much work.
Do anyone have suggestion.
I think you could have lynx re-request the page and save it to a file.. can't remember the syntax though...
Sergio
Thanks for your reply.
Since each statistic report sometimes need several minutes to generate, if re-request by lynx, I think it may be too much loading on server. Just because the machine is too slow. Is it possible to have one copy to serve two browsers?
Just off the top of my head (no research on it) I'm pretty sure you could do this with output buffering. Basically you would turn it on at the beginning of the script, do all your processing, then assign a variable the contents of the buffer. At that point you could write it to a file and echo it to the browser. You could probably find more info on output buffering on the zend site.
-rich