[Xitami] Re: ActivePerl & Xitami - CGI problems Continued
Peter van der Goes
xitami@lists.xitami.org
Tue, 24 Sep 2002 08:23:10 -0500
Thanks very much for that information, Paul. Now I know it's not the
manually-created cgi-bin.
As a further confusing factor, I found a CGI script that generates HTML form
objects, asks the user to enter info, then displays the results. This works
fine in my setup:
#!C:\perl\bin\perl.exe
use CGI qw(:standard);
print header;
print start_html('A Simple Example'),
h1('A Simple Example'),
start_form,
"What's your name? ",textfield('name'),
p,
"What's the combination?",
p,
checkbox_group(-name=>'words',
-values=>['eenie','meenie','minie','moe'],
-defaults=>['eenie','minie']),
p,
"What's your favorite color? ",
popup_menu(-name=>'color',
-values=>['red','green','blue','chartreuse']),
p,
submit,
end_form,
hr;
if (param()) {
print
"Your name is ",em(param('name')),
p,
"The keywords are: ",em(join(", ",param('words'))),
p,
"Your favorite color is ",em(param('color')),
hr;
}
print end_html;
As far as not seeing anything out of whack, join the club 8).
As I type this, I'm downloading an alternative browser to try, but am not
optimistic it will make any difference. I'm beginning to think about
networking settings and what, if anything, there might cause the output from
a CGI (or .pl) script) not to appear in the browser. It seems (to my
simplistic way of thinking) that the output cannot find its way back to the
browser when a script is called from a HTML page? As I find no messages in
the cgierr or error logs, I am (at this stage) assuming the script is run.
----- Original Message -----
From: "Paul Reid" <preid@rci.rutgers.edu>
To: "Peter van der Goes" <xitami@lists.xitami.org>
Sent: Monday, September 23, 2002 9:49 AM
Subject: Re: [Xitami] Re: ActivePerl & Xitami - CGI problems Continued
> > I find a bit strange about the Xitami install is that no cgi-bin
> > directory is created by the install. I have to make one myself. Is
> > this normal?
>
> Yes.
>
> Find a very old copy of Xitami, it creates a cgi-bin and drops a
> sample file that prints the environment.
>
> That sample script could be considered a security risk, so they took
> it out of the system. The next time they built the archive, their
> clever tool noticed that the cgi-bin directory was empty, and didn't
> include it in the distribution.
>
> I've looked at the rest of the thread and do not see why it isn't
> working. Since non-Form scripts work, we know Perl is being found.
>
> -PRR
>
>
>
> --
> Xitami Users Mailing List -- For Xitami support
> To unsubscribe: http://lists.xitami.org/mailman/listinfo/xitami
>