Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Perl (http://www.go4expert.com/forums/perl/)
-   -   image does not display with perl-cgi script (http://www.go4expert.com/forums/image-display-perl-cgi-script-t3724/)

a.kadriu 2Apr2007 22:42

image does not display with perl-cgi script
 
Please Help me with my first script in Perl CGI: I have this cgi-perl code:
Code:

#!C:\Perl\bin\perl.exe
# hello.pl -- my first perl script!
print "Content-type: text/html\n\n";
print <<"EOF";
<HTML>
<HEAD>
<TITLE>Hello, world1!</TITLE>
</HEAD>
<BODY>
<p>
      <img src="http://localhost/icons/a.gif">   
</BODY>
</HTML>
EOF

and it works, but the image does not come up. I tried to change the image' s location, but it didn't work again.

pradeep 3Apr2007 10:18

Re: image does not display with perl-cgi script
 
Did you check whether the image exists in the give path? Copy the src value and paste it in the browser address bar!


All times are GMT +5.5. The time now is 10:09.