PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesPHP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 31st, 1999, 07:07 PM
mvlaran
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
My network allows each user to access his/her own home directory in the server, and I limit the disk usage with the Linux Disk Quota System... but the Windows 9x and NT does not recognize the quota format and tells the client that he/she have xxx bytes free where this is the total free, not his/her quota usage... and I can access the user quota usage by repquota -u <user> command....

What I want to know is if is possible to read the user quota and display it in a dynamic web page compiled with php3, so my users can any time refresh and view his / her disk usage and so on....

any information is valid ! I would thank you... and apologize for my english... URL

thanks again

------------------
See ya,

Marcus Laranjeira
São Paulo - SP - Brazil

Linux User #101315

Reply With Quote
  #2  
Old August 2nd, 1999, 10:09 AM
moderator
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
I haven't tried this, but it sounds like you should be able to make it work somehow.

Check out the PHP docs on system():

www.devshed.com/Server_Side/PHP/Manual/manfiles/function.system.html

Good luck.

Reply With Quote
  #3  
Old August 2nd, 1999, 03:43 PM
mvlaran
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
I was thinking of using system or exec function, but either system or exec returns no data and the system logs register
this message : "/home/quota.user: Permission denied"... so, I still can't access quota information because I am not the super user... none php3 use super user to access the system.... What else I could try !?


------------------
See ya,

Marcus Laranjeira
São Paulo - SP - Brazil

Linux User #101315

Reply With Quote
  #4  
Old August 21st, 1999, 07:18 PM
Gizmo
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Hi,
What about this:
- write little shell-script which calls repquota and pipes output into textfile;
- place script into crontab; dependent on usage-level of system - call it every half hour or more often;
- write PHP-Script that read textfile.

Not the best solution, not in-time values, and you should add some locking-mechanism due to file access; but I think, it'll do the job URL

If you have further questions - send me an email.

Ciao,
Alexander.

Reply With Quote
  #5  
Old September 3rd, 1999, 03:10 AM
Pointman
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Might try using a setuid wrapper? I have never tried it via PHP, but I use them all the time to post new page text via email...

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPHP Development > Disk Quotas and PHP3

Developer Shed Advertisers and Affiliates



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 | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap