/** * @name simple php tcp socket Daemon * @Description * this is an example just for show that php can handle tcp request * Before run this example you shod install System_Daemon whith Pear * After run this php file insert below code on your shell : * curl -d "name=Pejman" 127.0.0.1:9001 * At the end of this experiment for stop this daemon you mast find phptcp directory in /var/run * and show pid of this daemon and kill it or just use killall -9 php_tcp_daemon.php! */