have you ever seen a picture or an image being on a website, and when you see the properties its a php file. with php, you can do these cool tricks.

to do this, just copy and paste this code and save the file as image.php

File image.php
<?php
$img="example.gif";
header ('content-type: image/gif');
readfile($img);
?>


so now lets say you have a webpage and you want the example.gif image to be displayed using this php file, you can.

instead of using this for example:
HTML:
<img src="example.gif">
you can use this instead
HTML:
<img src="image.php" >