RE: [PHP] telneting sockets help..

2001-12-18 Thread James Cox
Hi, I had recent problems like this, and I traced it to firewall issues; however i just checked the destination, and found it is possible to telnet to that port, so it's not a firewall issue on their side. Try using the following code -- and let it run, see what response you get. ?php $host

Re: [PHP] telneting sockets help..

2001-12-18 Thread brendan
hi james, thanks for your reply .. i was able to connect ( i should have written that in the email) its getting the info to flush to the screen that i cant do .. it just hangs.. so if you add something like while (!feof($fp)) { echo fgets ($fp,128); } fclose ($fp); to the

Re: [PHP] telneting sockets help..

2001-12-18 Thread Kancha .
I'm in a smilar situation. I'm trying to telnet to a RAS server using php and the process justs hangs. I tried to telnet to other linux servers as well and the result was same. fsockopen to other ports such as 21 or even 25 workds. It's just the port 23 that's giving this strange problem. So far

RE: [PHP] telneting sockets help..

2001-12-18 Thread Lawrence . Sheed
: [EMAIL PROTECTED] Subject: Re: [PHP] telneting sockets help.. hi james, thanks for your reply .. i was able to connect ( i should have written that in the email) its getting the info to flush to the screen that i cant do .. it just hangs.. so if you add something like while (!feof($fp

Re: [PHP] telneting sockets help..

2001-12-18 Thread brendan
''); flush; } return ($line); } print GetLine(); -Original Message- From: brendan [mailto:[EMAIL PROTECTED]] Sent: December 19, 2001 1:04 PM To: [EMAIL PROTECTED]; James Cox Cc: [EMAIL PROTECTED] Subject: Re: [PHP] telneting sockets help.. hi

Re: [PHP] telneting sockets help..

2001-12-18 Thread Kernel Panic
ROTECTED] Subject: Re: [PHP] telneting sockets help.. hi james, thanks for your reply .. i was able to connect ( i should have written that in the email) its getting the info to flush to the screen that i cant do .. it just hangs.. so if you add something like while (!feof($fp)) { ec