PHP CURL coding
<?php
$ch= curl_init();
$url ="www.domain.com";
curl_setopt($ch,CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT,5);
$curl_result=curl_exec($ch);
curl_close($ch);
$curl_result=str_replace("<","<",$curl_result);
$curl_result=str_replace(">",">",$curl_result);
echo $curl_result;
?>
Subscribe to:
Post Comments
(
Atom
)
No comments :
Post a Comment