I have this simple php script:
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://www.instagram.com/zuck/');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$output = curl_exec($ch);
curl_close($ch);
echo htmlspecialchars($output);
I have Apache 2.4.17, PHP : 5.6.16 (I also tried with PHP 7)
I have tried running it on a remote host server and it works just as expected. However it doesn't work at all on my PC.
I tried WAMP, XAMPP, disabled firewall, connected directly to my modem (without router), checked the php.ini and c_url is uncomented. I also tried downloading a fix from http://www.anindya.com/. Doesn't work as well. When i try curl_version
it works (so i guess c_url is loaded) but this script doesn't. And the strange thing is there are no errors just a blank page.
I really don't have any more troubleshooting ideas