ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> perl-win32-web
perl-win32-web
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">&nbsp;</P><P style="MARGIN: 0px">I have a local web s
erver set up on&nbsp;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">&nbsp;</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">&nbsp;</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-&gt;header();</EM></P><P>........</P><FONT size=2><P><EM>print "&lt;center&gt;
&lt;img src = 'hrabargraph2.gif'&gt;&lt;/img&gt;&lt;/center&gt;&lt;p&gt;&lt;p&gt;&lt;p&gt;&l
t;p&gt;"; </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>&nbsp;</P><P>thanks</P><P>dh
ivya</P> <P><EM></EM>&nbsp;</P></FONT></FONT></FONT></FONT>
Thread:
Dhivya Arasappan/O/VCU
Bill Luebkert
Mark Pryor

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved