I have a new project I am working on that involves fetching a webpage, (using PHP and cURL) parsing the HTML and javascript out of it and then handling the data in the resul
you could take a look in rhino. It use java, never heard of a PHP port.
Are you obligated to run the actual javascript?