Can anyone help me grab this variable as a response from the visited site?

I have a website holding a 10 digit number that changes periodically… so i was visiting the site using file_get_content(myurl) but that connection has recently been shut down… so need a new solution. I can use http to visit and see the number but not sure how to get it into a variable so it i can process it automatically…
i tried:
$dog = (“location: myurl”) but there is no response being picked up in the dog variable…
So does anyone know any little kinks and/tricks to trap the 10 digit variable when you visit the page with a url…

The rest of the page is php but I suppose i could use javascript or jquery… if i know the code…
When you visit the page with http it looks like 1396789436 and nothing else…

You should be able to use curl

Thanks Dave I will try that.

I reccomend you to use simple DOM its safe and easy to use.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.