Is there a way to redirect output of an executing PHP script?
Of course this is trivial when launching the script via the command line. But how is this accomplished after the script is started?
Note: I need to capture the syntax errors and such as well.