Page 1 of 1

Render > FTP a complete web site

Posted: Tue Oct 31, 2006 5:36 am
by ed209
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....

Posted: Tue Oct 31, 2006 6:22 am
by Weirdan
How easy is it to FTP via PHP...
Fairly easy: http://us2.php.net/ftp

Posted: Tue Oct 31, 2006 6:31 am
by ed209
so you'd implement the FTP an HTML site over the dynamic site alternative ?

I think blogger.com FTPs blogs to your hosting account if you have one.