PHP: Undefined functon socket_create()

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ProudCat
    New Member
    • Apr 2006
    • 4

    PHP: Undefined functon socket_create()

    Hi all,
    I'm trying to use socket_create() function from my PHP script and getting this error:
    "Call to undefined function: socket_create() "
    I'm running PHP 4.4.2 on Linux with Apache 2.0.
    I checked phpinfo() and it displays
    '--enable-sockets=shared'
    inside "Configure" command info. I assume that it means this PHP was configured with this option, right?
    Can somebody explain what is wrong then?

    Thanx in advance,
    Jane
  • ProudCat
    New Member
    • Apr 2006
    • 4

    #2
    Fixed:

    I was able to figure it out. Just included
    extension=socke ts.so
    in php.ini file and restarted Apache.

    Jane

    Comment

    Working...