I'm making a classified website that allows users to insert an image. The image data is sent thorugh the form to the page verify.php. Is it possible to display the image on verify.php? I've tried looking online but I only found answers from people inserting the image to mysql first and then displaying it.
Here is my code for the page where I want the image to be displayed.
$name = $_FILES["image"]["name"];
$type = $_FILES["image"]['type'];
$size = $_FILES["image"]["size"];
$temp = file_get_contents($_FILES["image"]["tmp_name"]);
$error = $_FILES['image']["error"];
echo "<img src='$temp'>"; //this displays the
//binary code(I beleive that's what it s called)