socket functions not available to command line script

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Using PHP Version 4.3.7/Apache/2.0.46 (Red Hat), I am not given access
to php's socket functions. However, when I run the socket program by
serving it as a web page, everything works as expected.

Perhaps someone can suggest what to change or add from the command
line call below to enable the socket functions.

Your feedback will be greatly appreciated.


Andrew Pasetti

[admin@www test]$ php -c /etc/php.ini -f socketTest.php

Error returned:
[08-Oct-2004 12:36:28] PHP Fatal error:  Call to undefined function:
socket_create() in ...

Re: socket functions not available to command line script

*** Andrew Pasetti escribió/wrote (8 Oct 2004 09:55:36 -0700):
Quoted text here. Click to load it

It sounds like you are using different binaries. Check build info with
phpinfo() from both a web page and command line.

-+ Álvaro G. Vicario - Burgos, Spain
+- (la web de humor barnizada para la intemperie)
++ Las dudas informáticas recibidas por correo irán directas a la papelera
-+ I'm not a free help desk, please don't e-mail me your questions

Site Timeline