Hi to all,
first i am sorry for maybe trivial questions, but i cannot use socket functions in my php. I discovered that the special compile options have to be used. Can anybody tell me where to get (even non stable) windows PHP binaries where are socket functionality included?

Thank to you all,
Valerie

    It would be good if you stated the exact version of PHP, your operating system and web server.

    Anyway, you most likely need to enable the extension in php.ini

      Thank you, for me any version 4.x would be fine. I am using Apache 2 series on Windows 2000. Any idea how to enable it? I cannot find anything in ini file.

        1. Find "extension_dir" in php.ini, and change it to a suitable value, e.g. "C:/php/extensions/"
        2. Find "Windows Extensions", uncomment the line with "extension=php_sockets.dll"
        3. Restart Apache web server.

          It works! Thank you. I am only curious why there is written on php.net that recompiling is needed.
          Thanks a lot,
          Valerie

            In this case you're loading the extensions dynamically rather than compiling them into PHP.

            Where does it say that you need to compile PHP instead of using the binaries provided?

              yes this is better anyway. It is written on php.net and nearly all examples around the web i was searching for some sockets functionality.

                Write a Reply...