Hi, Recently I started to build a website from scratch using HTML. The website will have a lot of pages and it will be updated every once a while (not frequently but like once a week). As I built more pages I soon realized that it will require too much work to make changes site-wide, because for example to change a text or link in the footer, I will have to change it on all the pages one by one. Then I noticed how easy it was in WordPress, which uses PHP, and editing such site-wide things or page templates were very easy. So, my question is, is there a way to do editing multiple pages easily in HTML (or maybe some code I don't know), or will I have to forget HTML and start with PHP? Thank you for any ideas. Nail
I am also looking for the same! one of my site has more than 100,000 HTML pages which I created without hassle but when need to update thats big problem.. I asked some php developers, they said.. can keep that HTML pages and can use php too, no need to do from scratch. but still I didn't get any good how to for it though.. btw my site is CMS photo gallery.. hope someone answers for your question and I am also watching this thread.. thank you..
For a large website, I would recommend PHP if you know how to use it properly. For you, if you use php, you can make certain sections that load off of a php file for all you your pages.
Now, you can implement parts of php into html. That is your best bet for making a fast loading site with minimal space used.
You can easily use PHP include functions to create a mini CMS by dividing your work into header, footer and nav all within HTML files. Alleycode HTML editor has a good tutorial that will take you through this steps by step. Alleycode is a free download at http://www.alleycode.com
Its simple! 1) Make a php document which will contain the HTML code for your links. Save it as "navigtion.php" or whatever! 2) In your HTML, you will insert a one line php function that will call your "navigation.php" file into play. You wont need the navigation bar HTML code in your HTML document. Just in the php one. 3) When you want to update links or add links, you ONLY need to update your "navigation.php" file I actually made a video tutorial on this a while ago, here ya go man, I knew it would come in handy! http://www.youtube.com/watch?v=v8PUIVn3NFE
Thank you very much for all your answers. Now I got my answer, and I will go the PHP way. It really makes sense to have certain parts of my site like header, navigation, footer etc. on separate files so that I can update them whenever I want. Thanks for the Alleycode mention GoNetix and thank you cluongo18 for the tutorial.
According to me PHP is better than HTML. Generally PHP is used for large websites which contain number of web pages.
In terms of content management, I'd always use wordpress over spending more time coding my own script, its pretty damn versatile nowadays.
You could try something like X-site pro - I used to use it but now everything I have is pretty much Wordpress based.
Any site larger that 10 pages its well worth using PHP even if it simple includes for nav, header, footer. Obviously very large sites then PHP and SQL database.
PHP adds new life to website, HTML websites are good for static or fixed content related pages but if you have website with dynamic content so PHP is great option to use with