Jump to content

On my website I have a photography page. I use this program that automatically tiles out all my photos that I put into the folder with my index.php

I have a footer

<!-- DATE LAST MODIFIED-->
<br><?php
// outputs e.g. 'Last modified: March 04 1998 20:43:59.'
echo "This page last modified: " . date ("Y F d @H:i", getlastmod());
?><br><br>

It uses php to figure out the last modified date of the page.

How to I make it so that when I add photos to that folder where the tiling program gets them it changes the last modified date?

 

I am fine with having a custom footer on my photography instead of using php include with my standard footer.

The code above shows my standard included footer.

 

http://98seaturtles.net/photography/

cTurtle98 - Desktop

Spoiler

CPU: i7 7700k

COOLER: Thermaltake - Water 3.0 Extreme S
MOBO: Asrock z270 killer sli/ac

RAM: G.Skill Trident Z 32 GB (4 x 8 GB) DDR4-3200

SSD 1: Intel - 600p Series 1TB M.2-2280 (Windows)

SSD 2: Samsung 970 Evo 1 TB M.2-2280 NVME (POP_OS)

GPU: MSI - GTX 1070

PSU: EVGA - SuperNOVA G2 550W 80+ Gold Fully-Modular

CASE: Thermaltake - Versa H26

cTurtle98 - Portable PC

Spoiler

CPU: R5 1600

COOLER: NH-L9a-AM4

MOBO: ASRock - AB350 Gaming-ITX/ac

RAM: 16GB (2 x 8GB) Corsair - Vengeance LPX DDR4-3200

SSD 1: Intel - 600p Series 512 GB M.2-2280 (Windows)

SSD 2: 860 Evo 1 TB 2.5" (Manjaro)

SSD 3: PNY - CS1311 120 GB 2.5" (POP_OS)

GPU: Gigabyte GeForce GTX 1650 4 GB MINI ITX OC

PSU: HDPLEX 400 AC-DC DC-ATX Combo

CASE: NFC Skyreach 4 mini

 

Link to comment
https://linustechtips.com/topic/698755-php5-getlastmod/
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×