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://22.214.171.124/~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!