Answers for "php get image"

PHP
0

php response image

<?php
$name = './img/ok.png';
$fp = fopen($name, 'rb');

header("Content-Type: image/png");
header("Content-Length: " . filesize($name));

fpassthru($fp);
Posted by: Guest on May-27-2021
-1

display image in php from folder

<html>
 <head>
 <title>display image</title>
 </head>
 <body>
 <p>Here in your form and text</p>
	<?php
 
	echo "<img src='image-name.png' >"; 

	?>  
 </body>
 </html>
Posted by: Guest on July-07-2020

Browse Popular Code Answers by Language