help me with this strange idea

Discussion in 'PHP' started by champ_rock, Mar 30, 2007.

  1. #1
    hi

    i somehow want to in log in to my digitalpoint forum from PHP from my server and stay logged on (i think refresh the page after 10minutes or so)??

    the idea that i have developed is as follows:
    1. somehow i insert my digitalpoint cookie into my server (i have no idea how i can do it)
    2. then somehow program php to get that page after 10minutes.. (i have no idea how to do this too)

    therefore i dont know how to proceed with this project of mine.. please help me out
     
    champ_rock, Mar 30, 2007 IP
  2. champ_rock

    champ_rock Peon

    Messages:
    3,349
    Likes Received:
    115
    Best Answers:
    0
    Trophy Points:
    0
    #2
    is something like this even possible? please tell me abt the same
     
    champ_rock, Mar 30, 2007 IP
  3. minute

    minute Peon

    Messages:
    443
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #3
    You maybe can use the curl library to get the urls and some php functions to handle the time stuff.
     
    minute, Apr 1, 2007 IP
  4. metallic07039

    metallic07039 Peon

    Messages:
    272
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #4
    So you want display digitalpoint forum content on your site?

    If so, grabbing the HTML and styling it with CSS might be easier and more efficient.

    You can snip out the code you don't need out of the retrieved HTML like the header and footer.
     
    metallic07039, Apr 1, 2007 IP
  5. manilodisan

    manilodisan Peon

    Messages:
    224
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Learn cURL. It does the magick if used correctly:)
     
    manilodisan, Apr 1, 2007 IP
  6. champ_rock

    champ_rock Peon

    Messages:
    3,349
    Likes Received:
    115
    Best Answers:
    0
    Trophy Points:
    0
    #6
    i do not want to do anything like that

    anyways as all the answers seem to be based on curl then i will give it a shot

    thanks
     
    champ_rock, Apr 1, 2007 IP
  7. Louis11

    Louis11 Active Member

    Messages:
    783
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    70
    #7
    cURL can use cookiejar to store cookies for you. Then I suppose you can just refresh the page every ten minutes using a variety of methods:

    - Header
    - Cronjob (to refresh and store the data)

    Just a few thoughts. But, yes, it's possible. I have done things similar to this (minus the refresh)

    Good Luck!
     
    Louis11, Apr 1, 2007 IP
    GTech likes this.