screenscaper, how to?

Discussion in 'PHP' started by toby, Mar 15, 2007.

  1. #1
    Hello guys,

    If i would like to copy the sites content on a daily basis and put it into a database, how could i do that?

    I mean to copy other sites and put it into a database.

    toby.
     
    toby, Mar 15, 2007 IP
  2. T0PS3O

    T0PS3O Feel Good PLC

    Messages:
    13,219
    Likes Received:
    777
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Make a script that does file_get_contents($url) and sticks it in the database. Run script on a cron every 24 hours.

    Or use wget with a shell script.
     
    T0PS3O, Mar 15, 2007 IP
    toby likes this.
  3. toby

    toby Notable Member

    Messages:
    6,923
    Likes Received:
    269
    Best Answers:
    0
    Trophy Points:
    285
    #3
    thsnks tops,
    The URL is dynamic, how could i make it go and get content every URL presented in that site?
    or are we saying running a loop to go into each URL from the main URL?

    thx for the heads up.
     
    toby, Mar 15, 2007 IP
  4. T0PS3O

    T0PS3O Feel Good PLC

    Messages:
    13,219
    Likes Received:
    777
    Best Answers:
    0
    Trophy Points:
    0
    #4
    T0PS3O, Mar 15, 2007 IP
  5. toby

    toby Notable Member

    Messages:
    6,923
    Likes Received:
    269
    Best Answers:
    0
    Trophy Points:
    285
    #5
    TOPS30, you rock m8! you shall change your name to TOP1 :D
    thx a lot. Greenlush isn't yours right?
     
    toby, Mar 15, 2007 IP
  6. T0PS3O

    T0PS3O Feel Good PLC

    Messages:
    13,219
    Likes Received:
    777
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Nope, not mine but feel free to try them out!
     
    T0PS3O, Mar 15, 2007 IP