I want to ping a website using curl extention?

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,






but its import the site data on current page, am only want ping to site and get ping result with 5sec timeout.