I'm trying to put the date a file was modified on each page that I have but I want to put that in an included file (footer.php) and I'm using the following code:
Where the name of the file you're getting the stats on is the name of the current page you're on.PHP Code:$modified = stat();
echo " " . date("l, F dS",$modified[9]);
The problem is, all server variables that are available also contain the path to that file. How do I remove the folder/path name from the $_SERVER['SCRIPT_NAME'] call?
Or is there a better way to do this?




Reply With Quote