Mam dosyć dziwny problem. Próbuje zrobić sobie proste pobranie poczty z Gmaila. Fragment:

  1. $username = '***';
  2. $password = '***';
  3. $inbox = imap_open("{imap.gmail.com:993/imap/ssl}",$username,$password) or die('Cannot connect to Gmail: ' . imap_last_error());


No i teoretycznie powinno działać. A wywala mi błąd 500 ... The server encountered an internal error or misconfiguration and was unable to complete your request.

Próbowałem na localhost, na mój serwer s5.masternet.pl i to samo... patrzyłem na logi serwera:

Kod
[Sat Dec 29 15:45:42 2012] [warn] [client ....] (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server
[Sat Dec 29 15:45:42 2012] [error] [client ....] Premature end of script headers: index.php


Dla spróbowania usunąłem .htaccess - nic, zmieniałem chmody.. też nic.
Pisałem do administratora serwera i dostałem odpowiedź że certyfikaty s5.masternet.p są poprawne itd.
Już nie mam pomysłu..

Dobra, naprawione. Temat do zamknięcia.