Hello everyone
I'm trying to use imap_get_quota, but I get an error:
Call to undefined function: imap_get_quota
Im using php 4.2.3 + Apache 1.3.27
I have installed imap-2002.RC2 ( includes the c-client )
phpinfo() says
IMAP
c-Client Version 4.1
php.net says
imap_get_quota : This function is currently only available to users of the c-client2000 or greater library.
this is the code:
$mbox = imap_open("{your.imap.host}","mailadmin","password",OP_HALFOPEN)
or die("can't connect: ".imap_last_error());
$quota_value = imap_get_quota($mbox, "user.kalowsky");
if(is_array($quota_value)) {
print "Usage level is: " . $quota_value['usage'];
print "Limit level is: " . $quota_value['limit'];
}
imap_close($mbox);
thanks.
BTW: I'm using Courier-Imap 1.5.1
Emito