usually it is handy to debug PHP programs using print_r() or
var_dump(), as they can print out all the variables you need and the
web browser can show any run time error message. But what if it is
the situation when the php file is providing info to the Javascript
either as an AJAX call or even more so, as an OpenSocial's service --
in those case, there is a bunch of parameters provided to the PHP file
and it is really hard to mimic a session using
http://www.oursite.com/getData.php?a...ken=3424242345... with
possible data posted to the PHP file.
In those situation, we can write any variable to a file using
var_export() and a write function as a debug log... but what if there
is any run time error... is there a way to redirect all those info
also to a file, or somehow be able to see the run time error and stack
trace?
Any possible solution? Thanks for your help!