fastcgi/apache/perl image file displaying issue
Joe <[email protected]> Wed, 22 Sep 2010 15:09:58 -0500
| Newsgroups | gmane.comp.web.fastcgi.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi, all, new to fastcgi and have a lot of question to ask. I tried to search
on web but out of luck so far.
I write a fcgi Perl script as below:
#!c:/perl/bin/perl.exe
use strict;
use FCGI;
while (FCGI::accept >= 0) {
print "Content-type: text/html\r\n\r\n";
print "<head>\n<title>FastCGI Demo Page (perl)</title>\n</head>\n";
print "<h1>FastCGI Demo Page (perl)</h1>\n";
print "This is coming from a FastCGI server.\n<BR>\n";
print '<img src="hello.jpg" border="0">';
print "\n";
}
It does not display the image for me. If I remove FCGI loop and only run
this script as normal cgi script, I can see the image. Where did I go wrong
here? or am I missing some thing in server configuration. Many thanks to you
all!
_______________________________________________
FastCGI-developers mailing list
FastCGI-developers-xGejAJT2w6xVgU18Zptdi0EOCMrvLtNR@public.gmane.org
http://mailman.pins.net/mailman/listinfo.cgi/fastcgi-developers