Re: Perl for Windows95
by "Bert Doorn" <bdoorn(at)iinet.net.au>
|
Date: |
Wed, 1 Mar 2000 18:38:19 +0800 |
To: |
"Varghese, S, Samuel, NZJ3M C" <samuel.varghese(at)bt.com> |
Cc: |
<hwg-basics(at)hwg.org> |
References: |
co |
|
todo: View
Thread,
Original
|
|
G'day
I can only give you a partial answer - perhaps someone else has found a way to
access perl scripts on their hard-drive direct from their browser.
I choose to stay away from using Netscape (as it has caused too many problems
with hanging up the PC) but I have the same problem of not being able to test
perl scripts with other browsers..
To my knowledge, it's because browsers can't run programs as such within their
own window. They can run Java Applets but that's another matter alltogether.
Perl is set to run in text mode (be that DOS or Unix or something else). What
you need is some sort of server program (on the same PC, or ideally on a
separate, networked PC).
One I have installed and which does virtually everything a "normal" web server
does, is Omni HTTPd. It does cgi, perl, SSi and more. You should be able to
find it at Tucows or go to http://www.omnicron.ab.ca/. Install that program
(or one like it) and then access the script using an address like
http://localhost/cgi-bin/whatever-your-script.pl
Hope this helps
--
Bert Doorn, Web Developer
http://www.BetterWebDesign.com.au
----- Original Message -----
From: "Varghese,S,Samuel,NZJ3M C" <samuel.varghese(at)bt.com>
To: <hwg-basics(at)mail.hwg.org>
Sent: Tuesday, February 29, 2000 8:11 PM
Subject: Perl for Windows95
> This may not be the right list to send this question, but I figured some of
> you may be able to help me out with this.
>
> I have just started learning Perl and thought it would be wiser to test my
> knowledge on my local machine (Windows95) before loading it on a web-server.
> To that effect, I downloaded and installed Perl for Win32 from
> activestate.com and also installed DCOM as per the installation instructions
> for Windows95. I have also associated the .pl extension to perl program.
> Now when I run simple perl programs from the DOS-prompt, they work fine. But
> I can't get them to work through my browser (Netscape 4.7) - I have included
> the 'Content-type: text/html\n\n' line but it still executes the program via
> DOS.
>
> Is there some setting I need to change on my browser so that the .pl files
> are executed by the browser itself? By the way, I faced the same problem on
> IE4 as well.
>
> TIA,
> Samuel
>
HTML: hwg-basics mailing list archives,
maintained by Webmasters @ IWA