Any tips on running JavaScript code from PHP? I am trying to run a javascript function and get its return value. In this case, it is much easier than translating it to PHP. Could Spidermonkey be good for this task or something else?
UPDATE: On the other hand, if there is an application for translating JavaScript into PHP once instead of just interpreting it, it might be better. Therefore, I will be interested in recommendations on this front.
thanks a lot
source share