Eg. a website: http://www.funnybunnyvideos.in
I want to ping to this site using curl extension, and store result output data in db with timeout 5sec.
How can i do this thing??? Is it possible???
i also tried curl example as:
$data = Yii::app()->CURL->run(‘http://www.funnybunnyvideos.in/’,FALSE,
array(
'option'=>'com_content','view'=>'article','id'=>58,'Itemid'=>2
)
);
print_r($data);
but its import the site data on current page, am only want ping to site and get ping result with 5sec timeout.
Thanks!!!