if the server is down

If the server is down I receive a warning 
Warning: fsockopen() [function.fsockopen]: unable to connect to tcp://.....