Hi, I am having problems while executing this simple php script:
<? $fp = fsockopen ("www.example.com", 80, $errno, $errstr, 30); if (!$fp) { echo "$errstr ($errno)<br>\n"; } else { fputs ($fp, "GET / HTTP/1.0\r\nHost: www.example.com\r\n\r\n"); while (!feof($fp)) { echo fgets ($fp,128); } fclose ($fp); } ?> The error message is: ----------- Warning: fsockopen(): php_network_getaddresses: getaddrinfo failed: Name does not resolv to supplied parameters; neither nodename nor servname were passed. in /imports/home/gbien/ait/manrod/public_html/prueba_fsockopen.php on line 2 Warning: fsockopen(): unable to connect to www.example.com:80 in /imports/home/gbien/ait/manrod/public_html/prueba_fsockopen.php on line 2 Not owner (1)<br> -------------- but DNS on the server is running. PHP version is 4.3.4, running on dec alpha with True64 Unix V5.1 and configure options: /configure' '--prefix=/usr/local/packages/php-4.3.4' '--exec-prefix=/usr/local/packages/php-4.3.4/alpha-dec-osf5.1' '--with-config-file-path' '--with-apxs=/usr/local/packages/apache_1.3.29/alpha-dec-osf5.1/bin/apxs' '--enable-force-cgi-redirect' '--enable-track-vars' '--with-gettext' '--with-openssl' '--with-zlib' '--with-bz2' '--with-jpeg-dir' '--with-tiff-dir' '--with-png-dir' '--with-xpm-dir' '--with-pgsql' '--with-mm' The same script executed in a Sparc server with Solaris 2.7, and the same php version and configuration (but without postgresql support) gives no errors... Any help would be greatly appreciated. Thanks. Manuel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php