how to offer subdomain hosting with bandwidth calculation per user
        Posted  
        
            by Ke
        on Server Fault
        
        See other posts from Server Fault
        
            or by Ke
        
        
        
        Published on 2010-06-09T19:58:03Z
        Indexed on 
            2010/06/09
            20:02 UTC
        
        
        Read the original article
        Hit count: 382
        
Hi,
Im a php developer and I would like to offer subdomain hosting,but need also to be able to calculate bandwidth for each subdomain.
For the subdomains creation I will use catch-all and wildcards etc to easily set these up.
The one thing im a bit stumped on is how to calculate bandwidth for each subdomain, is this possible within php? or are there better solutions for this perhaps using folders or something?
Also a script will be loaded under the subdomain, this will vary per user. Is it worth giving each user a new folder and their own script, or more easy to manage one script for all users? Any considerations here?
Cheers
Ke
© Server Fault or respective owner