Translating or Interpreting JavaScript from PHP
<p>Any tips on running JavaScript code from PHP?  I'm trying to run a javascript function and get its return value.  This is a LOT easier in this case than translating it myself into PHP. Would <a href="http://pecl.php.net/package/spidermonkey" rel="nofollow">Spidermonkey</a> be good for this task, or something else? </p>

<p>UPDATE: On the other hand, if there's an app for translating the JavaSCcript into PHP once instead of just interpreting it, that might be better.  So I'd be interested in recommendations on that front..</p>

<p>Thanks much</p>
