View Single Post
Old 08-05-2005, 05:57 AM   #1 (permalink)
clenard
The Contributor
 
Join Date: Jun 2005
Posts: 40
Thanks: 0
clenard is on a distinguished road
Default Auto-populating Directories?

Hey guys, girls...

New question! lol

Right now I'm developing a System for a Buddy of mine and I'm trying to figure out how to do something very simple - yet hard to find ANY information regarding the topic...

I'm using Smarty as a Templating System with about 50+ Templates, and basically the System is much like Soundclick.com or the software Jamroom.net... by that - I'm referring to a User system where you could click "add new user" -> go to a Form, fill out information and click Submit -> then they now have their own little "site" by going to: "www.fakedomain .com/0/bobswebsite/"

inside that directory they can have 5-10 pages (auto populated) for their visitors to click on...

the problem is - I'm not sure exactly how to do this? I know I could manually create directories such as "/0/, /1/,etc" but I'm thinking using "mkdir" and "chdir" would be easier in a function... BUT what would I use to Populate the directories according to the template? I was looking at "file_puts_content" - but will this be enough for what I'm looking for?

thanks for any help! I've hit the php mailing list and got a few real cloudy answers - and a few google comments (lol) but other than that - I can't find ANY information regarding what I'm trying to do...

thanks! :cool:
clenard is offline  
Reply With Quote