in reply to Re: Displaying Images
in thread Displaying Images

I use apache 1.3.26 as the web server. After some debugging, i could get the image load onto my browser. But the apache error logs come out with binmode() on closed filehandle PNG at /kbase/anand/search/sw/cgi-bin/cposupport/ ccsearch/test.pl line 22. print() on closed filehandle PNG at /kbase/anand/search/sw/cgi-bin/cposupport/cc search/test.pl line 23. Is this just a warning that i can ignore? Please help i am new to Perl

Replies are listed 'Best First'.
Re: Re: Re: Displaying Images
by steves (Curate) on Feb 10, 2003 at 11:56 UTC

    Did you add error checking to the open call? Sounds like that's failing if uses of PNG are generating errors afterwards. It may be permissions. Remember that your CGI runs as whatever user your Apache httpd.conf has the web server set to (default is nobody).

    But if there are errors like that I'm not seeing how you're getting the image to show unless you created it successfully outside of the web server environment (e.g., running your CGI manually) once along the way.