By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,722 Members | 1,174 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,722 IT Pros & Developers. It's quick & easy.

socket functions not available to command line script

P: n/a
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.

Thanks,

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 ...
Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
*** Andrew Pasetti escribió/wrote (8 Oct 2004 09:55:36 -0700):
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.


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
+- http://www.demogracia.com (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
--
Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.