Women in Technology

Hear us Roar



Article:
  Apache Web-Serving with Mac OS X: Part 3
Subject:   php AND ssi?
Date:   2003-04-02 03:37:25
From:   anonymous2
Response to: php AND ssi?

I'm Just starting out with PHP, but it strikes me as logical to use the PHP function include() when wanting to include files.


EG.
<?php include("include_this_file.html"); ?>


(of course the icluded file could also be .php)


Another option is that it appears that you can include .php files into .shtml files, and the PHP gets Parsed correctly.


EG.
<!--#include file="info.php"-->


I've tried it with a sample and works fine, though am unsure of Pro's/Con's within a larger web application.


Hope this helps.