I am using Apache 2.2.4 in Windows. I have a simple cgi script where I am just printing one line and trying to display a image. I tried a lot but my image us not getting displayed. I don't see any error in error.log file too. Please help me. Below is my code:
#!C:\perl\bin\perl.exe use strict; use CGI; use CGI qw(:standard); use CGI::Carp qw(warningsToBrowser fatalsToBrowser); my $query = new CGI; print $query->header( "text/html" ); print <<END_HERE; <html> <body> <h3>How is the car</h3> <img src="C:\\Program Files\\Apache Software Foundation\\Apache2.2\\cg +i-bin\\images\\car.bmp"></img> </body> </html> END_HERE; #scripts ends
When I try the same as .html files the image gets loaded properly. Am I missing some settings. Please help me.
Thanks, sir_comIn reply to image not getting displayed by sir_com
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |