I want to grab certion data from a curl request but cant find a way to make it work!
So far i have this:
this shows the web page but i dont want all the page only a part of it.PHP Code:<?
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'http://www.google.com');
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$data = curl_exec($ch);
echo $data;
curl_close($ch);
?>




Reply With Quote