How to include Perl into shtml files
Posted
by Bilzac
on Stack Overflow
See other posts from Stack Overflow
or by Bilzac
Published on 2010-06-03T19:34:03Z
Indexed on
2010/06/03
19:44 UTC
Read the original article
Hit count: 544
Hi I am trying to include a perl script within my shtml file. Unfortunately when I do my script doesnt seem to run but instead it just displays the content of the script.
The code I am using is as follows:
test.shtml:
<html>
<title> business home page </title>
<body>
</br>
<!--#echo var="DATE_LOCAL" -->
<br />
<!--#include virtual="hello.pl"-->
</body>
</html>
hello.pl:
#!C:/Sun/WebServer6.1/bin/https/perl/perl
print "Content-type:text/html\n\n";
print "Hello World!";
I am not sure what I am doing wrong. Incase you all wanted to know the server I am using is Sun One WebServer 6.1 (OS = Windows XP). Thanks for your responses!
© Stack Overflow or respective owner