Results 1 to 6 of 6

Thread: date modified [Resolved]

Threaded View

  1. #1

    Thread Starter
    Frenzied Member ober0330's Avatar
    Join Date
    Dec 2001
    Location
    OH, USA
    Posts
    1,945

    date modified [Resolved]

    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:
    PHP Code:
    $modified stat(); 
    echo 
    " " date("l, F dS",$modified[9]); 
    Where the name of the file you're getting the stats on is the name of the current page you're on.

    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?
    Last edited by ober0330; Apr 7th, 2004 at 09:06 AM.
    format your code!! - [vbcode] [/vbcode]

    ANSWERS CAN BE FOUND HERE!!

    my personal company

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width