Hello everybody;

I've got a PHP-GTK chat application which works 100% under UNIX.
However, I've been trying to port it to Windows and I've come across
some socket strangeness.

Namely, if I open a socket with fsockopen and hten set it non-blocking, I
can read from the socket once, then write to it once, but after that the
socket appears to no longer function (it will never read again).

If I leave the socket blocking, it works fine, however the socket will
eventually block on fread() since there is no apparent way to check to see
if there is data to be read *before* running fread().


I've come to the conclusion that the only possible way to work around this
is to use the new experimental "sockets" library.  However, the PHP
executable that I have from http://gtk.php.net does not include the
"sockets" library.  I'm wondering if anyone on this list has a PHP
executable with sockets and GTK?  And if not, would anyone be interested
in building such a thing for me (possibly for money)?  I've tried to build
it on my own, but have met with nothing but fruseration :-)


If anyone can help, please let me know -- thanks so much! :-)


Steve Conley


-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to