The command prompt uses a different php.ini file to the apache server.
The Apache php.ini file is accessible via the taskbar icon, and is located at:
X:\WAMP INSTALL DIR\Apache2\bin\php.ini
The command prompt php.ini file is located at:
X:\WAMP INSTALL DIR\php\php.ini
Once I’d enabled sockets in this file, by uncommenting the line:
extension=php_sockets.dll
and restarted the server, everything worked great.
在两个目录下都有php.ini 我们使用wamp 的管理界面直接修改的php.ini是位于: