I need to call a PHP Script and Run (a function) on the Server .. by calling from client side by using Javascript. I know only Ajax Call from Javascript.
- Is there any other standardized way to communicate from Javascript to PHP?
- Please correct me if i’m wroing. Is XMLRPC an another approach?
Nothing that is well supported or practical.
Ajax is just shorthand for “Making an HTTP request from JavaScript without leaving the page”.
PHP is heavily geared towards being a server side web language (so it is optimised for being accessed over HTTP). Browsers are focused on accessing content over HTTP.