Hi,
I have a little control panel for members of my site that allows them to control the content on their profile page. At the moment, visiting a profile page grabs all of the info from the DB and displays it.
I am introducing a new feature that lets them expand on that an create their own site. A very basic site, maybe 5 sections. At the moment, I'm thinking of going about it in 2 ways.
Option 1. When the user has added all the info, selected the style / theme they want they would click publish. Clicking publish would render the website to HTML pages and folders for the images. This would then be FTP'd to the users server (provided by me, or one of their own).
Option 2. Hosting of the site would have to be done by me on my VPS, the users website would be a set of templates and it would grab the fresh data every time (as opposed to being pre-rendered and stored as files).
Option 1
Pros:
I don't have to look after the hosting / email etc.
They don't have to move hosts / domain names to my VPS.
Less of a server load on my VPS
Cons:
How easy is it to FTP via PHP...
I have to store their FTP details
Option 2 Pros / Cons opposite of above.
Your thoughts....
Render > FTP a complete web site
Moderator: General Moderators
Fairly easy: http://us2.php.net/ftpHow easy is it to FTP via PHP...