views:

125

answers:

2

Hi,

I switched from Lighttpd server to WAMP and then found sockets in php are not working. But php is configured and working. (phpinfo() works) I removed the comment for the php_sockets.dll in php.ini @ C:\wamp\bin\php\php5.2.5.but still gives the error "Fatal error: Call to undefined function socket_create()". Any more configurations to do to enable sockets in php in WAMP? (php_sockets.dll is there as well, I've checked)

Thank You!

A: 

Title is misleading - in your case PHP soockets are merely not available.

I removed the comment for the php_sockets.dll in php.ini @ C:\wamp\bin\php\php5.2.5

Did you check that is the .ini file which PHP is using at runtime?

Did you restart the webserver?

Have you got all logging enabled?

Do you get startup errors?

C.

symcbean
A: 

Left click wamp->PHP->PHP Extensions->php_sockets

Ashwin