I need to call arbitrary javascript functions from a page I download with a cURL session inside a php script. For example, on the site x4x4x.tk, I need to call updateLocation() (search for "updateLocation(this)" in the source). I can't have the script pop open a browser window and do it there, it needs to be done entirely from the command line.
I found an extension called v8js that looks like it would do what I need, but it requires php 5.3.3. The server the script will run on uses php 5.2.6-1 and I'm not in a position where I can update the server.
I found the extensions php-js and j4p5 and they look like they'll do what I want, but I wanted to check on here and see if anyone's tried to do anything like this before.