PHP Classes

How to check the user disk and MySQL quota in PHP?: I need this folder and file quota allocation

Recommend this page to a friend!
  All requests RSS feed  >  How to check the user disk and MySQL ...  >  Request new recommendation  >  A request is featured when there is no good recommended package on the site when it is posted. Featured requests  >  No recommendations No recommendations  

How to check the user disk and MySQL quota in PHP?

A request is featured when there is no good recommended package on the site when it is posted. Edit

Picture of ramkumar by ramkumar - 9 years ago (2015-01-10)

I need this folder and file quota allocation

This request is clear and relevant.
This request is not clear or is not relevant.

+1

I need folder and file quota allocation for each user 10mb allowed, as well how to restrict in MySQL file content size.

  • 1 Clarification request
  • 1. Picture of Manuel Lemos 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. Picture of Karl Holz 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. Picture of Manuel Lemos 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.

Ask clarification

Recommend package
: 
: