PHP Robot Help

Discussion in 'PHP' started by pwhite, Jun 21, 2007.

  1. #1
    Hi,

    I have a router that keeps dropping a vpn connection so I want to write a php script that will login and re-enable the connection.

    I have good knowledge of php however don't know where to start as i'm guessin its almost like writing a robot to load a page then submit a specific form on the page.

    Does anyone know of any good articles or functions I can lookup to point me in the right direction?

    Thanks
     
    pwhite, Jun 21, 2007 IP
  2. legend2

    legend2 Well-Known Member

    Messages:
    1,537
    Likes Received:
    74
    Best Answers:
    0
    Trophy Points:
    115
    #2
    use curl in order to login and submit the form. and make that page autorefresh using meta tags every couple hour.
     
    legend2, Jun 21, 2007 IP
  3. Kendothpro

    Kendothpro Well-Known Member

    Messages:
    574
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    120
    #3
    cURL will do that :)
     
    Kendothpro, Jun 21, 2007 IP
  4. pwhite

    pwhite Peon

    Messages:
    193
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    thanks that was the direction I was looking for, got some nice tutorials now
     
    pwhite, Jun 21, 2007 IP