in reply to Image problem with CGI [ (8)Exec format error ]

the src parameter should be a URL reference to the image, which of course can be a file system reference but you've given a bare filename.
__________________________________________________________________________________

^M Free your mind!

  • Comment on Re: Image problem with CGI [ (8)Exec format error ]

Replies are listed 'Best First'.
Re^2: Image problem with CGI [ (8)Exec format error ]
by j1n3l0 (Friar) on Jun 05, 2007 at 16:00 UTC

    Thanks folks.

    Trouble was I did not really understand Apache's document structure. I do now :)

    I moved the file to a temp directory and accessed it from there. Now it looks (and works) like this:

    #!/usr/bin/perl -wT use strict; use CGI; my $cgi = new CGI; print $cgi->header(); print $cgi->start_html(qq(Image practice)); print $cgi->img({-SRC=> '/temp/nelo/gnuplot2.gif', -ALIGN=> 'left'}); print $cgi->end_html();