Fw: CG I Script [guestbook.cgi] #2

 NO MORE ERRORS!!!

 The script guestbook.cgi is working!

My heartfelt thank to everyone that assisted me.

> ----- Original Message -----
> From: "Mr. Horace Franklin Jr." <horace@tidalwave.net>
> To: "R. Joseph Newton" <rjnewton@efn.org>
> Cc: <beginners@perl.org>; <rhanson@aptegrity.com>
> Sent: Monday, March 10, 2003 7:04 AM
> Subject: Re: CG I Script [guestbook.cgi]
>
>
> > Joseph,
> >
> > I am dealing with error messages one by one, in the order encountered..
> > This is the last error I received.
> >  Software Errors:
> > 03/10/2003:
> >  What? - Bareword "LINE" not allowed while "strict subs" in use at
> > guestbook.cgi line 23.
> >                  Execution of guestbook.cgi aborted due to compilation
> > errors.
> > ***********
> > 03/09/2003:
> >  Fixed - Can't find string terminator "E_FORM" anywhere before EOF at
> > guestbook.cgi line 205.
> > ***********
> > 03/09/2003:
> >  Fixed - Global symbol "$__START__" requires explicit package name at
> > guestbook.cgi line 29.
> > ***********
> > 03/09/2003:
> >  Fixed - Modification of a read-only value attempted at
> > /usr/lib/perl5/5.6.1/vars.pm line 40.
> >                 BEGIN failed--compilation aborted at guestbook.cgi line
> 18.
> >
> > I have no idea what is worng with the syntax $START - LINE;
> > Should I change the other references to line to uppercase or
> > (see * ).
> >
> > Horace
> >
> > Line  23 - eval { main() }; $START = LINE;
> >                                      * $START = $LINE
> >                       if ($@) {
> >                         chomp($@);
> >
> >                         $@ =~ s/\(eval\) line (\d+)/${CGI} . " line " .
> >                       *$@ =~ s/\(eval\) $LINE (\d=)/${CGI} . " $LINE "
> >                              ($START-$1-1)/e;
> >                         $@ =~ s/( at ).*( line )/$1${CGI}$2/;$
> >                       *$@ =~ s/( at ).*($LINE)/$1${CGI}$2/,$
> >
> > ----- Original Message -----
> > From: "R. Joseph Newton" <rjnewton@efn.org>
> > To: "Mr. Horace Franklin Jr." <horace@tidalwave.net>
> > Cc: <rhanson@aptegrity.com>; <beginners@perl.org>
> > Sent: Sunday, March 09, 2003 3:55 PM
> > Subject: Re: CG I Script [guestbook.cgi]
> >
> >
> > > "Mr. Horace Franklin Jr." wrote:
> > >
> > > > Rob,
> > > > Disregard the email below.
> > > > I have one error:
> > > >
> > > >  Software Error:
> > > >  Can't find string terminator "E_FORM" anywhere before EOF at
> > > > cgi_guestbook.cgi line 205.
> > > >
> > > > The code looks good to me.  What does this error mean?
> > > >
> > > > Horace
> > >
> > > Is this the first error message returned by the interpreter?  If not,
it
> > is probably meaningless.  The one use of heredoc <<E_FORM in your code
[as
> > posted at the base of this thread] does seem to be properly terminated.
> The
> > line numbers are way off, though.  This is an indication that you have
not
> > dealt with earlier errors.  These earlier errors will often make it
> > impossible for the interpreter to properly parse code found later.
> > >
> > > What is the full message returned on compilation?  What do the lines
> > referred to in the first error message, and the lines just preceding
> those,
> > contain?
> > >
> > > You MUST deal with error messages one by one, in the order
encountered.
> > Otherwise you are set adrift in a sea of consequential incomprehension.
> > >
> > > Joseph
> > >
> > >
> > > --
> > > To unsubscribe, e-mail: beginners-unsubscribe@perl.org
> > > For additional commands, e-mail: beginners-help@perl.org
> > >
> > >
> >
>
>
> --
> To unsubscribe, e-mail: beginners-unsubscribe@perl.org
> For additional commands, e-mail: beginners-help@perl.org
>
>

0
horace
3/10/2003 9:47:23 PM
perl.beginners 29388 articles. 4 followers. Follow

3 Replies
33518 Views

Similar Articles

[PageSpeed] 18
Get it on Google Play
Get it on Apple App Store

I have code :


code:--------------------------------------------------------------------------------
#!/usr/bin/perl -T
  use strict;
  use warnings;
  use CGI qw(:standard);
  use CGI::Carp qw(fatalsToBrowser);
  use CGI::Session;
  use DBI;

my $session = new CGI::Session("driver:File", undef, {Directory=>'/tmp'});
# Check if user has accept the agreement

--------------------------------------------------------------------------------


when i try to invoke thid code from 
http://apidb.org/cgi-bin/regstr.pl

i got internel server error
the error log msg is:
Can't locate CGI/Session.pm in @INC (@INC contains:
/usr/lib/perl5/5.6.1/i386-linux /usr/lib/perl5/
5.6.1 /usr/lib/perl5/site_perl/5.6.1/i386-linux
/usr/lib/perl5/site_perl/5.6.1 /usr/lib/perl5/site_
perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0
/usr/lib/perl5/site_perl /usr/lib/perl5/vendor
_perl/5.6.1/i386-linux /usr/lib/perl5/vendor_perl/5.6.1
/usr/lib/perl5/vendor_perl) at /var/www/api
db.org/cgi-bin/regstr.pl line 6.
BEGIN failed--compilation aborted at /var/www/apidb.org/cgi-bin/regstr.pl
line 6.
[Mon Mar 10 21:47:03 2003] [error] [client 128.192.48.192] Premature end
of script headers: /var/ww
w/apidb.org/cgi-bin/regstr.pl

