Is it possible to load a image using:
<img src="image.php?image_id=1">
?
for image.php:
image.php
$image_id = $_GET['image_id']; echo "image".$image_id.".png";
you must return a valid image, use file_get_contents or readfile for get the conent of image then output to browser
header("Content-Type:image/png"); $image_id = $_GET['image_id']; if(is_file($file = "image".$image_id.".png") || is_file($file = "no_image.png")) readfile($file);
2.1m questions
2.1m answers
60 comments
57.0k users