You are here: Re: "SSL: Fatal Protocol Error" with fsockopen() « PHP Programming Language « IT news, forums, messages
Re: "SSL: Fatal Protocol Error" with fsockopen()

Posted by keychain on 02/23/07 20:14

"Kim Andrι Akerψ" <kimandre@NOSPAMbetadome.com> wrote in message
news:547lsmF1uqdj8U1@mid.individual.net...
> keychain wrote:
>
>> I'm experience the infamous "SSL: Fatal Protocol Error" bug with
>> Apache 2.x
>>
>> 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.
>
> You can supress warnings by putting an @ directly in front of the
> function name, like this:
>
> $handle = @fsockopen("ssl://server.example.com", 443);
>
> --
> Kim Andrι Akerψ
> - kimandre@NOSPAMbetadome.com
> (remove NOSPAM to contact me directly)

Kim, that's a great tip--thanks!

You can optionally use

error_reporting(0);

but this suppresses all warnings, which is obviously less desirable.

 

Navigation:

[Reply to this message]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация