Jump to content

reading pages loaded by JS with php

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
2 replies to this topic

#1
LCD344

LCD344

    Newbie

  • Members
  • Pip
  • 7 posts
as a follow up to building a statistical databse by ripping it out of already ready websites... im trying to get some statistics from a site and i already know i can open a website with PHP with the fopen command and read what it has... but now i have pages that load the data to be viewed with JS functions... is there any way to get the PHP to load the information that is loaded that way ?

thank you
peace,
nur

#2
Alexander

Alexander

    It's Science!

  • Moderators
  • 4,124 posts
The JS functions most likely retrieve a data source from a database or XML file, you best find out and plug that into your script (using SimpleXML library with PHP). You cannot parse Javascript, without building a javascript interpreter so finding the data source is your best bet.
Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.

#3
LCD344

LCD344

    Newbie

  • Members
  • Pip
  • 7 posts
works and works... thank you very much