kreut — 2013-04-07T11:43:51-04:00 — #1
When I make an AJAX call to a php script via jquery and there´s a php parse error, I´d like to be able to view it. Right now, if there´s an error in the php script, the php script just stops and there´s no returning message. Is there any way to view php errors? I've googled this question and it looks like there's something called FirePHP which could help, but surely there's an easy way to just echo them out or alert them via jquery?
marplo — 2013-04-08T09:59:55-04:00 — #2
In your Ajax script you can use: alert(ajaxrequest.responseText); to see the server response in window browser, or: console.log(ajaxreq.responseText); to see the result in console, for example with Mozilla Firefox and the FireBug addon.
In php add this code, to return all the errors:
kreut — 2013-04-08T17:02:59-04:00 — #3
system — 2014-10-08T00:02:09-04:00 — #4
This topic is now closed. New replies are no longer allowed.