I think you want to :
- deny access to the image/ directory
- put this script outside the image/ directory
CODE --> show.php
<?php header("Content-type: image/jpeg"); readfile("image/$_GET[image].jpg"); ?>
- access "/image/baby.jpg" with http://example/show.php?image=baby
No comments:
Post a Comment