Hello there, Could you kindly reffer me to any tutorial/online resource.. I'm thinking of making a php script, that will extract something from a database and will be published on a webpage (simple) I want that each member on my site, to have a .js code, they will insert, and my php mysql query will be displayed on their site, remotely! Somehow like Google Adsense code for example, or any other .js type of script that will run a php code from another domain. Thank you kindly, I hope you understood
You could simply have a javascript file that invokes a remote PHP method asynchronously using the XMLHttpRequest object. e.g., javascript calls yoursite.com/script.php?doSomething and then recieves the response and displays it on your page. I cant post URLs yet, but search in Wikipedia for Ajax, and follow the links at the bottom of that page for the mozilla tutorial.