Warning: file_get_contents: failed to open stream: Redirection limit reached, aborting

Had a similar problem today. I was using CURL and it wasn’t returning my any error. Tested with file_get_contents() and I got… failed to open stream: Redirection limit reached, aborting in Made a few searches and I’v ended with this function that works on my case… function getPage ($url) { $useragent=”Mozilla/5.0 (Macintosh; Intel Mac OS … Read more

Simple html dom file_get_html not working – is there any workaround?

As I said, your example is working fine for me… But try this way using curl instead: //base url $base=”https://play.google.com/store/apps”; $curl = curl_init(); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($curl, CURLOPT_HEADER, false); curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true); curl_setopt($curl, CURLOPT_URL, $base); curl_setopt($curl, CURLOPT_REFERER, $base); curl_setopt($curl, CURLOPT_RETURNTRANSFER, TRUE); $str = curl_exec($curl); curl_close($curl); // Create a DOM object $html_base = new simple_html_dom(); // … Read more