I am developing chat application using php and ajax . later I found get messages by ajax after X seconds doesn't efficient. I want to develop it by php socket . I opened the local server socket by example :
php -f server.php
My question is How can I open remote server socket after uploading files to the host, need to write commands ?