PHP runs server side. Javascript runs client side. The best route is probably to use a browser to load the page you want, then traverse the DOM to get what you need. I guess you could use a page generated in PHP and load an IFRAME with the page you want, but you'd still need Javascript on your page to get the data you want because, again, PHP is server side so once the page is loaded the server is done.