Mr_J Posted August 26, 2008 Share Posted August 26, 2008 Hi all, So I have a book, PHP IN 10 MINUTES by SAMS TEACH YOURSELF. I only got to lesson2... I'm busy with yet another web page. It is HTML, CSS, JavaScript all mixed. Now, all I want to do is use PHP to display the YEAR only at the footer of the page so that I do not have to Update the page. Can it be done? HOW? I run Apache Server Local as well as IIS7 and I have a SQL Server(not started) available. This is what I tried with no success: <div id="footer"> <p>© <?php echo date('Y'); ?><img src="images/jaco.jpg" alt="J Joubert" > SA Micro Produkte </p> </div> Link: http://medbel.co.za/mcc/ Link to comment https://forums.phpfreaks.com/topic/121372-is-this-possible/ Share on other sites More sharing options...
Vivid Lust Posted August 26, 2008 Share Posted August 26, 2008 If you are using php, the file needs the extension: .php Change the extension of your index.html file to index.php and it will work! Link to comment https://forums.phpfreaks.com/topic/121372-is-this-possible/#findComment-625794 Share on other sites More sharing options...
Mr_J Posted August 26, 2008 Author Share Posted August 26, 2008 Thank you very much Link to comment https://forums.phpfreaks.com/topic/121372-is-this-possible/#findComment-625796 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.