Cannot suppress fsockopen errors
| From: | Nick Wilson | Date: | Wed, 10 May 2006 10:30:21 +0000 |
| Subject: | Cannot suppress fsockopen errors | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-235869@lists.php.net to get a copy of this message | ||
Hi,
Im having a hard time surpressing fsckopen() errors. I've looked at the
manual and searched around, but what i am doing /appears/ to be correct,
yet im still geting warnings...
here's the code:
// open a socket to the server
if($handle = @fsockopen($bits['host'], 80, $errno, $errstr, 10) or die("die")) {
return true;
}
and here are the warnings:
warning: fsockopen(): php_network_getaddresses: getaddrinfo failed: Name
or service not known in
/var/www/localhost/vhosts/payment.communicontent.com/modules/partners/inc/includes/validateBlog.inc
on line 53.
warning: fsockopen(): unable to connect to www.ivana.dk:80 in
/var/www/localhost/vhosts/payment.communicontent.com/modules/partners/inc/includes/validateBlog.inc
on line 53.
I've even tried looking though php.ini for any clues and i dont see
anything useful. Does anyone have an idea of what im missing here?
Many thanks!
--
Nick Wilson
Tel: +45 3311 2250