I need the help

Discussion in 'PHP' started by raulinho, Mar 14, 2009.

  1. #1
    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
     
    raulinho, Mar 14, 2009 IP
  2. Ilyes

    Ilyes Banned

    Messages:
    129
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    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 :)
     
    Ilyes, Mar 15, 2009 IP
  3. georgege

    georgege Greenhorn

    Messages:
    99
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    18
    #3
    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
     
    georgege, Mar 16, 2009 IP