[Xitami] simple cgi question
Dennis G. Wicks
xitami@lists.xitami.org
Fri, 2 Nov 2001 07:53:09 -0800
Greetings;
Actually, the problem is the first line. You need the path
of perl. Probably something like #!C:\Perl\bin\perl or
you can just make it #!perl if the perl\bin directory is in
your path.
Good Luck!
Dennis
>}On Nov 2, 1:54, "goldtech@worldpost.com" wrote:
>} Subject: [Xitami] simple cgi question
>Using xitami vanilla on win2k pro. "workstation". (IE5)
>Trying to learn perl, cgi w/Xitami...on my local pc,
>sorry if problem is very simple.
>
>I can not get cgi script to execute.
>
>Here's the script:
>
>#!C:\Perl\bin
>
>print "Content-type: text/html\n\n";
>print "Hello World";
>#end script
>
>The shebang line is the path to my perl bin folder.
>The script runs ok in a dos box.
>The script name is: hello.pl and is in C:\Xitami\cgi-bin
>If I point the browser to http://127.0.0.1/cgi-bin/testcgi
>it works and shows env. variables.
>
>But:
>If I point browser to: http://127.0.0.1/cgi-bin/hello
>then I get a default IE5 page saying there was a problem
>opening this pg.
>
>Any help appreciated to get me started. Thanks, Lee
>
>
>
>
>--
>Xitami Users Mailing List -- For Xitami support
>To unsubscribe: http://lists.xitami.org/mailman/listinfo/xitami
>}-- End of excerpt from "goldtech@worldpost.com"