How can i fix this problem?
Thanks

0
wangxf
3/11/2003 3:06:18 AM

Xiongfei Wang wrote:
> I have code :
> 

> 
> i got internel server error
> the error log msg is:
> Can't locate CGI/Session.pm in @INC (@INC contains:
> /usr/lib/perl5/5.6.1/i386-linux /usr/lib/perl5/
> 5.6.1 /usr/lib/perl5/site_perl/5.6.1/i386-linux
> /usr/lib/perl5/site_perl/5.6.1 /usr/lib/perl5/site_
> perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0
> /usr/lib/perl5/site_perl /usr/lib/perl5/vendor
> _perl/5.6.1/i386-linux /usr/lib/perl5/vendor_perl/5.6.1
> /usr/lib/perl5/vendor_perl) at /var/www/api
> db.org/cgi-bin/regstr.pl line 6.

Do you have the CGI::Session module installed?

http://danconia.org

0
wiggins
3/11/2003 3:15:04 AM
Thanks for reponse.
I am very new to perl.
A silly question is where i can find CGI:Session and how to install it?

i have  perl, v5.6.1 built for i386-linux.

Thanks


On Mon, 10 Mar 2003, Wiggins d'Anconia wrote:

> 
> 
> Xiongfei Wang wrote:
> > I have code :
> > 
> 
> > 
> > i got internel server error
> > the error log msg is:
> > Can't locate CGI/Session.pm in @INC (@INC contains:
> > /usr/lib/perl5/5.6.1/i386-linux /usr/lib/perl5/
> > 5.6.1 /usr/lib/perl5/site_perl/5.6.1/i386-linux
> > /usr/lib/perl5/site_perl/5.6.1 /usr/lib/perl5/site_
> > perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0
> > /usr/lib/perl5/site_perl /usr/lib/perl5/vendor
> > _perl/5.6.1/i386-linux /usr/lib/perl5/vendor_perl/5.6.1
> > /usr/lib/perl5/vendor_perl) at /var/www/api
> > db.org/cgi-bin/regstr.pl line 6.
> 
> Do you have the CGI::Session module installed?
> 
> http://danconia.org
> 
> 
> -- 
> To unsubscribe, e-mail: beginners-unsubscribe@perl.org
> For additional commands, e-mail: beginners-help@perl.org
> 

0
wangxf
3/11/2003 1:28:57 PM
Reply:

Similar Artilces:

Fw: CG I Script [guestbook.cgi]
Rob/Joseph, It worked, thanks. Horace > ----- Original Message ----- > From: "R. Joseph Newton" <rjnewton@efn.org> > To: "Rob Dixon" <rob@dixon.nildram.co.uk> > Cc: <beginners@perl.org> > Sent: Sunday, March 09, 2003 7:51 PM > Subject: Re: CG I Script [guestbook.cgi] > > > > Rob Dixon wrote: > > > > > Mr. Horace Franklin Jr. wrote: > > > > Rob, > > > > Disregard the email below. > > > > I have one error: > > > > > > > > Software E...

