Run PHP command line, needs socket_create
<p>I have a PHP script that needs to run from command line. One of the function it calls is <code>socket_create</code>.</p>

<p>In php.ini, I have included the following in order to get that function working (see the comment on <a href="http://www.php.net/manual/en/sockets.installation.php" rel="nofollow">http://www.php.net/manual/en/sockets.installation.php</a>):</p>

<pre><code>extension=php_sockets.dll
</code></pre>

<p>How do I run the script from command line such that it doesn't complain that <code>socket_create</code> is an unknown function? Does PHP CLI actually respect what's in php.ini? I thought it was supposed to, but I do get errors when running it via CLI and no errors when running it via the browser.</p>

<p>UPDATE: by the way, I'm testing this out: <a href="https://github.com/nicokaiser/php-websocket" rel="nofollow">https://github.com/nicokaiser/php-websocket</a>. I assume that the server needs to be executed via command line.</p>
