Ive tried this
<?PHP
$ch = curl_init();
curl_setopt($ch,CURLOPT_URL,$url);
curl_setopt($ch,CURLOPT_HEADER,1);
curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
$data = curl_exec($ch);
?>
Im using PHP from command line and for some reason the transfer is being printed on the screen
also the headers are not returned in the $data var.
please help if you can.
<?PHP
$ch = curl_init();
curl_setopt($ch,CURLOPT_URL,$url);
curl_setopt($ch,CURLOPT_HEADER,1);
curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
$data = curl_exec($ch);
?>
Im using PHP from command line and for some reason the transfer is being printed on the screen
also the headers are not returned in the $data var.
please help if you can.