I tried to run in my localhost (WAMP) a php code with a socket,and it work great in the browser ,but whan i tried to do the same in the command line it's throw exception "the function socket_create is not exists" . So I tried to check if php_sockets extintion is enabled and it is,so it still doesn't work ,someone has crossed with that before ? here is the exception :
PHP Fatal error: Call to undefined function socket_create() in C:\wamp\www\sock et\serverc.php on line 2 PHP Stack trace: PHP 1. {main}() C:\wamp\www\socket\serverc.php:0
Fatal error: Call to undefined function socket_create() in C:\wamp\www\socket\se rverc.php on line 2
Call Stack: 0.0010 230696 1. {main}() C:\wamp\www\socket\serverc.php:0