Can anyone tell me how to save automatically specific content of a website (when the websites updates) to my mysql database using php. I searched net but i didnt find any useful sites. I have found a similar question from this forum How can I save content from another website to my database? but its vague. can any one give me a simple script or example (if possible explain) about it . I have a little experience in php and mysql.
advance thanks for your help
There are a few ways. I’d avoid
file_get_contents()if I were you. Try cURL.If you want a wrapper for cURL, check out the REST client of Spoon Library. You can make easy GET requests with it:
SpoonRESTClient::execute($url, $parameters)