This PHP5 class allows your Prototype JavaScript AJAX applications to natively call PHP methods and get data back as if the methods were written in JavaScript. I modeled this somewhat after AMFPHP for Flash remoting. I wanted to be able to simply write methods in a PHP class and then call them in JavaScript and not write any more code than that. This pretty much does that. You can see it in action at my website: http://onesandzeros.biz/j sphpremoting/