Re: kancha [PHP] telneting sockets help..
| From: | brendan | Date: | Wed, 19 Dec 2001 06:10:25 +0000 |
| Subject: | Re: kancha [PHP] telneting sockets help.. | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-78183@lists.php.net to get a copy of this message | ||
have you tried the client script at http://php.ca/manual/en/ref.sockets.php
??
this seems to (kind of) work ..
however i get a ton of warning messsages from php such as
"Attempting to connect to '202.14.186.30' on port '23'...
Warning: socket_connect() expects parameter 1 to be resource, boolean
Warning: socket_read() expects parameter 1 to be resource, boolean given
Warning: socket_write() expects parameter 1 to be resource, boolean
Warning: socket_close() expects parameter 1 to be resource, boolean
"
not sure why
might be different for you?
cheers
Kancha . wrote:
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 I haven't got a clue. --- brendan <brendan.gogarty@utas.edu.au> wrote:hi i have been trying to write a telnet client to a tn3270 IBM mainframe database ( pericles.ipaustralia.gov.au:23 ) using fsockopen ... i thought it wouldnt be that bad given i have done something similar with usenet .. however i cannot get it to work no matter what I do .. i just get a permanent hang ... has anyone ever attempted this or have any solutions? i know this is rather open ended but i cant offer any code which even kind of works.. it would be much appreciated.. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net__________________________________________________ Do You Yahoo!? Check out Yahoo! Shopping and Yahoo! Auctions for all of your unique holiday gifts! Buy at http://shopping.yahoo.com or bid at http://auctions.yahoo.com