On Wed, May 10, 2006 5:30 am, Nick Wilson wrote:
> 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?

@ should suppress those, I would think...

You may want to try using http://php.net/set_error_handler

And on your production server, the errors should be going to an
error_log and not the browser anyway.

-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to