On Tue, 5 Jun 2001, Luinrandir Hernson <[EMAIL PROTECTED]> wrote,
> Well i'm about to chuck perl out the window
>
> this is the command line from my index.htm file
> <!-- #exec cmd="/home/thx-1138/counter-.cgi" -->
>
> I've made this so darn simple it should work.
> this is the perl program in my cgi-bin:
>
> #!/usr/bin/perl -w
> use strict;
> use diagnostics;
> my $count;
> $count = "12345";
> print "<font color=\"blue\">-(</font><font color=\"green\">$count</font><font
>color=\"blue\">)-</font>";
> exit;
It's ok if you don't want to use CGI.pm for this simple HTML code
but you still can save yourself from escaping by using alternative
quoting,
print qq(<font color="blue">-(</font><font color="green">$count</font><font
color="blue">)-</font>);
> does anyone see why this wouldn't print to my index.htm file cause if i
> can't get this simple code to work, how can i get the whole bloody
> counter program to work.... would someone please just give me the
> freaking answer on how to make this work?!
The script is just fine. But for server side include to work there are
other things you need. For Apache, you need to set "Options Includes"
and set that your file is meant to be parsed as SSI page. And I'm not
really comfortable to explain that in this list.
s.a.n
--
Hasanuddin Tamir: [EMAIL PROTECTED] - Trabas: www.trabas.com