When I click on a link to an jpg image, the browser will usually open a new tab, and diplay it on a white background.
I want to use a generated php page, that will diplay the image, so I could use css on it.
I could put every image on a single php site, and simply link to that, but I want it to happen automatically, once any image link is clicked.
<a href="http://www.website.com/images/image.jpg">Link</a>
How do I do that?
Change the links to
<a href="http://example.com/showimage.php?image=images/image.jpg">Link</a>or similar, create a showimage.php page that has the formatting you want and use$_GET[ 'image' ]to get the requested image’s url.