Server-Side Includes vs PHP

Birdhouse supports PHP, which is immeasurably more flexible than SSI (it’s an entire language, not just a directive). There really is little need for SSI anymore. Here’s how to do the equivalent of server-side include in PHP:

<? include "/home/username/public_html/somefile.txt"; ?>

More on include()

Need the date and time inserted in your page at runtime? Try this:

<? $today = date("F j, Y, g:i a"); echo $today; ?>

More on date();

Your pages will need to end with the .php extension to be parsed by the PHP interpreter on the server.

Return to FAQs