Quote:
Originally Posted by mopek1
Thanks for the reply.
Is it not the same to have a .html site with some php code inside it? That way you can change one file where the php code resides and still update an area of the site over 1000s of pages?
|
"HTML" refers to the markup language of the page.
Static HTML pages are flat text files, usually with .html file extension. They require the least amount of server resources. If properly configured, the server can send back an HTTP 304 code for pages which have not been modified, so the browser checks it's own cache of the page before even bothering to download the same file again.
On the other hand, static HTML is incapable of responding in real time to any special considerations such as the browser type/device.
Dynamic HTML pages include all basic HTML markup tags, but they may bring in PHP and JavaScript includes, and/or inline JavaScript code.
These pages offer the greatest versatility in responsiveness and it's up to you as to how much load to add with your server include calls.
One can, and I have in the past, develop content management systems that rebuild entire websites as static HTML, sometimes with just a dash of "includes". This is the best of all worlds because database-related functions are not run in real-time. Pages load fast.
In 2008, I coded a directory, that had over 20 million pages - all static HTML, and rebuilt on the server during off hours. I also cached my Wordpress pages the same way. My visitors/hackers NEVER invoked my MYSQL server.
Wordpress USED to be a wonderful platform for crafting sites to which content could be easily added and there was plenty of style control available though Templates (free or paid) and customizing the PHP modules.
Now, it is too auto dynamic, and what was a tight working blog before you hit the sack, can drop dead while you're sleeping, after an update.
Also, the core structural design of Wordpress is so well known that there are many brute force tools out there constantly pecking away at the built-in vulnerabilities. Just check you regular server logs and see how many hits you get (from Russia without love, and China) on wp-admin and such folder scripts.
I would not recommend using Wordpress for any serious website that expects significant traffic with consistent response time. IF you do go that route, make sure you have page caching to spare your DB server loads, and TEST IT regularly.
