Re: Return Image for PHP Link

From: Date: Tue, 27 Feb 2001 19:19:16 +0000
Subject: Re: Return Image for PHP Link
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-41863@lists.php.net to get a copy of this message
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: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net -- 209 Media <http://www.209media.com> Ron Wills <ron@209media.com> Programmer

« previous php.general (#41863) next »