image processing - A php file as img src -


i want print image using img tag src php file, script process action @ server scirpt. have example code?

here test code no effect

img.html

<img src="visitimg.php" /> 

visitimg.php

<?  header('content-type: image/jpeg');  echo "<img src=\"btn_search_eng.jpg\" />";  ?> 

use readfile:

<?php header('content-type: image/jpeg'); readfile('btn_search_eng.jpg'); ?> 

Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -