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?