CG I Script [guestbook.cgi]
------=_NextPart_000_000B_01C2E495.FCB4C2C0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Clear DayI tired to run the script below on my host server and it would = not run. The server cannot find Taintcheck or Timefuncs. I uploaded these pm file to the server. What did I do wrong? Is Apache the problem? SERVER INFORMATION: Path to Perl: /usr/local/bin/perl Path to Sendmail: /usr/sbin/sendmail Path to home directory: /home/horace-f Path to Date: /bin/date What Operating System are we using? RedHat Linux=20 ...

Referring to a cgi script within a cgi script.
--=====================_16295211==_.ALT Content-Type: text/plain; charset="us-ascii"; format=flowed Hello all, This is my first post, so bear with me. I have a form that activates a cgi script that scans a flat-file *.csv file, matches on a unique identifier, identifies the line that contains the identifier, and pushes the separated values of that line into an array. I want to pass those values into another (second) cgi script, but I don't know how. I made the original script display the values of the line in "text" input boxes in a web page the ...

Fail to install Bugzilla. The web server (Apache 2.2) does not execute CGI scripts. Please help.
Hi, I've tried to install Bugzilla 3.2.3 (stable version) on Fedora 11 on a = regular Pentium4 machine. Everything went well up until the last step; = running testserver.pl <http://testserver.pl/> script. Below is the = output of testserver.pl: [root@LinuxBox bugzilla]# ./testserver.pl http://localhost/bugzilla TEST-OK Webserver is running under group id in $webservergroup. TEST-OK Got front picture. Use of uninitialized value $response in pattern match (m//) at = ../testserver.pl line 110. Use of uninitialized value $response in pattern match (m//) at = ../testserver...

Timeout waiting for output from CGI script /srv/www/htdocs/bugzilla-2.22/process_bug.cgi
When anyone attempts to create a new bug or upate an exiting bug apache never returns after the commit button is selected. However, if you refresh the screen manually the update actually occurs, just the browser never apparently receives the data update from apache or the bugzilla scripts. System is running SuSE 10.2 Any help would be appreciated. Curtis Rubel crubel@gmail.com This appears to have been a problem with mail on the server where Bugzilla is running. Bugzilla would not timeout or report any errors, however whenever something was done in Bugzilla that initia...

cgi put script? #2
Hi, Thanks to everyone for the suggestions- I have not tried many of them. There does not seem to be much documentation, for this function. I need some time for further "experimenting", and will let you know the results. Thanks! Steve ...

Unix CGI script #2
The PowerBuilder 6.0 documentation claims to support "standard CGI" for UNIX Netscape web servers. The documentation claims the name of this script is "pbcgi60.script". Does anyone know where this script is located? Thanks!!! ...

Can not get CGI to run: "TEST-FAILED Webserver is not executing CGI files." = Bugzilla 2.22.2 #2
I've had some excellent advice and I really appreciate it. ;-D =20 So close but yet again, I get bit by the configuration bug. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D Now Testserver.pl is reporting: =20 C:\Apache_Apps\bugzilla>.\testserver.pl http://localhost/bugzilla TEST-OK Got front picture. Use of uninitialized value in pattern match (m//) at C:\Apache_Apps\bugzilla\testserver.pl line 101. Use of uninitialized value in pattern match (m//) at C:\Apache_Apps\bugzilla\testserver.pl line 101. TEST-F...

Need help with a guestbook script #2
------=_NextPart_000_5d67_d71_4598 Content-Type: text/plain; format=flowed Hello, I am brand new to Perl and I am trying to get a CGI script for a guestbook to work and I need some help. I enter my data on the form, but when I press the submit button, the guestbook is displayed but the guest information that was entered is not. Can you take a look at my code and tell me what I am doing wrong. Also, if you would advise on what the permission settings should be for the files, that would help also. I have attached 3 files ( 1 HTML file and 2 CGI scripts) in a Word documen...

i need help with cgi-scripts and HTML #2
You will need to find out if the web server you are running on allows CGI. Then check out this web site. It helped me a lot: http://cgi101.com What kind of web server will you be running on? Windows, *nix, using IIS or APACHE? Hope this helps. Rob _______________________________________________________ Send a cool gift with your E-Card http://www.bluemountain.com/giftcenter/ --- Robert Hall <rohall@excite.com> wrote: > > You will need to find out if the web server you are running on allows CGI. > Then check out this web site. It helped me ...

Passing values through 2 different CGI scripts
Hi List, I have an online web map created through mapinfo-when you click on a part of the JPEG image it loads a CGI script and passes a unique 12 digit number which then identifies where on the map it is. After the road/point has been selected and the cgi script has returned the location-it then prompts the user to confirm whether this is the correct location to report a problem...which then passes them on to a form linked to an email CGI form. My problem: How do I pass the 12 digit number from the first cgi form to the online html form to the email cgi program? Thanx ...

Premature end of script headers: index.cgi #2
Hi, I have installed bugzilla 2.18rc3. I am facing this problem The server encountered an internal error and was unable to complete your request. Error message: Premature end of script headers: index.cgi Thanks in advance regards Alok Sarawat (alok.sarawat@daffodildb.com) alok sarawat wrote: > Hi, > I have installed bugzilla 2.18rc3. > I am facing this problem > The server encountered an internal error and was unable to complete your > request. > Error message: > Premature end of script headers: index.cgi Is there anything else furt...

Bugzilla::CGI::upload: syntax error at C:/bugzilla-2.22.2/attachment.cgi line 379
I'm running bugzilla 2.22.2 with CGI version 3.20. Anyone have an idea on how to fix this problem? There isn't much details, the error log has pretty much the same the I see on the submit attachment screen. thanks, Jerome Full error: attachment.cgi: Bugzilla::CGI::upload: syntax error at C:/bugzilla-2.22.2/attachment.cgi line 379, referer: http://localhost:8080/attachment.cgi?bugid=1&action=enter ...

Dump Html file as output from CGI script #2
------=_NextPart_000_00A4_01C34066.BE1CB4A0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Greetings to all that is Perl Is it possible to specify using a cgi script to read and output a Pure = HTML file as output.. so that it can process the form data..=20 and return a specific html file output to be returned at the browser = end.. Thanks Sam ------=_NextPart_000_00A4_01C34066.BE1CB4A0-- ...

Web resources about - Fw: CG I Script [guestbook.cgi] #2 - perl.beginners

Guestbook - Wikipedia, the free encyclopedia
A guestbook (also guest book , visitor log , visitors' book , visitors' album ) is a paper or electronic means for a visitor to acknowledge a ...

7.30/letters Guestbook Letters - The 7.30 Report
The 7.30 Report is the ABC's national flagship current affairs program. Find transcripts from the program, contact details and submit your comments ...

Why we should leave Justin Bieber alone about what he wrote in the guestbook at the Anne Frank Museum ...
He wrote: "Truly inspiring to be able to come here. Anne was a great girl. Hopefully she would have been a belieber." Writing about this causes ...

Obama signs Hall of Fame's guestbook: "Go Sox!"
Obama signs Hall of Fame's guestbook: "Go Sox!"

Justin Bieber Visits Anne Frank House, Leaves Gross Message in Guestbook
Child musician and professional Twitter trending topic, Justin Bieber has upset the world after a recent visit to the Anne Frank House. There ...

Royal Baby Guestbook - ABCNews - ABC News
Sign the Royal Baby Guestbook and give Kate and William a gift! Browse through others' gifts and messages for Kate and William's baby at ABCNews.com ...

Just opened up the guestbook at the very isolated cabin we'll be staying at for the next week... - Imgur ...
The most viral images on the internet, curated in real time by a dedicated community through commenting, voting and sharing.

Guestbook
A community where iOS developers and users can interact, share info, blog, and release the latest and greatest tweaks, hacks, and mods.

You are invited to sign the guestbook celebrating the life of Bob Barry, Jr.
OKLAHOMA CITY Even though we are saddened at the sudden loss of our friend Bob Barry, Jr., we wish to celebrate his life. His legacy was built ...

Matrix67: My Blog » GuestBook
一同学收到某纸条表白,上面写了电话号码..但是被加密了,求解.. 号码后四位保密。 151X07Y**** X=I for you Y=X+1 求问一下。。

Resources last updated: 1/3/2016 1:57:17 AM