Steven
December 29th, 2007, 15:58
Hello,
I'm trying to display the last updated time of a particular file in my footer.
The way I have designed my pages, is I have one footer.php file that is called by all the other pages.
Now in the footer file, I want to display the update time, with this code:
echo date("m/d/Y", filemtime(“test.php”));
So what I want to do, is instead of calling 'test.php,' I will put a variable that will automatically detect the current page, and display the relevant value.
Any ideas of how I can do this?
Thanks a mil!
I'm trying to display the last updated time of a particular file in my footer.
The way I have designed my pages, is I have one footer.php file that is called by all the other pages.
Now in the footer file, I want to display the update time, with this code:
echo date("m/d/Y", filemtime(“test.php”));
So what I want to do, is instead of calling 'test.php,' I will put a variable that will automatically detect the current page, and display the relevant value.
Any ideas of how I can do this?
Thanks a mil!