Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialBrent Stammen
Courses Plus Student 110 PointsPHP to Static HTML
i need to convert a PHP site to Static HTML any suggestions?
1 Answer
Jason Anello
Courses Plus Student 94,610 PointsHi Brent,
A static site generator might be what you are looking for.
You'll still have the benefits that come with server side programming like being able to include common code, using templates, etc., but it will output static html files.
You'll have two sets of files for your site. The source files and the output files. The source files are the ones you would edit when you are updating the site. The site generator then takes your source files and generates your site. The output files from this are what you would upload to your server.
I can't recommend a particular site generator to use as I've only done some initial research on it. There are dozens, if not hundreds, of these site generators written in various languages.
Brent Stammen
Courses Plus Student 110 PointsThanks for the feedback!!!
Leonardo Hernandez
13,798 PointsLeonardo Hernandez
13,798 PointsYour output will always be what it needs to be. Scripted or not. Think about maintenance when you build your scripts and websites. My .02