[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cgiapp] broken link from other site, please help


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 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: $!";

The double quotes around that filename with backslashes may be causing you 
problems as well.

Good luck,
William

-- 
 Lead Developer
 Knowmad Services Inc. || Internet Applications & Database Integration
 http://www.knowmad.com
 


---------------------------------------------------------------------
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.