Re: access website or webpage not work
On Thu, Dec 12, 2002 at 09:52:49PM -0700, eric lin wrote:
> i tried to put a simple perl file in my /usr/lib/cgi-bin/entrance.pl
>
> #!/usr/local/bin/perl
Do you have a /usr/local/bin/perl on your system? Debian only installs
/usr/bin/perl.
Also, always use 'perl -w'.
> use CGI ':standrard';
That should be ':standard'.
> foreach my $name (param()) {
> my @cpu=param($name);
> print "<p>The field with the NAME attribute euual to <b>
> $name</b> had a VALUE equal to <b>@cpu</b></p>\n";
If that's the entire file, you're missing a closing brace.
Have you tried running this script from the command line? What did it
say?
> reboot
Why? That's pointless.
Cheers,
--
Colin Watson [cjwatson@flatline.org.uk]
Reply to: