php, http tunnelling

Discussion in 'PHP' started by Danny, Jun 28, 2006.

  1. #1
    Does anyone have any tutorials or information on how to write a php/http tunnel to connect to mysql from a desktop app?
     
    Danny, Jun 28, 2006 IP
  2. dtang4

    dtang4 Active Member

    Messages:
    303
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    58
    #2
    Not sure if this answers your question, but you can compile php into an executable to run as a desktop app. The php can contain the typical mysql db connection code.
     
    dtang4, Jun 29, 2006 IP
  3. Danny

    Danny Active Member

    Messages:
    732
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    78
    #3
    Yeah that is what I am using however that script will be unable to connect to a web server unless there is a HTTP Tunnel to that server. I just dont know how to write the tunnel
     
    Danny, Jun 29, 2006 IP
  4. Ch3W

    Ch3W Member

    Messages:
    31
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #4
    If it's a desktop app, what does this have to do with php?

    Or are you running a webserver on the desktop? In which case, why don't you just point the mysql host to where-ever your database is hosted?
     
    Ch3W, Jul 4, 2006 IP
  5. reza56

    reza56 Active Member

    Messages:
    92
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    91
    #5
    EMS MySQL Manager has some delphi source codes for it.
     
    reza56, Jul 5, 2006 IP
  6. Danny

    Danny Active Member

    Messages:
    732
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    78
    #6
    nah need php code. I want to write my own external connection via a php GTK app
     
    Danny, Jul 6, 2006 IP