RE: [PHP-WIN] Sockets problems in php

From: Date: Mon, 21 May 2001 13:42:04 +0000
Subject: RE: [PHP-WIN] Sockets problems in php
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-7783@lists.php.net to get a copy of this message
I'm trying to get fsockopen to work. Somehow, I believe it is something that I am missing because I can make an http-get work with fsockopen. It could be that I have to initialize the socket in perl differently. STDIN / STDOUT works on unix, but opening processes does not work on windows. PHP 4.06 is supposed to have fixed this problem. Thanks for your reply. -----Original Message----- From: Michael Rudel [mailto:mru@suchtreffer.de] Sent: Friday, May 18, 2001 9:41 AM To: 'Che Gonzalez'; 'php-windows' Subject: RE: [PHP-WIN] Sockets problems in php Hola Che, Have you tried "fsockopen" ?? (opens a socket connection). Or if you could make your pearl-"demons" communicate with stdin/stdout you could manage your things with unix-shell commands. Perhaps this helps. Greetinx, Mike Michael Rudel - Web-Development, Systemadministration - _______________________________________________________________ Suchtreffer AG Bleicherstraße 20 D-78467 Konstanz Germany fon: +49-(0)7531-89207-17 fax: +49-(0)7531-89207-13 e-mail: mailto:mru@suchtreffer.de internet: http://www.suchtreffer.de _______________________________________________________________ > -----Original Message----- > From: Che Gonzalez [mailto:che@atlantic.net] > Sent: Friday, May 18, 2001 3:21 PM > To: php-windows > Subject: FW: [PHP-WIN] Sockets problems in php > > > Has anybody linked perl socket servers to php scripts > and made it work? > > -----Original Message----- > From: Che Gonzalez [mailto:che@atlantic.net] > Sent: Wednesday, May 16, 2001 11:55 PM > To: php-windows@lists.php.net > Subject: [PHP-WIN] Sockets problems in php > > > I created several rpc tcp servers in perl. The pearl > clients work fine, and sending a message to the server in php > works. The problem happens after the perl server replies ( I > have seen the actual reply through monitoring the server ). > The php script hangs on freads and fgets. I turned off > blocking and looped several times while throwing in a sleep > interval in between , but this was still to no avail. Any > ideas out there, or has anyone found this to be a bug? I > might try this on Linux tomorrow to eliminate any other > possibilities, but any ideas to save me some time would > greatly be appreciated. > Also, I tried a simple socket-http get on a web page > and it worked ( Also works with host header sites, which > fopen doesn't seem to work with). > > Buenos Noches zzZ! > > > ****************************************** > * Che Gonzalez [mailto:che@atlantic.net] * > * Atlantic.net * > * Manager of Web Development/ * > * Network Administrator * > * MCSE+I / CCNA / SCO ACE * > ****************************************** > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net > For additional commands, e-mail: php-windows-help@lists.php.net > To contact the list administrators, e-mail: > php-list-admin@lists.php.net > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net > For additional commands, e-mail: php-windows-help@lists.php.net > To contact the list administrators, e-mail: > php-list-admin@lists.php.net >

« previous php.windows (#7783) next »