httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Barth \(John\) Jones" <musicbyba...@alltel.net>
Subject Re: [users@httpd] cgi
Date Sat, 05 Jun 2004 11:52:21 GMT
The #!/usr/bin/perl path is just used so it can be run on a Unix system.  My
understanding is that it's optional when running on Windows according to
this site:

http://www.info.lk/techweb/perl/tutor/
NB - almost every Perl book is written for UN*X, which is a problem for
Win32. This leads to scripts like :


#!c:/perl/perl.exe

print "I'm a cool Perl hacker\n";

The 'shebang' line is not necessary under Win32. It will be ignored. You may
add one so your scripts run directly on Unix without modification, but Win32
will ignore it.

Any other suggestions?

Thanks

----- Original Message ----- 
From: "BAO RuiXian" <ruixian.bao@pp.inet.fi>
To: <users@httpd.apache.org>
Sent: Saturday, June 05, 2004 5:08 AM
Subject: Re: [users@httpd] cgi


>
>
> Barth (John) Jones wrote:
>
> > I'm trying to test a cgi script on my Apache2Triad server installed on
> > a WindowsXPPro platform.  My cgi-bin is in my server root, which is
> > c:/apache2triad/, and I have my ScriptAlias set to the following:
>
> [snip]
>
> >
> > Can somebody please explain where I'm going wrong?  I'm pretty
> > sure the testcgi.pl code is ok but here it is just in case (it should
> > throw back a blank page):
> >
> > #!/usr/local/bin/perl
> >
>
>
> Please change to the right path on your PC, not use a wrong path from
Unix.
>
> Best
>
> Bao
>
> >     use CGI ':standard';
> >
> >     print header();
> >     print start_html();
> >
> >     for $i (param()) {
> >         print "<b>", $i, "</b>: ", param($i), "<br>\n";
> >     }
> >
> >     print end_html();
> >
> > Thanks
>
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message