How do I redefine STDOUT to a file? Is there a PHP equivalent to perl's "select(filehandle)"? Or simply perl's open(STDOUT, "filename")?
I am developing a WEB page that requires extensive DB access, the query takes some 25 seconds to complete. Therefore, I want to use PHP CLI to write the page statically every 15 minutes (the same frequency at which the DB is updated). The page also contains extensive html because the out is a 500 some line table. I would therefore lioke to avoid converting all the code the fwrite's and also avoid to redirection externally.
Any suggestion would be most appreciated.
Thanks,
Rob Tanner