Recommend this page to a friend! |
All requests | > | How to check the user disk and MySQL ... | > | Request new recommendation | > | Featured requests | > | No recommendations |
by ramkumar - 9 years ago (2015-01-10)
+1 | I need folder and file quota allocation for each user 10mb allowed, as well how to restrict in MySQL file content size. |
1. by Manuel Lemos - 9 years ago (2015-01-21) Reply
In PHP there are the functions disk_total_space and disk_free_space that you can use. I am not sure if those functions consider any quotas defined per user in the system.
As for MySQL, I am not sure even if MySQL itself provides means to limit the disk space used by the tables of a given user.
If it is possible at all, it may be useful for many people.
2. by Karl Holz - 9 years ago (2015-01-29) in reply to comment 1 by Manuel Lemos Comment
I would recommend SQLite if you would want to limit the database file size.
3. by Manuel Lemos - 9 years ago (2015-01-29) in reply to comment 2 by Karl Holz Comment
Yes, for SQLite it would be easier because SQLite databases are files. Anyway, I think the original poster request is for MySQL because that is what it uses.
Recommend package | |
|