Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Internet & the Web (https://www.askmehelpdesk.com/forumdisplay.php?f=177)
-   -   SSI vs PHP - Which is faster (speed benchmark)? (https://www.askmehelpdesk.com/showthread.php?t=24971)

  • Apr 20, 2006, 01:27 PM
    Roel Zylstra
    SSI vs PHP - Which is faster (speed benchmark)?
    Does SSI or PHP use less resources to include one file within another file?

    For example:
    PHP Code:

    <?php include 'file.html'?>
    or
    HTML Code:

    <!--#include virtual="file.html" -->
  • Apr 21, 2006, 06:21 AM
    LTheobald
    I couldn't find anything in Google and I don't have any experience with benchmarking of the two.

    I can't see any reason why one would be faster than the other though. They are reasonably simple functions and I don't think there is any validation etc. that would slow either down. I think it just comes down to preference.

    PHP includes can be a little more powerful though as you able to state mandatory pages for include using require(). You can also include pages off other domains which you can't do via SSI.

  • All times are GMT -7. The time now is 01:53 PM.