Jump to content

Error message / fsockopen


kraadde

Recommended Posts

In my prog I have a socket connection like below.

 

 

$fp = fsockopen("$host", $port, $errno, $errstr, 30);

if (!$fp)

{.......

 

 

everything works perfectly. However, today I opened the site while the host was down. The website returned an error message (...fsocket connection could not open...error on line...).

This is very annoying since the error message shows information about the source page and code..

BTW, error_reporting(E_ALL) is NOT included in my code.

Any hint how I can avoid that kind of error message?

 

kraadde

Link to comment
https://forums.phpfreaks.com/topic/81731-error-message-fsockopen/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.