How can I pull data from other websites and get it stored in my local database

Posted by Deepali on Stack Overflow See other posts from Stack Overflow or by Deepali
Published on 2010-06-07T12:07:22Z Indexed on 2010/06/07 12:42 UTC
Read the original article Hit count: 274

Filed under:
|

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.

© Stack Overflow or respective owner

Related posts about php

Related posts about mysql