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

[cgiapp] broken link from other site, please help


Dear cgi application of perl developer:

  I tried to put photo to other site , but not by hyperlink or upload but
directly broadcast from my site.

  but maybe my perl code have problem, that other can not see it(or maybe my
httpd.conf of apache not configure well)
--------------------my C:\Apache2\cgi-bin\showphoto.pl
#!c:\perl\bin\perl.exe
use strict;
use CGI qw(:standard);

print("Content-type:  Image/jpg\n\n");

local $/ = undef; # file slurp mode
open(INFILE, "<C:\Apache2\computer2G0.jpg");
my $img = <INFILE>;
close(INFILE);
binmode STDOUT;
print $img;
exit;

------------------------
and I have  a link from other side(not in my computer)  as well as my site
----------------
<table border=0 width="200"

class="rightsidebar">

<tr><td><img src="http://www.linuxspice.com/cgi-bin/showphoto.pl";
width="200"

height="150"></td></tr>

</table>

------------------------------------------------------------------------

do you know why it can not work(if it is just problem in cgi code not httpd
of apache's problem)

hope to see some advancer's help, thanks in advance


Sincere Eric
www.linuxspice.com
linux/window 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.