Jump to content

Executing and parsing javascript server-side


g0tmk

Recommended Posts

I have an odd problem - I need to run and parse the output of a javascript script without the user ever seeing it.  I am trying to pull data out of a script that uses data from a seperate domain that I have no control of, so I need to be able to simply strip out the information I need.

 

The step I can't figure out is getting the output.  I know that javascript is intended to run on the client and PHP shouldn't know the difference, but I need some way for PHP to run it *itself* before sending anything to the client.  Does anyone have any ideas?

 

Thanks

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.