The cgi-script is in:
d:\apache\htdocs\cgi-bin\
and is named:
ps02.pl
the perlscript is accessed by a html file: testfile.html
which is in d:\apache\htdocs\
and is coded:
<html>
<a href="d:\apache\htdocs\cgi-bin\ps02.pl"> test file </a>
</html>
which should run the perlscript in the browser: ps02.pl
#!d:/apache/usr/bin/perl
print "Content-type:text/html\n\n";
print "Hello world!";
the url address at the top reads:
http://localhost/testfile.html before I click on the link
and
http://localhost/d:\apache\htdocs\cgi-bin\ps02.pl
afterwards
( I just tried reversing the slashes / to \ but makes no difference )
Do I simply have the html wrong or something silly like that?
-greg
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of
> Rob
> Sent: Sunday, November 26, 2000 12:11 AM
> To: [EMAIL PROTECTED]
> Subject: Re: getting Perl CGI scripts to work on NT w Apache???
>
>
> $Bill wrote:
>
> snip
>
> > I would go so far as to uninstall and re-install because I'm anal. :)
>
> snip
>
> > The .exe is optional (all of these should work):
> >
> > #!C:/perl/bin/perl.exe
> > #!C:/perl/bin/perl
> > #!/perl/bin/perl # if Perl is on same drive
> > #!perl # if Perl is in your path
>
> I thought he also had '.exe' somewhere in his config file, but on checking
> found that not to be the case.
> One thing Greg hasn't told us is where he's filed his cgi-scripts. If I'm
> right, because the 'AddHandler' has been commented in , it won't
> matter, so
> long as they are stored somewhere within apache and with either a '.pl' or
> '.cgi' extension.
> If I'm wrong then some anal fellow will no doubt be able to provide a
> correction :-)
> (Greg, we also don't know whether you are accessing them
> correctly. ie what
> are you typing in at the address bar, or what is being specified in your
> <form action> html ?)
> Cheers,
> Rob
> Visit our website at http://www.kalinabears.com.au
>
> _______________________________________________
> Perl-Win32-Users mailing list
> [EMAIL PROTECTED]
> http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users
>
_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users