|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
hi guys..
i am developing a web based e-mail client..and i would like to add a function where a user can check his mailbox quota. i read the php manual and there are 2 imap functions to do this imap_getquota():to check the current e-mail quota imap_setquota():to set users e-mail quota but there is one problem..the manual says that i need a c-client2000 library. so what is c-client2000 library?because i dont think i have it. if it can be downloaded..where could i find it. currently i am developing under window 98 environment and using Mercury32 mail server. i am still new to php...so maybe u guys could give me tips on how to solve my problem and on which better mail server to use. thanx a bunch! p/s: i got 2 days left before i demo this to my boss..so i do really to solve this fast..thanx again |
|
#2
|
|||
|
|||
|
Hi Raven,
C-Client2000 is an OpenBSD ports library to the best of my knowledge. I've spent some time searching around for you, but I can't seem to find a download link for a Windows 98 version, so I think you can't use it. Your best bet would be to email someone from www.php.net and ask them if you have any alternatives on Win98. |
|
#3
|
|||
|
|||
|
okie dokie...thanx a lot mytch.
|
|
#4
|
|||
|
|||
|
c-client library
hi mytch
well i e-mailed the guys at php.net and one of them said that the c-client is included in the imap.dll extension...and i already enabled them in windows... but still when i run my script i get the same error.for your info,i copied the script from the php manual..and the error was: Code:
Warning: c-client imap_getquota failed in c:\apache\apache\htdocs\osvo\vopis\testquota.php on line 6 here's the code: Code:
$mbox = imap_open("{10.1.2.7}","Admin","admin",OP_HALFOPEN)
or die("can't connect: ".imap_last_error());
$quota_value=imap_get_quota($mbox,"user.rizal");
if(is_array($quota_value)) {
print "Usage level is: " . $quota_value['usage'];
print "Limit level is: " . $quota_value['limit'];
} else{
echo("error");
}
imap_close($mbox);
i tried to set the quota first but i get the "Error in setting quota". hope you guys could help me with this..maybe a little explanation on both functions... .thanx again |
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > check e-mail quota |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|