William McKee wrote:
I tried , it show some compile error in my perlHi 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 of
open(INFILE, "<C:\Apache2\computer2G0.jpg");use the following: my $file = 'c:\Apache2\computer2G0.jpg'; open(INFILE, "<$file") or die "Unable to open $file: $!";
/usr/bin/perl /usr/lib/cgi-bin/showphoto.pl
Global 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/[email protected]/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
