You are here: Re: [PHP] imap_open « PHP « IT news, forums, messages
Re: [PHP] imap_open

Posted by "Joachim Person" on 09/17/05 09:22

"John Nichel" <john@kegworks.com> skrev i meddelandet
news:432B28AE.4080906@kegworks.com...
> Joachim Person wrote:
>> I tried to make the simple program
>>
>> <?php
>> $mbox = imap_open("{imap.liu.se:993}", "joape382", "fil");
>>
>> echo "<h1>Mailboxes</h1>\n";
>> $folders = imap_listmailbox($mbox, "{imap.liu.se:993}", "*");
>>
>> if ($folders == false) {
>> echo "Call failed<br />\n";
>> } else {
>> foreach ($folders as $val) {
>> echo $val . "<br />\n";
>> }
>> }
>>
>> echo "<h1>Headers in INBOX</h1>\n";
>> $headers = imap_headers($mbox);
>>
>> if ($headers == false) {
>> echo "Call failed<br />\n";
>> } else {
>> foreach ($headers as $val) {
>> echo $val . "<br />\n";
>> }
>> }
>>
>> imap_close($mbox);
>> ?>
>>
>> given at http://se2.php.net/manual/sv/function.imap-open.php, but
>> imap_open is not found. I'm running PHP 4.3.10. What is wrong?
>
> Is IMAP support built into your install of PHP? It's not on by default.
>
> --
> John C. Nichel
> άberGeek
> KegWorks.com
> 716.856.9675
> john@kegworks.com

Thank you for your answer,
Yes, I have enabled it.
(I guess you got a few e-mails... sorry about that)
Regards,
Joachim

 

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

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