RE: [PHP] Sourcing Image file to <IMG> tag

From: Date: Tue, 10 Oct 2000 05:32:25 +0000
Subject: RE: [PHP] Sourcing Image file to <IMG> tag
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-19293@lists.php.net to get a copy of this message
Mark Olbert writes: > Additional info: > > When I examine the properties of the busted image (i.e., the <img> tag that > should be displaying somethting), it shows as: > > http://my.domain.com/displayimage.php etc > > This sure looks wrong, as I put all of my php scripts outside of the html > document tree. > > Does this problem ring a bell with anyone? > > - Mark Well, displayimage.php is gonna have to be in the document tree; otherwise, the httpd won't be able to get at it from the img tag. However, you probably don't need the http://my.domain.com at the beginning, as long as the displayimage.php script is properly located. Perhaps you edited the HTML source with something which rewrote the tags for you? I've seen some 'clever' software which thinks that this is a cool thing to do. Another possibility: *always* quote your tag attributes, even if they don't need it. Some editors don't do this, and even though it's not strictly necessary in all cases, it's a habit which removes one more potential problem. Have you installed a new server but changed the compilation options? Can we see the actual tag & the shortest possible script which reproduce the problem? -- +----------------------------------------------------------------+ |Torben Wilson <torben@php.net> Netmill iTech| |http://www.coastnet.com/~torben http://www.netmill.fi| |Ph: 1 250 383-9735 torben@netmill.fi| +----------------------------------------------------------------+

« previous php.general (#19293) next »