Executing javascript within PHP
<p>I believe it is possible to execute a java script function within PHP, but will it then remain server side as opposed to client side?  Can I, within PHP, call a .js function, passing it some args, and have it return to the PHP that called it?</p>

<p>A script I want to use returns XML, and I want to get the user inputs using PHP, pass them to the .js function <em>residing on the server</em>, then take the returned xml and parse it back in the PHP part.</p>

<p>I ask because I see people commenting that because .js is client side and PHP is server side, they don't get along.  I was hoping that by executing the .js function in the PHP, I could spoof the .js call as coming from the local machine (the server).</p>

<p>Thanks for any information!</p>
