Is there a script or a few lines of code that will limit the disk space of a folder when a user is created.
PHP itself can't handle disk quotas, so you should set it through the operating system.