Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- "SSL: Fatal Protocol Error" with fsockopen()
February 23, 2007, 1:05 am
rate this thread
According the fopen() documentation:
"If you are using fsockopen() to create an ssl:// socket, you are
responsible for detecting and suppressing the warning yourself."
I have been unable to determine how to go about suppressing these warnings.
Any help would be greatly appreciated.
- Kim AndrÃ© AkerÃ¸
February 23, 2007, 8:11 am
Re: "SSL: Fatal Protocol Error" with fsockopen()
Supressing warnings is not the way to go. What if something else fails
then the thing you expected to fail? Just set display_errors to false in
your configuration (php.ini/http.conf/.htaccess/php-script itself) and log
them to a file. Certainly advisable for live projects. Just parse the
error log once in a while to check wether something odd is going on, or
check it when something is indeed off or it grows with an alarming pace.
And BTW, error_reporting can be set back offcourse:
$temp = error_reporting(0);