How do I render javascript from another site, inside a PHP application? -


What I am trying to do is read a specific line from a webpage from within my PHP application. This is my experimental setup so far:

  & lt ;? Php $ url = "http://www.some-web-site.com"; $ File_contents = file_get_contents ($ url); $ Findme = 'Text can be found'; $ Pos = strpos ($ file_contents, $ findme); If ($ pos == wrong) {echo "string '$ findme' did not get in the string;"; } Else {echo "string '$ findme' was found in the string"; Resonance "and status exists in status"; }? & Gt;   

The statement "if" contains echo operators for now, it will later change the database operators, test the current setup functionality.

Basically there is a problem, using this method, any Java is returned as a script on the page. The text I need is the text that is supposed to be presented inside the script browser. Is there any way to do this in PHP?

What I'm finally trying to achieve is updating the stock within an ecommerce site through the stock level of the supplier of the site, the supplier does not use RSS feeds for it. .

Curl does not have JavaScript parser like if content that you are trying to read, initial page After rendering, the page is placed via javascript, so it will not be possible by cURL.

Comments