You can use the socket extension for PHP on windows, just like on Unix, to make your web pages create socket requests to another server (say, download some stock info from Yahoo) with the libraries discussed here:
http://www.php.net/manual/en/ref.sockets.php You may need to enable the 'php_sockets.dll' extension in your php.ini file. Now, if you want to write some SERVER software in PHP, you can just execute a php page from the command line on Windows. Write a php page similar to the server listed at the link above (with an infinite loop, blocking for incoming connections), and just run it: > php.exe my_server_code.php The tricky part is, of course, running this as a background service. There is no nifty '&' command on Win32 to automagicly run something in the background. For NT and 2000, I think "srvany.exe" will enable you to wrapper any program as a windows service. You may need to wrapper your php calls in a C program, tho. Its a pain to use, but it'll get ya there. Of course, I have no idea whatsoever of the robustness of actually running a PHP based server... is anybody else doing this? -- Brian 'Bex' Huff [EMAIL PROTECTED] Phone: 952-903-2023 Fax: 952-829-5424 > How can i use sockets in Windows and IIS?? > thank you > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php