I'm running several sites with much the same content and I want to run this script to place common things in each site according to the URL of the website, I was getting the Win32 error cant execute.
It seemed not to like the './'cgi-bin/blah blah in the path.
But now its seems to find the script but doesn't do anything with it - no output.
I have enabled the SSICmd bit in the registry which MS suggest and set permissions on the site to execute scripts.
I have spent hours going over Microsoft Links and others that I found - You sorta get to the stage where it all glazes over - Dohhhhh.
perl scripts execute on IIS, when called directly but not when called from the html, shich has a .shtml suffix.
If I do the include command, it does put all the script code in the html output
I have set the folders in the server to enable script execution.. I can't think of much else to do
Active Perl 5.8 - Win2K Server SP4+, IIS5+
-----------------------shtml file----------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<p>Perl call - test page.</p>
<p>now<br>
<!--#exec cgi="cgi-bin/testtags.pl"-->
<p>after
<p> </p>
</body>
</html>
--------------------Perl script-------------
#!/usr/bin/perl
#
#
$siteurl = "$ENV{'HTTP_HOST'}";
print "Hello World! $siteurl";
print "<br>";
Pretty simple - yet????????????
And it all works on a commercial linux webserver - why not IIS?
Any thoughts appreciated.
Regards
Jerry
