Re: Need help with CGI/ DBI error (permissions?)
From: patrickg (pat_at_patmail.com)
Date: 02/22/05
- Next message: Rodolfo Hinojosa~: "Win32:OLE How to size or resize Excel comment textfield?"
- Previous message: A. Sinan Unur: "Re: Need help with CGI/ DBI error (permissions?)"
- In reply to: A. Sinan Unur: "Re: Need help with CGI/ DBI error (permissions?)"
- Next in thread: A. Sinan Unur: "Re: Need help with CGI/ DBI error (permissions?)"
- Reply: A. Sinan Unur: "Re: Need help with CGI/ DBI error (permissions?)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 22 Feb 2005 16:39:03 GMT
"A. Sinan Unur" <1usa@llenroc.ude.invalid> wrote in message
news:Xns960570AA8443Casu1cornelledu@132.236.56.8...
> "patrickg" <pat@patmail.com> wrote in
> news:ybISd.105725$JF2.95728@tornado.tampabay.rr.com:
>
> >
> > "A. Sinan Unur" <1usa@llenroc.ude.invalid> wrote in message
> > news:Xns9605641F057B9asu1cornelledu@127.0.0.1...
>
> ...
>
> >> Well, I don't know about IIS but it sure makes a difference when
> >> running Apache. This should tell you that you no longer have a Perl
> >> issue but a web server configuration issue. I'd advise you to find an
> >> appropriate forum.
>
> ...
>
> > When you say it makes a difference when running Apache, are you
> > referring to Apache on Windows or Apache on *nix??
>
> Windows.
>
> > Reason I'm asking is because even when I run the script from a command
> > line (therefor not using any webserver at all), it still doesn't make
> > a difference as to my results. So maybe the difference is regarding
> > the OS, not the webserver. (?)
>
> No.
>
> There are three ways to invoke a Perl script on the command line in
> Windows:
>
> 1. perl myscript
>
> In this case, the first perl executable in the PATH is used. The
> interpreter you specify in the shebang line is irrelevant. However, the
> options you specified in the shebang line will be respected by the
> interpreter.
>
> 2. start myscript.pl
>
> Assuming the .pl extension is associated with a perl interpreter, that
> interpreter will be invoked to run the script. Again, the interpreter
> specified on the shebang line will be irrelevant.
>
> 3. Put .pl or whatever extension you use for Perl scripts in the PATHEXT
> (Win2k and higher) environment variable. In this case, you can run
> myscript.pl simply by entering
>
> myscript
>
> on the command line. Once again, assuming the file extension is
> associated with a perl interpreter, the interpreter specified on the
> shebang line becomes irrelevant.
>
> Apache, however, uses the shebang line to determine the interpreter to be
> used to run the script in the absence of any directives telling it
> otherwise.
>
> I am trying very, very hard to stay away from a discussion of how *your*
> web server should be configured. You should find an appropriate forum.
>
> Sinan.
Yes, I have read the docs on how to run perl scripts - I prefer the first
method (with the -w flag).
My other Perl CGI scripts that don't use DBI run OK, so I'm guessing that my
IIS server can't be too far off.
And I'm sure that there are plenty of people using CGI and DBI via IIS, so
if they had to do something *special* to get things to work, or know of any
*gotchas*, perhaps they can help. My point is that my webserver isn't
configured in any way special, so whatever works for others (using IIS)
should work on my server. Using Perl's CGI module doesn't require the use of
Apache, does it?
If it's a webserver configuration issue, then I guess I *am* seeking a
discussion on how to configure IIS to work with Perl's CGI and DBI modules.
If perl.misc isn't the correct forum (assuming misc is for miscellaneous),
then I'm not sure which forum would be more appropriate. You can probably
imagine the response if I went to some IIS forum and mentioned that my Perl
scripts aren't working correctly!
Thanks for your help!
patrick
- Next message: Rodolfo Hinojosa~: "Win32:OLE How to size or resize Excel comment textfield?"
- Previous message: A. Sinan Unur: "Re: Need help with CGI/ DBI error (permissions?)"
- In reply to: A. Sinan Unur: "Re: Need help with CGI/ DBI error (permissions?)"
- Next in thread: A. Sinan Unur: "Re: Need help with CGI/ DBI error (permissions?)"
- Reply: A. Sinan Unur: "Re: Need help with CGI/ DBI error (permissions?)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|