I am using the <?php include() ?> statement on my website for
organizational purposes. However, one of my includes contains some
PHP code. Is there any way for the server to actually parse the
include? I've tried this before, and it did not parse the include.
Rather, it included the file as just plain ASCII.
<?php include('global/includes/footer.inc') ?>
<p>© 1993-<?php echo date("Y") ?> Kingswood School. All rights
<?php include('global/includes/lastmod.php') ?>
echo "This file was last modified: ";
echo strftime("%A %B %d %Y");
I would like to be able to parse the include if it has php code, and
in some cases, create nesting includes (an include within an
include). Is this even possible? Any ideas?
Any help is certainly appreciated. Thanks!