how to create a folder in php and limit the upload in that folder -


i want set limit on folder being created user:

according script below:

$root = "/users/homedir/"; if (!is_dir($root)) {     @mkdir("users/homedir/", 0777); 

the folder homedir should contain max 20 mb of storage. if reached, user can not upload folder anymore. how can set 20 mb limit folder when created?

you can't set limit @ time of creation, can check directory size along size of file being uploaded, , limit based on values.


Comments

Popular posts from this blog

html - Styling progress bar with inline style -

java - Oracle Sql developer error: could not install some modules -

How to use autoclose brackets in Jupyter notebook? -