I pull a data from other website by using curl but how to store in my local database.
$url = 'http://sample.com/';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$data = curl_exec($ch);
curl_close($ch);
echo $data;
I just want post some categories and sample of data.