jeudi 31 mars 2016

PHP cURL not working on other sites

Im a novice programmer in PHP. Last week I read about cURL that capture my attention to study it. first, I copy and paste codes posted on different blogs and it goes run good like my code below.

<?php
$handle=curl_init('http://ift.tt/sMuLwx');
curl_setopt($handle, CURLOPT_VERBOSE, true);
curl_setopt($handle, CURLOPT_RETURNTRANSFER, true);
curl_setopt($handle, CURLOPT_SSL_VERIFYPEER, false);
$content = curl_exec($handle);
echo $content;
?>

BUT WHY I CAN'T cURL the website

http://ift.tt/1z66QoB

since that i am using same code above it outputs

enter image description here

Looking for your positive response guys. thank you in advance.




Aucun commentaire:

Enregistrer un commentaire