We provide detailed description of the debugging techniques using the example of these
two scripts in our article:
In that example we used NuSphere’s PhpED and dbg – PHP debugger to present the advantages of good PHP Editor/IDE.
Following the instructions there you can step through
You will see how when the following code segment is executed,
GET request is being sent to PHP script, which you can debug using good PHP IDE and debugger:
var script = document.createElement("script");
// all set, add the script
Dynamic script injection doesn't suffer from the traditional limitations of XMLHttpRequest,
such as prohibition of cross-domain scripting.
can use Dynamic script injection to send the request to PHP scripts on your site
and your PHP can reply in JSON, providing dynamic content to multiple sites on different domains.