[PHP] Return Image for PHP Link

2001-02-27 Thread Karl J. Stubsjoen

Hello,

I'd like the source of an image tag to point to PHP code.  I'd like that PHP
code to generate an image (accordingly) and print/output the results back to
the calling image.  So:

img src="myphpcode.php"

Where, myphpcode.php returns a valid image.
I've done this before, but it is not fresh in my brain.

Any help would be appreciated!

Karl


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Return Image for PHP Link

2001-02-27 Thread Ron Wills


I'm not 100% sure this works, but maybe try something like this:
img src="? include 'myphpcode.php'; ?>">
If that doesn't work, you can always have the php generate the entire
tag
?
 $image = "myimagefile.gif"; // What ever you need
 print "img src=\"$image\">";
?>
Hope this helps :-)
"Karl J. Stubsjoen" wrote:
Hello,
I'd like the source of an image tag to point to PHP code. I'd
like that PHP
code to generate an image (accordingly) and print/output the results
back to
the calling image. So:
img src="myphpcode.php">
Where, myphpcode.php returns a valid image.
I've done this before, but it is not fresh in my brain.
Any help would be appreciated!
Karl
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

--
209 Media http://www.209media.com>
Ron Wills [EMAIL PROTECTED]>
Programmer


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]