Re: [PHP] [php] php_network_getaddresses: getaddrinfo failed: No such host is known
now I have been able to telnet to the server IP but it defaulting to port 23 instead of the port I specified ( telnet ip port). How do u correct this problem On Wed, May 27, 2009 at 2:40 PM, Daniel Brown danbr...@php.net wrote: On Wed, May 27, 2009 at 09:08, Stuart stut...@gmail.com wrote: There's like 37 different things it could be, none of which have anything to do with PHP. You may find someone on this list willing to help you out, but your better bet would be to find a list more suited to the problem. I will help. Step 1: RTFM [1] Step 2: STFW [2] Step 3: Follow the advice Stuart already gave you and speak with a network tech. Step 4: Try restarting Apache (if you can), in case the DNS was changed recently. Step 5: Re-query the list with more information, if needed, and don't top-post. Step 6: If still unresolved, give up. [3] ^1: http://php.net/stream-socket-client ^2: http://google.com/search?q=php_network_getaddresses:+getaddrinfo+failed:+No+such+host+is+known ^3: http://asia.cnet.com/i/r/2005/gb/mar/funkey_b1.jpg -- /Daniel P. Brown daniel.br...@parasane.net || danbr...@php.net http://www.parasane.net/ || http://www.pilotpig.net/ 50% Off All Shared Hosting Plans at PilotPig: Use Coupon DOW1 -- www.bemycandy.com
Re: [PHP] [php] php_network_getaddresses: getaddrinfo failed: No such host is known
On Thu, May 28, 2009 at 2:31 AM, HELP! izod...@gmail.com wrote: now I have been able to telnet to the server IP but it defaulting to port 23 instead of the port I specified ( telnet ip port). How do u correct this problem rtfm telnet translates to man telnet which says telnet host port so put the port after the hostname ;) -nathan
Re: [PHP] [php] php_network_getaddresses: getaddrinfo failed: No such host is known
I have done that. o host port or telnet host port On Thu, May 28, 2009 at 9:39 AM, Nathan Nobbe quickshif...@gmail.comwrote: On Thu, May 28, 2009 at 2:31 AM, HELP! izod...@gmail.com wrote: now I have been able to telnet to the server IP but it defaulting to port 23 instead of the port I specified ( telnet ip port). How do u correct this problem rtfm telnet translates to man telnet which says telnet host port so put the port after the hostname ;) -nathan -- www.bemycandy.com
Re: [PHP] [php] php_network_getaddresses: getaddrinfo failed: No such host is known
On Thu, May 28, 2009 at 2:40 AM, HELP! izod...@gmail.com wrote: I have done that. o host port or telnet host port thats pretty odd.. a quick test on my box, looks like it works fine, phdelnnobbe:~ nnobbe$ telnet host 22 Trying xx.xx.xx.xx... Connected to host. Escape character is '^]'. SSH-2.0-OpenSSH_4.5 again, you may want to consult the docs on your system to hunt down the issue.. -nathan
Re: [PHP] [php] php_network_getaddresses: getaddrinfo failed: No such host is known
2009/5/27 HELP! izod...@gmail.com: Hi, error: php_network_getaddresses: getaddrinfo failed: No such host is known $fstream = stream_socket_client($con:$ip:$port, $errno, $errstr, $timeout); if($fstream){ $br = fwrite($fstream,$login_request_block); $str = stream_get_contents($fstream); print( Connection successful: $str ); } else{ return str: $strbrwrite:$brbr $errstr ($errno); } What could be the error What's in $con? I'm guessing tcp in which case the first parameter to stream_socket_client is wrong. See the manual for details: http://php.net/stream_socket_client In future please consult the manual and double-check that you're passing valid arguments to the functions you're using before asking on this list. -Stuart -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] [php] php_network_getaddresses: getaddrinfo failed: No such host is known
$port =xx; $ip =xx; $con =$transport = tcp; On Wed, May 27, 2009 at 1:24 PM, Stuart stut...@gmail.com wrote: 2009/5/27 HELP! izod...@gmail.com: Hi, error: php_network_getaddresses: getaddrinfo failed: No such host is known $fstream = stream_socket_client($con:$ip:$port, $errno, $errstr, $timeout); if($fstream){ $br = fwrite($fstream,$login_request_block); $str = stream_get_contents($fstream); print( Connection successful: $str ); } else{ return str: $strbrwrite:$brbr $errstr ($errno); } What could be the error What's in $con? I'm guessing tcp in which case the first parameter to stream_socket_client is wrong. See the manual for details: http://php.net/stream_socket_client In future please consult the manual and double-check that you're passing valid arguments to the functions you're using before asking on this list. -Stuart -- http://stut.net/ -- www.bemycandy.com
Re: [PHP] [php] php_network_getaddresses: getaddrinfo failed: No such host is known
2009/5/27 HELP! izod...@gmail.com: $port =xx; $ip =xx; $con =$transport = tcp; Which part of See the manual for details confused you? You're passing ... $con:$ip:$port ... which based on the above will translate to ... tcp:xx:xx ... which is invalid. It should be ... $con://$ip:$port ... which will translate to ... tcp://xx:xx ... which is a valid value. Please, read the damn manual ... carefully!! -Stuart -- http://stut.net/ On Wed, May 27, 2009 at 1:24 PM, Stuart stut...@gmail.com wrote: 2009/5/27 HELP! izod...@gmail.com: Hi, error: php_network_getaddresses: getaddrinfo failed: No such host is known $fstream = stream_socket_client($con:$ip:$port, $errno, $errstr, $timeout); if($fstream){ $br = fwrite($fstream,$login_request_block); $str = stream_get_contents($fstream); print( Connection successful: $str ); } else{ return str: $strbrwrite:$brbr $errstr ($errno); } What could be the error What's in $con? I'm guessing tcp in which case the first parameter to stream_socket_client is wrong. See the manual for details: http://php.net/stream_socket_client In future please consult the manual and double-check that you're passing valid arguments to the functions you're using before asking on this list. -Stuart -- http://stut.net/ -- www.bemycandy.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] [php] php_network_getaddresses: getaddrinfo failed: No such host is known
I have made the correction but the error remiins: $port =xx; $ip =xx $con =tcp; $timeout = 30; $fstream = stream_socket_client($con://$ip:$port, $errno, $errstr, $timeout); if($fstream){ $str = stream_get_contents($fstream); print( Connection successful: $str ); } else{ echo Remote: .$name.br str: $strbrwrite:$brbr $errstr ($errno); } On Wed, May 27, 2009 at 1:31 PM, Stuart stut...@gmail.com wrote: 2009/5/27 HELP! izod...@gmail.com: $port =xx; $ip =xx; $con =$transport = tcp; Which part of See the manual for details confused you? You're passing ... $con:$ip:$port ... which based on the above will translate to ... tcp:xx:xx ... which is invalid. It should be ... $con://$ip:$port ... which will translate to ... tcp://xx:xx ... which is a valid value. Please, read the damn manual ... carefully!! -Stuart -- http://stut.net/ On Wed, May 27, 2009 at 1:24 PM, Stuart stut...@gmail.com wrote: 2009/5/27 HELP! izod...@gmail.com: Hi, error: php_network_getaddresses: getaddrinfo failed: No such host is known $fstream = stream_socket_client($con:$ip:$port, $errno, $errstr, $timeout); if($fstream){ $br = fwrite($fstream,$login_request_block); $str = stream_get_contents($fstream); print( Connection successful: $str ); } else{ return str: $strbrwrite:$brbr $errstr ($errno); } What could be the error What's in $con? I'm guessing tcp in which case the first parameter to stream_socket_client is wrong. See the manual for details: http://php.net/stream_socket_client In future please consult the manual and double-check that you're passing valid arguments to the functions you're using before asking on this list. -Stuart -- http://stut.net/ -- www.bemycandy.com -- www.bemycandy.com
Re: [PHP] [php] php_network_getaddresses: getaddrinfo failed: No such host is known
2009/5/27 HELP! izod...@gmail.com: I have made the correction but the error remiins: $port =xx; $ip =xx $con =tcp; $timeout = 30; $fstream = stream_socket_client($con://$ip:$port, $errno, $errstr, $timeout); if($fstream){ $str = stream_get_contents($fstream); print( Connection successful: $str ); } else{ echo Remote: .$name.br str: $strbrwrite:$brbr $errstr ($errno); } My guess is that the IP you're trying to connect to is wrong. Can you telnet to that IP/port combination on a command line? -Stuart -- http://stut.net/ On Wed, May 27, 2009 at 1:31 PM, Stuart stut...@gmail.com wrote: 2009/5/27 HELP! izod...@gmail.com: $port =xx; $ip =xx; $con =$transport = tcp; Which part of See the manual for details confused you? You're passing ... $con:$ip:$port ... which based on the above will translate to ... tcp:xx:xx ... which is invalid. It should be ... $con://$ip:$port ... which will translate to ... tcp://xx:xx ... which is a valid value. Please, read the damn manual ... carefully!! -Stuart -- http://stut.net/ On Wed, May 27, 2009 at 1:24 PM, Stuart stut...@gmail.com wrote: 2009/5/27 HELP! izod...@gmail.com: Hi, error: php_network_getaddresses: getaddrinfo failed: No such host is known $fstream = stream_socket_client($con:$ip:$port, $errno, $errstr, $timeout); if($fstream){ $br = fwrite($fstream,$login_request_block); $str = stream_get_contents($fstream); print( Connection successful: $str ); } else{ return str: $strbrwrite:$brbr $errstr ($errno); } What could be the error What's in $con? I'm guessing tcp in which case the first parameter to stream_socket_client is wrong. See the manual for details: http://php.net/stream_socket_client In future please consult the manual and double-check that you're passing valid arguments to the functions you're using before asking on this list. -Stuart -- http://stut.net/ -- www.bemycandy.com -- www.bemycandy.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] [php] php_network_getaddresses: getaddrinfo failed: No such host is known
2009/5/27 HELP! izod...@gmail.com: start run cmd telnet ip port could not connect In that case your problem is not with PHP. I suggest you talk to your network administrator. -Stuart -- http://stut.net/ On Wed, May 27, 2009 at 1:44 PM, Stuart stut...@gmail.com wrote: 2009/5/27 HELP! izod...@gmail.com: I have made the correction but the error remiins: $port =xx; $ip =xx $con =tcp; $timeout = 30; $fstream = stream_socket_client($con://$ip:$port, $errno, $errstr, $timeout); if($fstream){ $str = stream_get_contents($fstream); print( Connection successful: $str ); } else{ echo Remote: .$name.br str: $strbrwrite:$brbr $errstr ($errno); } My guess is that the IP you're trying to connect to is wrong. Can you telnet to that IP/port combination on a command line? -Stuart -- http://stut.net/ On Wed, May 27, 2009 at 1:31 PM, Stuart stut...@gmail.com wrote: 2009/5/27 HELP! izod...@gmail.com: $port =xx; $ip =xx; $con =$transport = tcp; Which part of See the manual for details confused you? You're passing ... $con:$ip:$port ... which based on the above will translate to ... tcp:xx:xx ... which is invalid. It should be ... $con://$ip:$port ... which will translate to ... tcp://xx:xx ... which is a valid value. Please, read the damn manual ... carefully!! -Stuart -- http://stut.net/ On Wed, May 27, 2009 at 1:24 PM, Stuart stut...@gmail.com wrote: 2009/5/27 HELP! izod...@gmail.com: Hi, error: php_network_getaddresses: getaddrinfo failed: No such host is known $fstream = stream_socket_client($con:$ip:$port, $errno, $errstr, $timeout); if($fstream){ $br = fwrite($fstream,$login_request_block); $str = stream_get_contents($fstream); print( Connection successful: $str ); } else{ return str: $strbrwrite:$brbr $errstr ($errno); } What could be the error What's in $con? I'm guessing tcp in which case the first parameter to stream_socket_client is wrong. See the manual for details: http://php.net/stream_socket_client In future please consult the manual and double-check that you're passing valid arguments to the functions you're using before asking on this list. -Stuart -- http://stut.net/ -- www.bemycandy.com -- www.bemycandy.com -- www.bemycandy.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] [php] php_network_getaddresses: getaddrinfo failed: No such host is known
I am using a single pc and i have enable firewall access. Could it be that the remote server is having trouble On Wed, May 27, 2009 at 2:02 PM, Stuart stut...@gmail.com wrote: 2009/5/27 HELP! izod...@gmail.com: start run cmd telnet ip port could not connect In that case your problem is not with PHP. I suggest you talk to your network administrator. -Stuart -- http://stut.net/ On Wed, May 27, 2009 at 1:44 PM, Stuart stut...@gmail.com wrote: 2009/5/27 HELP! izod...@gmail.com: I have made the correction but the error remiins: $port =xx; $ip =xx $con =tcp; $timeout = 30; $fstream = stream_socket_client($con://$ip:$port, $errno, $errstr, $timeout); if($fstream){ $str = stream_get_contents($fstream); print( Connection successful: $str ); } else{ echo Remote: .$name.br str: $strbrwrite:$brbr $errstr ($errno); } My guess is that the IP you're trying to connect to is wrong. Can you telnet to that IP/port combination on a command line? -Stuart -- http://stut.net/ On Wed, May 27, 2009 at 1:31 PM, Stuart stut...@gmail.com wrote: 2009/5/27 HELP! izod...@gmail.com: $port =xx; $ip =xx; $con =$transport = tcp; Which part of See the manual for details confused you? You're passing ... $con:$ip:$port ... which based on the above will translate to ... tcp:xx:xx ... which is invalid. It should be ... $con://$ip:$port ... which will translate to ... tcp://xx:xx ... which is a valid value. Please, read the damn manual ... carefully!! -Stuart -- http://stut.net/ On Wed, May 27, 2009 at 1:24 PM, Stuart stut...@gmail.com wrote: 2009/5/27 HELP! izod...@gmail.com: Hi, error: php_network_getaddresses: getaddrinfo failed: No such host is known $fstream = stream_socket_client($con:$ip:$port, $errno, $errstr, $timeout); if($fstream){ $br = fwrite($fstream,$login_request_block); $str = stream_get_contents($fstream); print( Connection successful: $str ); } else{ return str: $strbrwrite:$brbr $errstr ($errno); } What could be the error What's in $con? I'm guessing tcp in which case the first parameter to stream_socket_client is wrong. See the manual for details: http://php.net/stream_socket_client In future please consult the manual and double-check that you're passing valid arguments to the functions you're using before asking on this list. -Stuart -- http://stut.net/ -- www.bemycandy.com -- www.bemycandy.com -- www.bemycandy.com -- www.bemycandy.com
Re: [PHP] [php] php_network_getaddresses: getaddrinfo failed: No such host is known
2009/5/27 HELP! izod...@gmail.com: I am using a single pc and i have enable firewall access. Could it be that the remote server is having trouble There's like 37 different things it could be, none of which have anything to do with PHP. You may find someone on this list willing to help you out, but your better bet would be to find a list more suited to the problem. -Stuart -- http://stut.net/ On Wed, May 27, 2009 at 2:02 PM, Stuart stut...@gmail.com wrote: 2009/5/27 HELP! izod...@gmail.com: start run cmd telnet ip port could not connect In that case your problem is not with PHP. I suggest you talk to your network administrator. -Stuart -- http://stut.net/ On Wed, May 27, 2009 at 1:44 PM, Stuart stut...@gmail.com wrote: 2009/5/27 HELP! izod...@gmail.com: I have made the correction but the error remiins: $port =xx; $ip =xx $con =tcp; $timeout = 30; $fstream = stream_socket_client($con://$ip:$port, $errno, $errstr, $timeout); if($fstream){ $str = stream_get_contents($fstream); print( Connection successful: $str ); } else{ echo Remote: .$name.br str: $strbrwrite:$brbr $errstr ($errno); } My guess is that the IP you're trying to connect to is wrong. Can you telnet to that IP/port combination on a command line? -Stuart -- http://stut.net/ On Wed, May 27, 2009 at 1:31 PM, Stuart stut...@gmail.com wrote: 2009/5/27 HELP! izod...@gmail.com: $port =xx; $ip =xx; $con =$transport = tcp; Which part of See the manual for details confused you? You're passing ... $con:$ip:$port ... which based on the above will translate to ... tcp:xx:xx ... which is invalid. It should be ... $con://$ip:$port ... which will translate to ... tcp://xx:xx ... which is a valid value. Please, read the damn manual ... carefully!! -Stuart -- http://stut.net/ On Wed, May 27, 2009 at 1:24 PM, Stuart stut...@gmail.com wrote: 2009/5/27 HELP! izod...@gmail.com: Hi, error: php_network_getaddresses: getaddrinfo failed: No such host is known $fstream = stream_socket_client($con:$ip:$port, $errno, $errstr, $timeout); if($fstream){ $br = fwrite($fstream,$login_request_block); $str = stream_get_contents($fstream); print( Connection successful: $str ); } else{ return str: $strbrwrite:$brbr $errstr ($errno); } What could be the error What's in $con? I'm guessing tcp in which case the first parameter to stream_socket_client is wrong. See the manual for details: http://php.net/stream_socket_client In future please consult the manual and double-check that you're passing valid arguments to the functions you're using before asking on this list. -Stuart -- http://stut.net/ -- www.bemycandy.com -- www.bemycandy.com -- www.bemycandy.com -- www.bemycandy.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] [php] php_network_getaddresses: getaddrinfo failed: No such host is known
On Wed, May 27, 2009 at 09:08, Stuart stut...@gmail.com wrote: There's like 37 different things it could be, none of which have anything to do with PHP. You may find someone on this list willing to help you out, but your better bet would be to find a list more suited to the problem. I will help. Step 1: RTFM [1] Step 2: STFW [2] Step 3: Follow the advice Stuart already gave you and speak with a network tech. Step 4: Try restarting Apache (if you can), in case the DNS was changed recently. Step 5: Re-query the list with more information, if needed, and don't top-post. Step 6: If still unresolved, give up. [3] ^1: http://php.net/stream-socket-client ^2: http://google.com/search?q=php_network_getaddresses:+getaddrinfo+failed:+No+such+host+is+known ^3: http://asia.cnet.com/i/r/2005/gb/mar/funkey_b1.jpg -- /Daniel P. Brown daniel.br...@parasane.net || danbr...@php.net http://www.parasane.net/ || http://www.pilotpig.net/ 50% Off All Shared Hosting Plans at PilotPig: Use Coupon DOW1 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php