in reply to CGI display a gif

What's the URL of the image? Relative URL "cgi-bin/images/1.gif" applied to base URL "http://localhost/cgi-bin/image.cgi" is "http://localhost/cgi-bin/cgi-bin/images/1.gif". I think you have an extra "cgi-bin/" in there. Fix: print "<IMG SRC='images/1.gif'>";

Also, how are you refering to the script? That script won't work from an <img> since it returns HTML, not an image.

Replies are listed 'Best First'.
Re^2: CGI display a gif
by indie_campbell (Novice) on Jun 06, 2005 at 15:57 UTC
    not sure if i understand ur second suggestion; wont form an <img> tag?
      The word "work" was missing. (I've just added it.) If you do <img src="http://localhost/cgi-bin/image.cgi">, you'll get a broken image since image.cgi returns HTML, yet your brower is expecting an image.
Re^2: CGI display a gif
by indie_campbell (Novice) on Jun 06, 2005 at 15:55 UTC
    the properties gives the location http://localhost/cgi-bin/1.gif
      Then it's just
      print "<IMG SRC='1.gif'>";