Ive searched the forum, found a couple of threads on the matter and tried them and it doesnt work for me and i dunno why.
this is the exact code i have in my script
#!/usr/bin/perl
open (INC, "/web/myurl/test.htm") or die "Can't open: $!";
$include = ("", <INC> );
close INC;
print "Content-type:text/html\n\n";
print $include;
print "<html><head><title>Test Page</title></head>\n";
print "<body>\n";
print "<h2>Hello, world!</h2>\n";
print "</body></html>\n";
The script will print 'Hello, world!' but it wont print the contents of the file test.htm any where.
Anyone give me any advice on fixing this?
this is the exact code i have in my script
#!/usr/bin/perl
open (INC, "/web/myurl/test.htm") or die "Can't open: $!";
$include = ("", <INC> );
close INC;
print "Content-type:text/html\n\n";
print $include;
print "<html><head><title>Test Page</title></head>\n";
print "<body>\n";
print "<h2>Hello, world!</h2>\n";
print "</body></html>\n";
The script will print 'Hello, world!' but it wont print the contents of the file test.htm any where.
Anyone give me any advice on fixing this?