MailBox Quota

Vinod Singh VinodS@rolta.com
Fri, 22 Jun 2001 12:23:05 +0530


Hi Every1,
I am trying the following  code snippet to get the mail quota and show it on
the web page.


$mbox = imap_open("192.168.30.169","user1","password",OP_HALFOPEN)
      or die("can't connect: ".imap_last_error());
 
$quota_value = imap_get_quota($mbox, "user1.INBOX");
if(is_array($quota_value)) {
    print "Usage level is: " . $quota_value['usage'];
    print "Limit level is: " . $quota_value['limit'];
} 
 
imap_close($mbox); 

can anyone tell me where i am wrong.

Warm Regards
Vinod Singh