I made the script do this
Lets pretend I name the sub food, so i put food in the field of the form and press submit and then the script does the following
Make a directory in /home/ called food,
then makes a folder in /home/food/ called public_html and chmods both of those folders to 777, and then in the directory
/home/food/public_html/ it creates a file called index.html that says The Subdomain food has been successfully created.
I have a live demo for you if you want.
Regards
Drk
|