Hi All,
I need to write a script that will automatically create a sub domain / directory and copy a set of files into the new directory.
Example: New customer joins, we go to an admin section of the site and "setup a new site". I need to be able to enter a username, have the script create a sub domain using this username. Then I need to either A) have the script unzip a set of files into the new directory or 😎 simply copy a set of files into the new directory.
If we can't do a sub domain, I believe a standard directory will be ok but I'd prefer www.username.domain.com vs. www.domain.com/username.
Is this possible? Any thoughts? I'm all for researching, learning and doing things on my own so if someone has the code, great if not... a pointer in the right direction would be terrific.
Thanks much!
Jim