PHP sockets (specifically UNIX sockets)

Discussion in 'Web Design & Coding' started by LordOfLA, Apr 16, 2007.

  1. LordOfLA

    LordOfLA Godlike!

    Messages:
    7,027
    Location:
    Maidenhead, Berkshire, UK
    I've started off a project which if I ever finsih it will be primarily for personal use.

    Anyway one particualr part requires socket programming. I've opted for the unix socket approach though tcp sockets are possible. This is my first piece of socket code and I wont be able to test it for a while as I've not confoigured the services this relies on yet.

    If someone with experiance at unix socket communication with php can take a look over the code at http://85.13.238.106/~lordofla/am-pdp-driver.phps and let me know if there are any errors with my socket code (or any other code for that matter) I'd be greatful! :D
     
  2. X-Istence

    X-Istence * Political User

    Messages:
    6,498
    Location:
    USA
    Does it work?
     
  3. LordOfLA

    LordOfLA Godlike!

    Messages:
    7,027
    Location:
    Maidenhead, Berkshire, UK
    no idea not able to test it yet.