peavys
04-22-2005, 04:54 PM
I first wrote static html to place an image which works fine:
<td><img src = "bottom.png"></td>
Then when I converted everything to a cgi program it no longer displays the image. instead it shows the broken link symbol. I have to use C for cgi programming, this is the code:
printf("<td><img src = \"bottom.png\"></td>");
I have tried all sorts of paths w/o luck. The server is apache on latest fedora, using all the default directories (var/www/cgi-bin). I've put the images in that directory and referenced them by full path etc.
I have also found i can't include java scripts, so I don't think this is an image problem, but something I don't understand about my context when using cgi.
What did I miss?
Corky
<td><img src = "bottom.png"></td>
Then when I converted everything to a cgi program it no longer displays the image. instead it shows the broken link symbol. I have to use C for cgi programming, this is the code:
printf("<td><img src = \"bottom.png\"></td>");
I have tried all sorts of paths w/o luck. The server is apache on latest fedora, using all the default directories (var/www/cgi-bin). I've put the images in that directory and referenced them by full path etc.
I have also found i can't include java scripts, so I don't think this is an image problem, but something I don't understand about my context when using cgi.
What did I miss?
Corky