php_sockets.dll
Posted by: ellis (---.dhcp.ftwo.tx.charter.com)
Date: January 14, 2006 06:31AM

I'm having an issue where if I run php -q myscript.php that has a socket_create() function call - it comes back with Call to undefined function socket_create()
But if run it from a web page I don't get that error.

ie:
C:\wamp\php>php c:\wamp\www\tcp\test3.php
comes back with the error

[127.0.0.1] comes back fine

Options: ReplyQuote
Re: php_sockets.dll
Posted by: ellis (---.dhcp.ftwo.tx.charter.com)
Date: January 14, 2006 06:40AM

also if I do a PHP -m it's not showing up.. I have it in my system32 folder also..
hmm..

Options: ReplyQuote
Re: php_sockets.dll
Posted by: Arion (---.hsd1.co.comcast.net)
Date: November 05, 2006 01:03AM

I'm no having the same problems....

Options: ReplyQuote
Re: php_sockets.dll
Posted by: CyberSpatium (71.237.217.---)
Date: November 05, 2006 08:54PM

make sure you command line arguments for windows os, not linux os. also check your phpinfo file to see if you have enabled socket support successfully. also remember after you edit your php.ini or httpd.conf file you need to restart apache for the new settings to take effect.

CyberSpatium
WAMP English Forum Admin

Options: ReplyQuote
Re: php_sockets.dll
Posted by: Arion (---.hsd1.co.comcast.net)
Date: November 07, 2006 10:04PM

This has to do with the way he has the CLI setup to run. It's not using a PHP.ini file at all.
I've created the following solution:

Create a 'run.bat' file with the following command, be sure to change the paths appropriately:
@C:\wamp\php\php.exe -c C:\wamp\Apache2\bin %1 %2 %3 %4

Then, you simply use 'run [file]' in place of 'php [file]'.
That will solve the problem.

Options: ReplyQuote


Sorry, only registered users may post in this forum.