in reply to Display an image from cgi
You're not giving the complete URL for the image. You'll have to tell the browser the URL so it can ask for the image from the server in such a way that the server can find it. You probably don't want to give the actual path to the file, since web servers normally use a different directory as a root location.
Suppose your file is at /My/Stuff/www/images/tools/hammer.jpg and your server name is "www.MyTools.com", and it's treating /My/Stuff/www as the document root. Then you'll want to set the URL to "http://www.MyTools.com/images/tools/hammer.jpg".
Note: There may be more subtleties that I'm not aware of, as I don't write code for the WWW .... yet! (My new job is wanting me to do some, so I've been studying a bit.)
...roboticus
When your only tool is a hammer, all problems look like your thumb.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Display an image from cgi
by rshoe (Novice) on Oct 18, 2014 at 22:59 UTC | |
by kennethk (Abbot) on Oct 19, 2014 at 15:29 UTC |