Horatiu Jeflea Horatiu Jeflea - 11 months ago 42
MySQL Question

How can I save content from another website to my database?

I want to upload dynamically content from a soccer live score website to my database.

I also want to do this daily, from a single page on that website (the soccer matches for that day).

If you can help me only with the connection and retrieval of data from that webpage, I will manage the rest.

website: http://soccerstand.com/
language: php/java - mysql

Thank you !

Answer Source

You can use php's file function to get the data. You just pass it a URL and it returns the content as an array of lines from the file. You can also use file_get_contents to get the content as one big string.