I need to extract data from one site. Can someone help me with a script that makes it work? I managed to extract a script page CURL but more do not know how to extract data from this page and place them in a database. Thank those who help me. Best Regards, Raul
This can be simple, and can be complicated. It depend on the page you want to extract from. In brief, to extract data, you find it's placement in the html source code of the page. Example: page: <table> <tr><td>name</td><td>email</td></tr> <tr><td>John</td><td>John@mail.com</td></tr> </table> Code (markup): So here, you must find, with strpos(), the position of "<tr><td>name</td><td>email</td></tr>" in the document, then, search pos of "<tr><td>" copy the name, serch pos of "</td><td>" and copy the email ! Is this what you are looking for ? I hope this will help you
Thanks very much Ilyes, Its very good for me, but I ask another question: but how I to refreshing the page in 5 minutes? Thanks for all. raulinho