Hi All

another relative Newbie I'm afraid. Though I have been using basic php successfully for a while.

BUT when I tried to use the socket functions I found they were not enabled (php 4. x). So in the php.ini I added the line extension=php_sockets.dll and put php_sockets.dll in the extensions folder.

Is this right?

Because php now does not work AT ALL, even old stuff that worked before. And cannot even create a socket.

Processor usage jumps to 100%.

I installed from phpTriad and am running under Windows 98.

Any ideas?

I got the php_sockets.dll from http://kromann.info/php4.php

David Stearne

    Correction:
    processor usage not 100% at all, looks quite normal.
    David Stearne

      But it does produce a process called winoldap every time.
      Is that a clue?

        Hello,
        run the phpinfo and see if the sockets are not enabled.If not, try this one.....
        In the php.ini file, you have the following line
        ;extension=php_sockets.dll
        Remove the ; and run phpinfo.Now, you should be able to see sockets enabled.

        HTH

          Thanks for the reply
          I do not have the line ;extension=php_sockets.dll in the php.ini file to remove the ; from!
          If I add it ( without the 😉 php hangs on every program.
          As I explained at the start of this thread, I tried this before & also with php_sockets.dll added to the extensions folder which is what I think I need BUT still hangs.
          When phpinfo runs, it does not show sockets enabled, which is not surprising because it will not run with extension=php_sockets.dll present in php.ini.
          I am obviously missing something fundamental here.
          I have just upgraded to php 4.1.1 but still no change.
          My setup clearly does not know about sockets.
          What else do you have to do?
          Thanks

            I've never used these socket functions before; I tend to wait until they're no longer experimental, unless I have some specific reason to play with them.

            One thing I should check is if you actually have a php_sockets.dll - probably do, but if it's the wrong version for PHP that would cause grief, because the API is likely different.

            If you just upgraded, why did you only upgrade as far as 4.1.1, instead of the current stable version (4.3.2)?

              Write a Reply...