note 45706 added to function.imap-get-quotaroot
| From: | rodrigo dot tsuru at tsuru dot net | Date: | Wed, 15 Sep 2004 18:07:18 +0000 |
| Subject: | note 45706 added to function.imap-get-quotaroot | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-76768@lists.php.net to get a copy of this message | ||
The example above isn´t right. Replace with this:
<?php
$mbox = imap_open("{your.imap.host}", "kalowsky", "password",
OP_HALFOPEN)
or die("can't connect: " . imap_last_error());
$quota = imap_get_quotaroot($mbox, "INBOX");
if (is_array($quota)) {
$storage = $quota['STORAGE'];
echo "STORAGE usage level is: " . $storage['usage'];
echo "STORAGE limit level is: " . $storage['limit'];
$message = $quota['MESSAGE'];
echo "MESSAGE usage level is: " . $message['usage'];
echo "MESSAGE usage level is: " . $message['limit'];
/* ... */
}
imap_close($mbox);
?>
----
Manual Page -- http://www.php.net/manual/en/function.imap-get-quotaroot.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+45706
Delete -- http://master.php.net/manage/user-notes.php?action=delete+45706&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+45706&report=yes
Search -- http://master.php.net/manage/user-notes.php