Okay, I’m running an Apache HTTP Server, with PHP5, and mySQL running on it. Now, if I were to place a file on my server, which will be updated frequently (its a *.PDF, if that matters), can I use any PHP tags (or anything, really) to show the Date the file was last modified next to a link for the file? The only thing I could think of (but I still have incompleat knowledge of PHP), would be to make a File Upload Form (like in [font=Arial][size=2][font=Verdana][size=1][color=#666666][size=2][color=black]Lukus’s Tutorial) which would store the time/date of when the file is uploaded into mySQL (Which I can do easily), the problem is this - I’m only ever going to have the updated file while I’m on the same computer that the server is running, so Its easier (for me) to simply save the file to the Server’s Directory, or Drag it there. I just don’t see the need to waste time/effort into making a mySQL Table which will only hold one value, and then make a PHP script to do all that stuff…
I’m hoping for an easier way…
[/color][/size][/color][/size][/font][/size][/font]
I recently created a page that list’s all my file in a folder. When you click on a fileit takes you to a details page which tells you some info about the file.
Assuming $file is passing a value to your detials page you can use something like this
echo "Last Modified: ".date"("j F Y H:i", filemtime($file))."
filemtime gives you the last time it was modified, and flieatime will give you when the file was last accessed
Thanks! I got it working! take a look: http://seifertim.no-ip.com
(where it talks about “newest version of design doc”) :beam:
:thumb: