<html>
<head>
<title>Footer.php</title>
</head>
<body>
ccfcgfcfccdx
<?php include 'footer-1.php'; ?>
</body>
</html>
<?php
// outputs e.g. somefile.txt was last modified: December 29 2002 22:16:23.
$filename = 'appliqueApr14.htm';
echo "Footer.php";
if (file_exists($filename)) {
echo "$filename was last modified: " . date ("F d Y H:i:s.", filemtime($filename));
}
?>
<html>
<head>
<title>Footer.php</title>
</head>
<body>ccfcgfcfccdx
<?php// outputs e.g. somefile.txt was last modified: December 29 2002 22:16:23.
$filename = 'appliqueApr14.htm';
echo "Footer.php";if (file_exists($filename))
{ echo "$filename was last modified: " . date ("F d Y H:i:s.", filemtime($filename));}
?>
</body>
</html>
(I can't believe I am asking this question )
After a long break I am rewriting some HTML on my wife's site in Php to make updates easier, improve functionality etc.
I tried to add some inline PHP to refresh my memory (see above).
It wouldn't work'.
The output ccfcgfcccdx was seen but the PHP was ignored.
I checked that the file appliqueApr14.htm'' was in the same directory as the code.
I rewrote the code to have this snippet as an include portion. See 2nd snippet
They are linked together as the 3rd snippet.
The silly thing is that on the site the nav buttons on the left run as PHP with no apparent trouble.
The URL is http://www.petalsandpatches.com/footer.php
I can only assume that I am missing something so basic.
What have I done or not?