William McKee wrote:
Hi Eric,print("Content-type: Image/jpg\n\n");Are you sure that's the correct content-type? I've seen jpg written out as jpeg which may be how your Apache's MIME types are setup.Also have you tried to view the source of the page that gets sent? That may be interesting to see what's being sent. Another thing to check are your server's error logs. You could add some error checking to your code to help. Instead ofopen(INFILE, "<C:\Apache2\computer2G0.jpg");use the following: my $file = 'c:\Apache2\computer2G0.jpg'; open(INFILE, "<$file") or die "Unable to open $file: $!";
I tried , it show some compile error in my perl /usr/bin/perl /usr/lib/cgi-bin/showphoto.plGlobal symbol "$file" requires explicit package name at /usr/lib/cgi-bin/showpho
to.pl line 8.Execution of /usr/lib/cgi-bin/showphoto.pl aborted due to compilation errors.
The double quotes around that filename with backslashes may be causing you problems as well.Good luck, William
-- Sincere Eric www.linuxspice.com linux pc for sale --------------------------------------------------------------------- Web Archive: http://www.mail-archive.com/suppressed/ To unsubscribe, e-mail: suppressed For additional commands, e-mail: suppressed
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.