Mobile app version of vmapp.org
Login or Join
Pope3001725

: PHP website template and response time I have a website with static HTML files on a VPS server. The site's response time is very fast and was built with a FrontPage template, so every template

@Pope3001725

Posted in: #Php #Template

I have a website with static HTML files on a VPS server.

The site's response time is very fast and was built with a FrontPage template, so every template change updates all the HTML files and requires uploading all the pages to the server.

I am considering using a PHP template (with PHP includes).

Will using a PHP template slow down the page's response time and if so, by how much?

10.03% popularity Vote Up Vote Down


Login to follow query

More posts by @Pope3001725

3 Comments

Sorted by latest first Latest Oldest Best

 

@BetL925

Yes, using PHP would slow down the response time, but most of the time you will not realize the difference.

Maybe you should try a CMS and have fun with it. I don't know how long you would take to learn PHP, but if you are new, using a CMS is a good starting point to understand what is PHP, or generally, the web all about.

The web is not only about how fast your website is, but also how many features your website has.

10% popularity Vote Up Vote Down


 

@Shelley277

Theoretically something purely static is going to be faster than dynamically generated content. In practice the difference is very often negligible.

You have to consider that most servers cache the output of PHP scripts you can even specify for how long by file-type or per-file even. This means that in most cases, for PHP that generates largely the same output over-and-over, the server serves static content because it serves it from the cache.

Now there are times when things can be noticeably slower but I'd say those are rare for a site that can be statically generated. In other words, if you can have the same site in static HTML and generated by PHP (or anything else), you probably do not have a case where a difference is visible to your visitors. Consider that the dominant latency comes from the network and not serving the pages for anything which is not so resource intensive.

10% popularity Vote Up Vote Down


 

@Sarah324

PHP integration with web hosts is generally very efficient. Provided you have caching set up correctly, it should not be a problem.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme