General Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingGeneral Programming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old August 6th, 2002, 08:11 PM
raven raven is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Location: malaysia
Posts: 6 raven User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Talking check e-mail quota

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

Reply With Quote
  #2  
Old August 7th, 2002, 02:34 AM
mytch mytch is offline
Dev Articles Novice (500 - 999 posts)
 
Join Date: Apr 2002
Location: Sydney, Australia
Posts: 589 mytch User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
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.

Reply With Quote
  #3  
Old August 7th, 2002, 03:16 AM
raven raven is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Location: malaysia
Posts: 6 raven User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Smile

okie dokie...thanx a lot mytch.

Reply With Quote
  #4  
Old August 7th, 2002, 09:26 PM
raven raven is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Location: malaysia
Posts: 6 raven User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingGeneral Programming Help > check e-mail quota


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway