[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Perl Problems

ViewEnv.exe is not a perl program - it won't help you with perl. If
you have installed perl and followed the instructions below you should
be about to write a simple perl program (1 line)

print "Content-Type: text/html\r\n\r\nHello World!"

place this file in your cgi-bin directory, call it test.pl.

check that it works by type the following from a command prompt 
box in the cgi-bin directory
	DOS> perl test.pl

you should see 

	Content-Type: text/html

	Hello World!

If you got that far you should be able to access the URL


from your browser and see 

	Hello World!

Note that ViewEnv.exe had a bug that is now fixed in 1.0.2


> I dont know what this means :
> >You need to be online to access your server, because you can't surf 
> your 
> >pages thru the server without being online. (Did that make sense?) You 
> >can browse your site by accessing whatever files you have on your 
> >computer (ie c:\whatever), but the server software will have nothing to 
> >do with that. 
> But however I solved my own problem by installing Netscape Navigator 
> 4.04 and keeping IE4 as the default browser.  I use IE4 to browse the 
> net and Netscape to browse my localhost. (For the net IE4 is better any 
> day!!! This is not the issue here.) I have defined "http://localhost/" 
> as the default page in Netscape preferences.
> My other problem was to make perl work with PI3Web Server. So following 
> these instructions from an another e-mail :
>  >>        1) make sure the path to Perl.exe is in the PATH environment
> >>        variable. A good way to test this is to invoke the bundled
> >>        viewenv.exe program. If you bring up a dos box and type
> >>        'perl c:\cgi-bin\acboard.pl' this emulates what the server 
> does
> >>        (note this is different from 'c:\cgi-bin\acboard.pl' which 
> makes
> >>        windows use the .pl to find the appropriate program).>>
> >>        2) Open the file Conf\Config.pi3 and go down to the section
> >>        ...>>        <Object>>>                Name StandardCGI>>        
> ...
> >>        Theres a bunch of options there to customize exactly how CGI's
> >>        are started. Find the line
> >>                CommandLineByExt .pl="perl %p%q"
> >>        Remove this line, save the file, stop and start the server to 
> cause
> >>        Pi3 to start CGI's with .pl extensions like all others 
> allowing
> >>        windows to figure out how to exec file script using its 
> >>associations,>>        lots of web servers do this.>>
> >>        3) Explicity point to your perl interpreter, same as above but
> >>        change>>                CommandLineByExt .pl="perl %p%q">>        
> to
> >>                CommandLineByExt .pl="c:\\perl\\bin\\perl.exe %p%q"
> >>        Where 'c:\perl\bin\perl.exe' is the full path to your perl 
> >>interpreter>>
> I tried these instructions and ran viewenv from the dos prompt and 
> encountered a GPF with the following message :
> VIEWENV caused an invalid page fault in
> module VIEWENV.EXE at 0137:004015fa.
> Registers:
> EAX=00000000 CS=0137 EIP=004015fa EFLGS=00010246
> EBX=00530000 SS=013f ESP=0063fdcc EBP=0063fdf8
> ECX=00000000 DS=013f ESI=815d2d2c FS=4417
> EDX=00409442 ES=013f EDI=00000000 GS=0000
> Bytes at CS:EIP:
> 8a 0f 8a 04 4a 83 e0 08 85 c0 74 03 47 eb cf 33 
> Stack dump:
> 815b7920 815d2d2c 0063fdf8 00530000 0040167a 00000000 00401123 00000000 
> 00000000 00000000 815b7920 0063fe38 004017e3 00000001 00760310 00760340.
> Still I have not been able to use perl. Can anybody help me?
> Some other details you might be interested in :
> I use 
> Win95 4.00.950 B
> IE4  
> I use Perl 5.03. 
> Nilesh Singit
> ______________________________________________________
> Get Your Private, Free Email at http://www.hotmail.com