Forum Moderators: coopster
<?php include "somefile.php"; ?> Note that there are many SSI directives, and all of them have PHP alternatives.
virtual() [us2.php.net] and include() [us3.php.net] each have their place.
As you have discovered,
virtual() is similar in functionality to Apache's mod_include (SSI) <!--#include virtual="somescript.cgi" --> functionality. Likewise, PHP's include() is similar to a standard SSI file inclusion <!--#include file="somefile.html" -->. As I noted, all of the Apache mod_include (SSI) functions have a PHP alternative, it just depends on what you need. Good work getting what you needed! ;)
[edited by: StupidScript at 5:12 pm (utc) on Aug. 11, 2006]