I have an image in a directiory, lets say: test.jpg
.
I also have 2 other PHP file in this directory called: new.php
and load.php
Now, what I want to do is, when people visit the website new.php
, they should need to see the test.jpg
image.
However! I would also need that if I place the new.php
into an <img>
tag, it should also display the image correctly.
I have tried to call the image in an img
tag, but it doesn't load correctly, when I insert the new.php
into img
tags.
<img src="test.jpg">
How is that even possible to make a php work as an image - if you know what I mean?