yy.php should contain
<?php
header("Content-type: image/jpeg"); /* or gif or whatever... you can also take a look at getimagesize() to get the type of the image automatically */
readfile(THE FILE);
?>

it's extremely important that there is no whitespace before the <?php tag and after the ?> tag.

empty wrote:

Hi

Anybody knows how to embed a image file to a php file, not as html;

for example;

<img src="yy.php" />

embedding a image file in yy.php file.

Thanks everybody




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to