displaying pictures using Perl CGI, apache and Windows
by Dhivya Arasappan/O/VCU other posts by this author
May 21 2007 2:12PM messages near this date
view in the new Beta List Site
Re: sort ip address
|
Re: displaying pictures using Perl CGI, apache and Windows
<FONT face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size=2> <P style="MARGIN:
0px"> Hi all,</P><P style="MARGIN: 0px"> </P><P style="MARGIN: 0px">I have a local web s
erver set up on a windows machine with Apache. I'm using Perl cgi script to create a we
b interface. Everything is working well, except that images are not getting displayed on the
website. The images along with the perl code are in the cgi-bin directory of apache- I dont
know why there's a problem only with the images.</P> <P style="MARGIN: 0px"> </P><P sty
le="MARGIN: 0px"> Here's the set of header lines, followed by the line of code that displays
the image:</P> <P style="MARGIN: 0px"> </P><FONT size=2><P><EM>use CGI qw(:standard);</E
M> </P><P><EM>use CGI;</EM></P><P><EM>use Shell qw(echo wget);</EM></P><P><EM>use CGI::Carp q
w( fatalsToBrowser carpout);</EM> </P><FONT size=2><P><EM>my $query = new CGI;</EM></P><P><EM
> print $query->header();</EM></P><P>........</P><FONT size=2><P><EM>print "<center>
<img src = 'hrabargraph2.gif'></img></center><p><p><p>&l
t;p>"; </EM> </P><P>The hrabargraph.gif is already in cgi-bin folder. Usually with Linux,
such things happen because of permissions. What could be the reason in Windows? Is it the pe
rl code or could it be some kind of apache configuration?</P> <P> </P><P>thanks</P><P>dh
ivya</P> <P><EM></EM> </P></FONT></FONT></FONT></FONT>
Thread:
Dhivya Arasappan/O/VCU
Bill Luebkert
Mark Pryor
|