code to create a tcp socket with php