My client wants me to design a website, and then have the ability to send people to the site, whereby they can sign up and instantly get a site exactly like the one they are viewing. The original site would be replicated with the new person's info in specific areas. The new site would have an address like www.domain.com/username, and would be available immediately for the person to start promoting it.
It would be used for marketing a MLM company, and would track what people signed up under who, and give reports as to the "downline" structure.
Hope this helps.
Once they signup (and authorized?) you can create the new dir using mkdir [php.net]
I would store all the replicated code as templates. You can copy the templates over to the newly created dir or reference one set using include [php.net] or require [php.net]. Depending on the amount of data to be stored or resources available the personalized data could be kept in a database or textfile. The template, when loaded, could then access the data and plug it into the page.
As far as all the tracking goes you should be able to track all that on signup and then store it in your preferred method and create a little admin interface to give you reports.