Ok, i came up with something small.
I will be taking it further, and brain storm on doing sql queries within the file, so that it can be used in gallery etc as well.
Main reason for creating this little code was to hide the image url, because i don't want people to even know that such directory exists.
hope you can find other uses for it as well.
Just look at the example.
If you do any mods on it, please repost here.
Thank you
image.php
Usege:
Ok boys, so as i said, it hides the url.
Also when you try and download the file, it will save it as php file which just shows a load of nonsense in the file.
You get where i'm coming from?
Enjoy
I will be taking it further, and brain storm on doing sql queries within the file, so that it can be used in gallery etc as well.
Main reason for creating this little code was to hide the image url, because i don't want people to even know that such directory exists.
hope you can find other uses for it as well.
Just look at the example.
If you do any mods on it, please repost here.
Thank you
image.php
Code:
<?php $image="path/to/quintins/file/image.jpg"; header("Content-type: image/gif"); echo file_get_contents("$image"); ?>
Code:
<img src="image.php" alt="Loading..." />
Also when you try and download the file, it will save it as php file which just shows a load of nonsense in the file.
You get where i'm coming from?
Enjoy
Comment