Scriptindex.de

[ Menü ]

Home
News
Scripts
Neuzugänge
Suchen
Bücher
Manuals

[ Inhalt ]

Script eintragen
Tutorial eintragen
Newsletter
Umfragen
Link zu uns
Werbung bei uns
Kontakt
Impressum

[ Statistik ]

Hits gesamt: 5203660
Hits Heute: 317
max. Hits (10.07.07): 6964
User Online: 27
Scripts: 2828

[ Partner ]

CodeBase
I.S.U.M.
LUG Bayreuth
PEAR NEWS
PHP Classes

[ Facebook ]

[ Eigene Domain? ]

[ Buchtipp ]

PHP und MySQL
PHP und MySQL

Manuals > PHP > imap_list

imap_list

(PHP 3>= 3.0.4, PHP 4 )

imap_list -- Read the list of mailboxes

Description

array imap_list ( resource imap_stream, string ref, string pattern)

Returns an array containing the names of the mailboxes. See imap_getmailboxes() for a description of ref and pattern.

Beispiel 1. imap_list() example

<?php
$mbox
= imap_open("","username","password",OP_HALFOPEN)
      or die(
"can't connect: ".imap_last_error());

$list = imap_list($mbox,"","*");
if(
is_array($list)) {
  
reset($list);
  while (list(
$key, $val) = each($list))
    print
imap_utf7_decode($val)."<br>\n";
} else
  print
"imap_list failed: ".imap_last_error()."\n";

imap_close($mbox);
?>


Copyright 1998 - 2009 by I.S.U.M.