Retrieving web pages on the server using CURL (in PHP) as part of a spider application. As you may know, CURL does not interpert any javascript contained on the retrieved webpages. How to convert the javascript in the PHP server-side script to the output that would be "seen" by a client-side browser?

Do I have to install something like Mozilla Rhino (SpiderMoneky)? If so, what are the instructions for using Rhilno to interpert the javascript? In other words, what would the function call from php be?

Thanks.

(Wasn't sure if I should have posted this in PHP topic or Javascript topic?)