Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> imap_open i błąd 500
darex
post
Post #1





Grupa: Zarejestrowani
Postów: 18
Pomógł: 0
Dołączył: 17.06.2009
Skąd: Kęty

Ostrzeżenie: (0%)
-----


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.

Ten post edytował darex 29.12.2012, 15:57:32
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 24.08.2025 - 22:37