Re: Fsockopen error

From: Date: Wed, 02 Nov 2005 00:00:15 +0000
Subject: Re: Fsockopen error
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-224931@lists.php.net to get a copy of this message
On Tue, 01 Nov 2005 14:06:04 -0500, Robert Prentice wrote: > I am attempting to connect to a remote server using fsockopen to post data > to a php file. Here is the error i get: > > Warning: fsockopen(): php_network_getaddresses: getaddrinfo failed: Name > or service not known (is your IPV6 configuration correct? If this error > happens all the time, try reconfiguring PHP using -- disable-ipv6 option > to configure) in /home/customerservice/docs/ admin_ahmed/test.php on line > 37 > > Here is the code i am using: > > > $reply = > http_post("https://www.safetrustprocessing.com", 80, > "/ > xml_order_processing.php", array("myXml" => $xml)); function http_post > ($server, $port, $url, $vars) { > $user_agent = "Mozilla/4.0 (compatible; MSIE 5.5; Windows 98)"; > ... > > Any ideas on the problem? i would guess http_post() is the problem, i have no clue what it really does. Curt. -- http://news.zirzow.dyndns.org/

« previous php.general (#224931) next »