can any one tell me how to use curl or file_get_contents for downloading specific data from a website and then save those specific data into my mysql database. I want to get latest additions of films from this website http://www.traileraddict.com/ and i want to save it in my database(on a daily basis; this text and html link will be shown on my website). I just need the text and html link.(highlighted in the pic)
i have searched everywhere but i didnt find any useful tutorial. i have two main questions to ask
1) How can i get specific data using cURL or file_get_contents.
2) How can i save the specific content to my mysql database table( text in one column and link in another column)
Using cURL:
Then you can load the element into a DOM Object and parse the dom for the specific data. You could also try and parse the data using search strings, but using regex on HTML is highly frowned upon.