Re: RE: [PHP] PHP_fsockopen_connection refused(111)
Hello, >I am also creating the same thing... >I use socket_create(), and it works fine. Who is the registrar? Well I try querying denic which is the german registry. I finally got it to work, but it seems it is a name<->ip resolving issue. Instead of using the whois.denic.de as a name, I used the corresponding IP address. And now it works. What I really don't now, is why name resolution works when I use the command line or the browser... ??? One error reported was (in combination with leaving out the "@" in front of the fsockopen() function): Warning: fsockopen(): php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /path/php/class/Request.php on line 22 ... Adding "@" in front of fsockopen and using Address instead of domainname solves the problem (superficially)... Thx for your help BB -- Telefonieren Sie schon oder sparen Sie noch? NEU: GMX Phone_Flat http://www.gmx.net/de/go/telefonie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] PHP_fsockopen_connection refused(111)
This may help : http://www.weberdev.com/get_example-4335.html Sincerely berber Visit the Weber Sites Today, To see where PHP might take you tomorrow. SEO Data Monitor : http://seo.weberdev.com PHP & MySQL Forums : http://www.weberforums.com Free Uptime Monitor : http://uptime.weberdev.com -Original Message- From: Leonidas Safran [mailto:[EMAIL PROTECTED] Sent: Thursday, February 09, 2006 7:49 PM To: php-general@lists.php.net Subject: [PHP] PHP_fsockopen_connection refused(111) Hello, I'm writting a domain checker and for that, I want to use fsockopen to send data to the registry's whois database. Unfortunately I have always "Connection refused", Error 111 when try to create a socket... Even the example shown on php.net website doesn't work, so I believe it's not a code problem from my side... http://www.php.net/manual/de/function.fsockopen.php PHP has been compiled with -enable-socket option, so I also think it's not the problem neither. On top of that, I tried the same code on two different machines (Ubuntu, FC4): same result... I first thought it could be a DNS problem, but as I can use my browser normally on the same PC, I wonder... Any help would be highly appreciated ;-) Thx: BB -- 10 GB Mailbox, 100 FreeSMS/Monat http://www.gmx.net/de/go/topmail +++ GMX - die erste Adresse f|r Mail, Message, More +++ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] PHP_fsockopen_connection refused(111)
> > I'm writting a domain checker and for that, I want to use > fsockopen to send > data to the registry's whois database. > Unfortunately I have always "Connection refused", Error 111 > when try to > create a socket... Are you just doing whois lookups? If so, there's an easier way on a linux box: $whois=`whois gmx.net`;//look up gmx.net in the whois database print"$whois\r\n";//echo it to the screen JM -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php