Call to undefined function socket_create()

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jack Lindamood

    Call to undefined function socket_create()

    Using: Win2003 - IIS6 - PHP5.0

    I'm executing a third party script and get this error message:
    Fatal error: Call to undefined function socket_create() in C:\Inetpub\XXX on
    line 195

    After some googleing, I think it is because sockets aren't enabled. I've
    opened php.ini and uncommented the line
    extension=php_s ockets.dll
    and restarted the world wide web publishing service, but I still get the
    same error message. No clue what to do from here. Does anyone have any
    suggestions?

    Thanks,

    Jack


  • Peter van Schie

    #2
    Re: Call to undefined function socket_create()

    Jack Lindamood wrote:
    [color=blue]
    > After some googleing, I think it is because sockets aren't enabled. I've
    > opened php.ini and uncommented the line
    > extension=php_s ockets.dll
    > and restarted the world wide web publishing service, but I still get the
    > same error message. No clue what to do from here. Does anyone have any
    > suggestions?[/color]

    Did you set your extension_dir to the right location in php.ini?
    The php_sockets.dll needs to be in that directory so the webserver can
    load it.

    HTH.
    Peter.

    --

    Comment

    • Python

      #3
      Re: Call to undefined function socket_create()

      and remember to restart server

      Comment

      Working...