468,738 Members | 2,531 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,738 developers. It's quick & easy.

Fatal error: Call to undefined function socket()

I am getting this error: "Fatal error: Call to undefined function
socket()" even after reinstalling php4 and php5 with the following
configuration: ./configure --with-gd=/usr/local --with-mysql --enable-
libgcc --with-gettext --enable-sockets.

From all the articles I've found on this problem adding --enable-
sockets fixed the problem, but no such luck this time. the script I
was trying to run can be found here: http://www.onlamp.com/php/2001/03/29.../listing1.html

OS: fedora core5.
PHP: v4.4.2, 4.4.8, 5.2.6

-Inet
Jun 27 '08 #1
1 2072
On Jun 15, 9:37 pm, ljb <ljb1...@pobox.com.delete.thiswrote:
inetquest...@hotmail.com wrote:
I am getting this error: "Fatal error: Call to undefined function
socket()" even after reinstalling php4 and php5 with the following
configuration: ./configure --with-gd=/usr/local --with-mysql --enable-
libgcc --with-gettext --enable-sockets.
From all the articles I've found on this problem adding --enable-
sockets fixed the problem, but no such luck this time. the script I
was trying to run can be found here: http://www.onlamp.com/php/2001/03/29.../listing1.html
OS: fedora core5.
PHP: v4.4.2, 4.4.8, 5.2.6

There is no such function socket(). It's socket_create(), socket_bind(),
etc. At least it is with PHP 5.2.6 and 4.4.7. I don't know what's up with the
O'Reilly onlamp.com example except it is probably really, really old.
Thanks, you nailed it. I changed the function names and that fixed
it.

Jun 27 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by gc | last post: by
8 posts views Thread by Tim Tyler | last post: by
2 posts views Thread by John F Dutcher | last post: by
1 post views Thread by drewmania001 | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
xarzu
2 posts views Thread by xarzu | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.