View Single Post
Old 05-01-2022, 04:00 PM  
Publisher Bucks
Confirmed User
 
Industry Role:
Join Date: Oct 2018
Location: New Orleans, Louisiana. / Newcastle, England.
Posts: 1,123
Is this possible to do using php?

I have a bunch of web pages that all contain an image on them however, not all of the pages *actually* have an image associated with them so I'm using a generic placeholder.jpg image.

Is there a method I can use to change the name of that image dynamically so depending on what the pages title is, it will rename itself automagically?

For example:

The page catfood.php would display the generic placeholder.jpg but it would be renamed to catfood.jpg?

Anyone know of a simple/easy method of achieving this please?

TIA.
__________________
NOTHING TO SEE HERE
Publisher Bucks is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote