I am not sure what list to refer to for my problem

2022-04-28 Thread Olivier
Hello, My problem is definitlively CGI, but not beginner in any form. I have a large CGI script (over 2000 lines), that includes interresting forms, etc. and some calls to openssl ($ret=`openssl x y z`;) The script works fine. I am trying to convert it to run through Joomla (to have a

Re: problem with passing variables

2011-12-30 Thread nat
> I'm not sure if this is the right list for this, so bear with me. If it > isn't I'll be glad to post it on the correct one. > > I've got a problem with passing variables to a SQL server inside a CGI > script. My code is like this: > > my $begin_time = &qu

problem with passing variables

2011-12-30 Thread Mark Haney
I'm not sure if this is the right list for this, so bear with me. If it isn't I'll be glad to post it on the correct one. I've got a problem with passing variables to a SQL server inside a CGI script. My code is like this: my $begin_time = "2011-11-16 11:00:00&quo

SUMMARY: Problem uploading large files (broken storing)

2010-03-07 Thread J Alejandro Ceballos Z
Well, after trying with cgi.pm options ($POST_MAX) and apache directives: TimeOut, KeepAlive and LimitRequestBody, the problem comes from the size of /tmp directory (thank you Lawrence), it was very small (450 Mb) and the temporary file can not be stored. So, just make it bigger and

Problem uploading large files (broken storing)

2010-03-01 Thread J Alejandro Ceballos Z
I have a problem with a perl cgi used to upload files. It was working fine until my hosting provider making some upgrade in the server. Now, it can upload files undes 460 Mb, but not over it. If try, a file of 0 length is created and the cgi continue, but file is not stored. I tryied

perldoc ESC problem (was: Send email using SMTP)

2009-01-10 Thread Mike Williams
Hi there. Since the charset doesn't seem to be the problem, maybe this will help. Did some digging and found a bug report against redhat version 8 concerning terminal codes in perldoc output. There were comments about this being a bug in groff. https://bugzilla.redhat.com/show_bug.cgi?id=

Re: Problem with uploader

2008-11-24 Thread Adam Jimerson
On Saturday 22 November 2008 11:23:28 pm Owen wrote: > > I apologize for not having the rest of your thread, but don't forget > that CGI::Carp can be used, one use is in the set_message routine > > use CGI::Carp qw(fatalsToBrowser set_message); > set_message("Please report details of this error to

Re: Problem with uploader

2008-11-22 Thread Owen
> On Friday 21 November 2008 11:23:11 am you wrote: >> On Tue, 2008-11-18 at 10:49 -0500, Adam Jimerson wrote: >> > >> > If the open failed then wouldn't the die kick in and at least say something in the server logs? Also how would one go around and >> get a >> > more descriptive error message? F

Re: Problem with uploader

2008-11-22 Thread Adam Jimerson
On Friday 21 November 2008 11:23:11 am you wrote: > On Tue, 2008-11-18 at 10:49 -0500, Adam Jimerson wrote: > > > > If the open failed then wouldn't the die kick in and at least say > > something in the server logs? Also how would one go around and get a > > more descriptive error message? For te

Re: Problem with uploader

2008-11-21 Thread Matthew Whipple
On Tue, 2008-11-18 at 10:49 -0500, Adam Jimerson wrote: > Matthew Whipple wrote: > > > > > The open must have failed. You could work on getting a more descriptive > > error message but I'd suggest starting with the the path and > > permissions. Also check to make sure existing files are handled

Re: Problem with uploader

2008-11-19 Thread Adam Jimerson
Matthew Whipple wrote: > > The open must have failed. You could work on getting a more descriptive > error message but I'd suggest starting with the the path and > permissions. Also check to make sure existing files are handled > properly. Make sure the path used is relative to its environment

Re: Problem with uploader

2008-11-18 Thread Matthew Whipple
On Sun, 2008-11-16 at 21:31 -0500, Adam Jimerson wrote: > On Sunday 16 November 2008 9:10:19 pm you wrote: > > > > > You'll want to look in the error log to see what is there. > > > > Sean > > All the Apache error logs says is "print () on closed Filehandle OUTFILE at > /srv/www/cgi-bin/upload l

Re: Problem with uploader

2008-11-18 Thread Adam Jimerson
Matthew Whipple wrote: > > > The die message would most likely be written into the server's log. A > quick fix to more easily get the error messages would be using > CGI::Carp, a "use CGI::Carp qw(fatalsToBrowser)" should show you the > error on the page. Using CGI::Carp didn't produce any err

Re: Problem with uploader

2008-11-18 Thread vendion
rt 80, but I > > have ran into a problem with it.  I followed the documentation on > > CPAN for uploading files and did what they have suggested as the best > > way but it doesn't work.  Here is my code: > > Make life easy for yourself, have a look at > > http://sear

Re: Problem with uploader

2008-11-18 Thread Adam Jimerson
On Sunday 16 November 2008 9:10:19 pm you wrote: > > You'll want to look in the error log to see what is there. > > Sean All the Apache error logs says is "print () on closed Filehandle OUTFILE at /srv/www/cgi-bin/upload line 46", but I do have the filehandle open in the script. -- "We must pl

Re: Problem with uploader

2008-11-18 Thread Sean Davis
On Sun, Nov 16, 2008 at 4:05 PM, Adam Jimerson <[EMAIL PROTECTED]> wrote: > I'm trying to make a CGI script to upload files remotely onto my server, to > get around my uni blocking everything but port 80, but I have ran into a > problem with it. I followed the documentation o

Re: Problem with uploader

2008-11-17 Thread Matthew Whipple
> > Running it locally prints out the generated HTML and it looks right and the > page does open correctly on my server but there is not file in /tmp and the > mail is never sent and I don't know if it is a problem with opening the > OUTFILE handle because the die command

Re: Problem with uploader

2008-11-16 Thread Owen
On Sun, 16 Nov 2008 16:05:15 -0500 Adam Jimerson <[EMAIL PROTECTED]> wrote: > I'm trying to make a CGI script to upload files remotely onto my > server, to get around my uni blocking everything but port 80, but I > have ran into a problem with it. I followed the documen

Problem with uploader

2008-11-16 Thread Adam Jimerson
I'm trying to make a CGI script to upload files remotely onto my server, to get around my uni blocking everything but port 80, but I have ran into a problem with it. I followed the documentation on CPAN for uploading files and did what they have suggested as the best way but it doesn&#

Problem in Session Accessing

2007-12-11 Thread Praki
Greetings All, i m creating a session storing the loging credentials. i want to access that data later after crossing two pages.i have created the sesion but i could not get the data back some where i m going wrong can u point me where .. my first first file getting the login credentials #!/us

Problem in LDAP authentication

2007-12-07 Thread Praki
Greetings All, I m trying to authenticate the user for my web page using the ldap server.i m able to get the info using user name. but i m not able to authenticate the password. here is the below code i m using.even if i give the wrong password it access the ldap server.i m not able to authenticat

Re: Problem with Fcntl.pm in a compiled(perlcc) Perl-cgi program

2007-02-07 Thread Tom Phoenix
r machine need a different list of directories in @INC? Remember that when you compile your Perl program, you lock down that list of directories; that's one piece of the portability problem. Good luck with it! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROT

Problem with Fcntl.pm in a compiled(perlcc) Perl-cgi program

2007-02-07 Thread I BioKid
tried : locate Fcntl.pm, it is there at /usr/lib64/perl5/5.8.5/x86_64-linux-thread-multi/Fcntl.pm. What is this Fcntl.pm, Is there any solution for this problem ? My perl is 5.8.5 : [Wed Feb 07 18:10:52 2007] [error] [client 192.168.1.1] Can't locate Fcntl.pm in @INC (@INC contains: /usr/lib/perl5/

Problem with displaying 8859-2 charset with cgi->header

2007-02-07 Thread Slawomir Orlowski
Hello, I have Linux RHEL v4, Apache web server 2.0.52-28.ent [EMAIL PROTECTED] cgi-bin]# perl -MCGI -e 'print $CGI::VERSION' 3.05 [EMAIL PROTECTED] cgi-bin]# perl -v This is perl, v5.8.5 built for i386-linux-thread-multi I'm having problem with displaying polish fo

Re: Hidden fields problem

2006-12-27 Thread Earthlink-ryanremax
Mary wrote: Hi all, As usual, I am having trouble with hidden fields. Here is the simplest example from my code which is not working: if ($tmp_perm eq 'prm_'){ my $oldFieldName = "old_$fieldName"; print hidden (-name => $oldFieldName, -value => $fieldValue, -default => $fieldValue-overrid

a server programing problem

2006-11-22 Thread ali kim
d" file when it starts, does all the job and writes '0' into "pid" at exit. Also "server.cgi" exits if there is no socket connection in 15 seconds. The problem is that sometimes it works perfectly and sometimes it doesn't. And I don't know why. I supp

RE: perplexing popup problem -- CGI .pm bug?

2006-08-29 Thread Moore, George T.
Take a look at the if statement below. I think you want <= not just < -Original Message- From: Mary Anderson [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 29, 2006 11:42 AM To: beginners-cgi@perl.org Subject: perplexing popup problem -- CGI .pm bug? I am having a problem with

perplexing popup problem -- CGI .pm bug?

2006-08-29 Thread Mary Anderson
I am having a problem with popup-menus. Basically I have an application which first displays my popups with a default value of 'null' on the first page. I then save these to a hidden field. On a later page I call the same routine with values I have retrieved from a database and d

RE: Perl script problem

2006-08-29 Thread Moore, George T.
tie(%mail); The line $mail{$email} = "$name|$comments"; is causing your problem. -Original Message- From: Joel Alvo [mailto:[EMAIL PROTECTED] Sent: Saturday, August 26, 2006 8:32 AM To: beginners-cgi@perl.org Subject: perl script problem Hi. I have some perl script attac

Re: perl script problem

2006-08-26 Thread Mumia W.
On 08/26/2006 10:32 AM, Joel Alvo wrote: Hi. I have some perl script attached that does not return anything when I click the link "see what others have to say". [...] I didn't execute your script, but this part intrigued me: sub create_comments_page { my (%mail, $email, $name, $comm

perl script problem

2006-08-26 Thread Joel Alvo
Hi. I have some perl script attached that does not return anything when I click the link "see what others have to say". When the link is clicked, from the html page, the cgi page is generated, without any data posted to it, and therefore, the last part of the cgi script is executed, where post is

Re: Hi, strange problem on calculation

2005-12-07 Thread Owen Cook
On Wed, 7 Dec 2005 [EMAIL PROTECTED] wrote: > Hi, > > I don't know why the result of my calculation doesn't make sense! > > > foreach('0.43','-0.12','-0.08','-0.17','-0.06') { >$value = $value + ($_); > } > print $value . ""; > > Value = -2.77555756156289e-17 > Should be 0.00 What is th

Hi, strange problem on calculation

2005-12-07 Thread webmaster
Hi, I don't know why the result of my calculation doesn't make sense! foreach('0.43','-0.12','-0.08','-0.17','-0.06') { $value = $value + ($_); } print $value . ""; Value = -2.77555756156289e-17 Should be 0.00 My Perl Version is: perl -V Summary of my perl5 (revision 5 version 8 subversion

Re: Query on sendmail problem

2005-10-07 Thread Scott R. Godin
Dale wrote: Hi, I'm hoping someone can help me with an issue I've got with, I assume, sendmail. I've copied part of a script below. If I use the first To: line (which takes the e-mail address from a file - and this works) then a mail doesn't arrive. If, however, I used the second To: line (wh

Re: Query on sendmail problem

2005-10-05 Thread Wiggins d'Anconia
Dale wrote: > Hi, > > I'm hoping someone can help me with an issue I've got with, I assume, > sendmail. > > I've copied part of a script below. If I use the first To: line (which > takes the e-mail address from a file - and this works) then a mail > doesn't arrive. If, however, I used the secon

Query on sendmail problem

2005-10-05 Thread Dale
Hi, I'm hoping someone can help me with an issue I've got with, I assume, sendmail. I've copied part of a script below. If I use the first To: line (which takes the e-mail address from a file - and this works) then a mail doesn't arrive. If, however, I used the second To: line (which is current

Re: Yet another package problem

2005-09-16 Thread Ovid
--- Luinrandir <[EMAIL PROTECTED]> wrote: > Ok.. as asked for..the code and I hate to do this cause i'm gonna > get > told how everything i'm doing is wrong.. > from the way I lay out the code to the way I write code to the way I > don't > use every damn modual under the sun With all due r

Re: Yet another package problem

2005-09-16 Thread Bob Showalter
Luinrandir wrote: ### Inn.pl # ## package Inn; Buy {} Sell {} Talk {} Sleep {} Delivery {} Work { # GameTime(.1); # SendOff(); print qq|"Well afraid I do all my own work Try another business"|; } ... Did

Yet another package problem

2005-09-16 Thread Luinrandir
ive up. I have commented out a lot of stuff in search of the problem. The program runs fine till it calls on the Inn.pl package in the line below marked <<<<<<<<<<<<<<<< if I comment it out it completes the HTML code. when I put it back in , the program,

Re: Regex Problem.

2005-08-18 Thread Sara
That's worked like a charm, You ALL are great. Thanks everyone for help. Sara. - Original Message - From: <[EMAIL PROTECTED]> To: "'Sara'" <[EMAIL PROTECTED]> Sent: Thursday, August 18, 2005 10:50 PM Subject: RE: Regex Problem. Hi Sara,

Re: Regex Problem.

2005-08-18 Thread Wiggins d'Anconia
Sara wrote: > I am at a loss here to generate REGEX for my problem. > > I have an input query coming to my cgi script, containg a word (with or > without spaces e.g. "blood" "Globin Test" etc). > What I am trying to do is to split this word (maximum of 3 charac

Re: Regex Problem.

2005-08-18 Thread Greg Jetter
On Thursday August 18 2005 11:48 am, Sara wrote: > I am at a loss here to generate REGEX for my problem. > > I have an input query coming to my cgi script, containg a word (with or > without spaces e.g. "blood" "Globin Test" etc). What I am trying to do is &g

Regex Problem.

2005-08-18 Thread Sara
I am at a loss here to generate REGEX for my problem. I have an input query coming to my cgi script, containg a word (with or without spaces e.g. "blood" "Globin Test" etc). What I am trying to do is to split this word (maximum of 3 characters) and find the BEST possible m

Re: quote problem and mysql

2005-08-04 Thread Todd W
"Andrew Kennard" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi all > > >my $Vals; >for ( my $i=1;$i<=32;$i++ ) { >$Vals.='?,'; >} >chop $Vals; Ugh. $vals = join(', ', ('?') x 32 ); Ideally, you should have your data in an array, then: my $sql = "IN

Cookie Problem

2005-08-01 Thread Mike Blezien
Hello, I'm trying to pass a cookie value as a string. IE: $cookie_string = "$params->{username}|$params->{password}|$time|$time"; $cookie = $cgi->cookie(-name=>'cookie_name',-value="$cookie_string",-expires=>'+1y'); But this is the result I get: test22%7C123456%7C1122932023%7C1122932023 I'

Re: Problem with https post using LWP

2005-08-01 Thread Denzil Kruse
Hi Wiggins, Nope, that's all news to me! Thanks for the help, I'll look into it. Denzil --- Wiggins d'Anconia <[EMAIL PROTECTED]> wrote: > Denzil Kruse wrote: > > Have you read: > > http://search.cpan.org/src/GAAS/libwww-perl-5.803/README.SSL > > And do you have an appropriate SSL interface

Re: Problem with https post using LWP

2005-08-01 Thread Wiggins d'Anconia
Denzil Kruse wrote: > Hi all, > > I'm trying send an https post: > > my $url = "https://some.secure.server/secure.dll";; > > my $ua = LWP::UserAgent->new; > > # assemble the request > # > my $request = HTTP::Request->new(POST => "$url"); > $request->content_type('application/x-www-form-urlencod

Problem with https post using LWP

2005-08-01 Thread Denzil Kruse
Hi all, I'm trying send an https post: my $url = "https://some.secure.server/secure.dll";; my $ua = LWP::UserAgent->new; # assemble the request # my $request = HTTP::Request->new(POST => "$url"); $request->content_type('application/x-www-form-urlencoded'); $request->content($content); # send t

Re: quote problem and mysql

2005-07-18 Thread Andrew Kennard
Thanks to you both for your replies GenMainRecData did indeed contain a feature that produced this result ! Regards Andrew "Wiggins d'Anconia" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Bob Showalter wrote: >> Andrew Kennard wrote: >> > > [snip] > >> >> No, you shouldn't

Re: quote problem and mysql

2005-07-15 Thread Wiggins d'Anconia
Bob Showalter wrote: > Andrew Kennard wrote: > [snip] > > No, you shouldn't have to do that. Your first approach is correct, so we > need to find out what's going wrong there... > Can you show us GenMainRecData? Are you sure it isn't the culprit here, possibly it is already doing data mungin

RE: quote problem and mysql

2005-07-15 Thread Bob Showalter
What you're doing should be working. The execute method should properly quote your parameters. You might try setting DBI->trace(2) prior to the call to execute() to get some debugging output. Maybe that will help to pinpoint the problem. > > I've also tried > foreach $fl

Quote problem mySQL

2005-07-15 Thread Andrew Kennard
Hi all Done lots of googling but this simple thing still has me stumped The perl code to insert stuff into an mysql table is this my $Vals; for ( my $i=1;$i<=32;$i++ ) { $Vals.='?,'; } chop $Vals; my @TheRecord=&GenMainRecData(); my $sth = $dbh->prepare("INSERT IN

quote problem and mysql

2005-07-15 Thread Andrew Kennard
Hi all Done lots of googling but this simple thing still has me stumped The perl code to insert stuff into an mysql table is this my $Vals; for ( my $i=1;$i<=32;$i++ ) { $Vals.='?,'; } chop $Vals; my @TheRecord=&GenMainRecData(); my $sth = $dbh->prepare("INSERT IN

RE: CGI form Caching problem

2005-05-03 Thread Charles K. Clarkson
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> wrote: : : If you're using IE for development, ditch it. : : I would never even thonk about using IE to develop with. I do use it : for further testing, but thats about all. I am using Firefox (PC) : mainly, although The problem still e

Re: CGI form Caching problem

2005-05-03 Thread tom . kirkpatrick
> use strict; > use warnings; Yes, I have these on as always. > Apache won't cache the result of a script directory AFAIK. So that means it MUST be a browser caching problem right? > If you're using IE for development, ditch it. I would never even thonk about using IE

Re: CGI form Caching problem

2005-05-03 Thread Wiggins d'Anconia
[EMAIL PROTECTED] wrote: [snip] > > I have tried sending all sorts of headers to the browser to stop it > caching the page but nothing has made a difference. So perhaps the problem > is not in the browser, but in apache somewhere?? > > anyone ever had this (or a similar) pro

Re: CGI form Caching problem

2005-05-03 Thread Brad Lhotsky
y 03, 2005 at 09:52:45AM +0100, [EMAIL PROTECTED] wrote: > In trying to develop a simple perl CGI script, I have run into some kind > of caching problem which is making development an absolute nightmare. > > The script displays a form (using WWW::Form). On submition, it calls > i

RE: CGI form Caching problem

2005-05-03 Thread Charles K. Clarkson
in one of : the input boxes it shouldn't send back the form with the old : data!!! Thats crazy. : : I have tried sending all sorts of headers to the browser to stop : it caching the page but nothing has made a difference. So : perhaps the problem is not in the browser, but in apache

CGI form Caching problem

2005-05-03 Thread tom . kirkpatrick
In trying to develop a simple perl CGI script, I have run into some kind of caching problem which is making development an absolute nightmare. The script displays a form (using WWW::Form). On submition, it calls itself. If all the fields have been filled out correctly then the user gets

Database connectivity problem with cgi

2005-04-30 Thread Deepblues
I have a database connetivity problem, I have a cgi script which connects to the database. I tried the CGI script at the command line and its working, it also connects to the database. But when I use the front end , it says there is an internal error , and gives the "premature end of s

Re: grep pattern problem

2005-04-26 Thread Ing. Branislav Gerzo
TapasranjanMohapatra [T], on Wednesday, April 27, 2005 at 11:33 (+0530) has on mind: T> How do I set the path for CGI? If I do a print on $ENV{'PATH'}, T> I get /sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin that's ok. #!/usr/bin/perl $| = 1; #always use this print "Content-type: tex

RE: grep pattern problem

2005-04-26 Thread TapasranjanMohapatra
-Original Message- From: Ing. Branislav Gerzo [mailto:[EMAIL PROTECTED] Sent: Tue 4/26/2005 8:51 PM To: beginners-cgi@perl.org Subject: Re: grep pattern problem TapasranjanMohapatra [T], on Monday, April 25, 2005 at 17:51 (+0530) wrote: T> The directory and files have all permissi

Re: grep pattern problem

2005-04-26 Thread Ing. Branislav Gerzo
TapasranjanMohapatra [T], on Monday, April 25, 2005 at 17:51 (+0530) wrote: T> The directory and files have all permissions (777) recursively. T> I see the same problem when I do "grep pattern ../directory/* " also. T> Can someone tell me what may be the problem. maybe your p

RE: PATH problem

2005-04-25 Thread TapasranjanMohapatra
-Original Message- From: Lawrence Statton [mailto:[EMAIL PROTECTED] Sent: Mon 4/25/2005 8:19 PM To: TapasranjanMohapatra Cc: beginners-cgi@perl.org Subject: Re: PATH problem > > All, > My script goes like this... > -- > #!/usr/b

Re: PATH problem

2005-04-25 Thread Lawrence Statton
-- > I have a case where file_one is not in the same directory. So I give the abso > lute path of file_one > in place of file_one. > When run it using perl on command line I get the contents of file printed cor > rectly. > > But when accessed through browser (cgi-bin

Re: PATH problem

2005-04-25 Thread Wiggins d'Anconia
> in place of file_one. > When run it using perl on command line I get the contents of file printed > correctly. > > But when accessed through browser (cgi-bin), I get nothing printed. > > I thought it might be path problem , but it is not. Because when the file is > in same di

grep pattern problem

2005-04-25 Thread TapasranjanMohapatra
line (perl). The directory and files have all permissions (777) recursively. I see the same problem when I do "grep pattern ../directory/* " also. Can someone tell me what may be the problem. TIA tapas -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EM

Re: PATH problem

2005-04-25 Thread Sean Davis
Not sure this is the problem, but remember that when you run a CGI script from the command line, you are running as yourself. When you run it in the browser, you are running under whatever username and group the server is running with (and almost always this is different from yourself). So

PATH problem

2005-04-25 Thread TapasranjanMohapatra
the same directory. So I give the absolute path of file_one in place of file_one. When run it using perl on command line I get the contents of file printed correctly. But when accessed through browser (cgi-bin), I get nothing printed. I thought it might be path problem , but it is not. Bec

Re: path problem

2005-04-09 Thread Peter Scott
On Fri, 08 Apr 2005 11:59:12 -0400, Shaun Fryer wrote: >> >use lib "$ENV{'DOCUMENT_ROOT'}/pdftest"; > > use lib is done at compile time. the %ENV isn't available til run-time IIRC. False: $ perl -le 'print grep /peter/ => @INC' $ perl -le 'use lib $ENV{HOME}; print grep /peter/ => @INC' /home/p

Re: path problem

2005-04-08 Thread Shaun Fryer
> >use lib "$ENV{'DOCUMENT_ROOT'}/pdftest"; use lib is done at compile time. the %ENV isn't available til run-time IIRC. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: FTP problem

2005-04-06 Thread Allen Wang
We are having some issues when using FTP, sometimes when the file size is big, it got truncated. Any suggests will be appreciated. $ftp = Net::FTP->new ($ftp_host, timeout=>30) or $ftp_error=1; -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

path problem

2005-04-06 Thread Andrew Kennard
Hi all Iv'e downloaded a pdf module from CPAN and am trying to use it in my webspace provided by Demon Internet (www.demon.net) but no matter what I try it cannot 'find' the module called Reuse.pm which IS in the same directory as the following script. !/usr/bin/perl use lib "$ENV{'DOCUMENT_ROOT'

Problem writing JavaScript method with CGI.pm

2005-03-03 Thread Tyson Sommer
I am trying to use CGI.pm to build a button for a form that has an onClick method defined that's supposed to make the page reload itself. Here's the code I'm using (assume strictures and warnings, and that $q = new CGI;): Current working code: - sub tt_write_form () { # W

Re: Problem with script requiring valid referrer

2005-02-08 Thread David Dorward
On Tue, Feb 08, 2005 at 11:43:05AM -0800, Chris Schults wrote: > In both cases, our visitors swear that they are linking to these scripts > from valid Grist pages. Any ideas why some people are getting the error > messages? The referer header is optional, and when it is used there are a number of

Problem with script requiring valid referrer

2005-02-08 Thread Chris Schults
I sent the following email to the Perl Beginners List and was directed here ... Hey all. On our website we have several forms (send a letter, ask a question, etc) that some of our visitors seem to have problems with. These forms require the referring page to be from a Grist Magazine domain. Here

PPM problem.

2004-10-17 Thread Sara
I am trying to install DBI module for my perl installation on XP machine. Everything was working fine, I installed a lot of modules before using the same PPM, but now it has started giving this error (as shown below). I have searched, but failed to find anything. I installed a fresh version of Per

Re: Problem with flock

2004-09-27 Thread Gunnar Hjalmarsson
Wiggins d Anconia wrote: You haven't shown us your 'use' statements, I suspect you didn't import the LOCK_ constants, perldoc -f flock Adding: use Fcntl ':flock'; # import LOCK_* constants Should help. I think you need to do: use Fcntl qw(:DEFAULT :flock); or else Perl will complain about O_RDW

Re: Problem with flock

2004-09-27 Thread Wiggins d Anconia
> Variations on the following code snippet have run successfully before, > but now the compiler halts with the complaint > " Bareword "LOCK_EX" not allowed while "strict subs" in use at > student_info_viewer.cgi line 47" > Can someone help me see what I am overlooking? > You haven't shown us you

Problem with flock

2004-09-27 Thread Rick Triplett
Variations on the following code snippet have run successfully before, but now the compiler halts with the complaint " Bareword "LOCK_EX" not allowed while "strict subs" in use at student_info_viewer.cgi line 47" Can someone help me see what I am overlooking? # Declare the 'working' datahash, th

Re: CGI Problem

2004-08-26 Thread Chris Devers
On Thu, 26 Aug 2004, Dimitra Atri wrote: I am facing a problem related to cgi scripting. Kindly let me know the solution to it or please refer to some website so that I can resolve it. PROBLEM: How to run a .exe file though cgi script? DESCRIPTION: I have an executable file which I intend to put

Re: CGI Problem

2004-08-26 Thread Sean Davis
be placed within an HTML wrapper for display on the server. This can be done multiple ways, the simplest probably being writing the output directly to the browser (with appropriate HTML headers, etc.). Sean On Aug 26, 2004, at 5:26 AM, Dimitra Atri wrote: Hello, I am facing a problem related to

CGI Problem

2004-08-26 Thread Dimitra Atri
Hello, I am facing a problem related to cgi scripting. Kindly let me know the solution to it or please refer to some website so that I can resolve it. PROBLEM: How to run a .exe file though cgi script? DESCRIPTION: I have an executable file which I intend to put on the server. The interface is

RE: pl file run problem?

2004-08-05 Thread Sun, Jian
t;, -format => 'clustalw', -flush => 0); $out->write_aln($aln); //// Could anybody point me what the problem here? Thanks in advance Jane -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: CGI problem

2004-07-30 Thread Jan Eden
Hi Jane, Sun, Jian wrote on 29.07.2004: >Dear Beginner-cgi: >I used a CGI program to load a HTML form page as shown below, >After I filled the form and submit, the results is just attached to >the initiated form page when it leads to the new webpage. My >question is: how can I load to a new HTML

CGI problem

2004-07-29 Thread Sun, Jian
Dear Beginner-cgi: I used a CGI program to load a HTML form page as shown below, After I filled the form and submit, the results is just attached to the initiated form page when it leads to the new webpage. My question is: how can I load to a new HTML page after I submit the form? ***

Re: please help to solve the problem: "Error message: Premature end of script headers"

2004-07-09 Thread Wiggins d Anconia
a server error, please contact the webmaster. " > > Please help me to solve this problem. > > PS. the path of the perl is correctly pointed. > Please use a real return address. This is an FAQ, perldoc -q 'Server Error' http://danconia.org -- To unsubscribe,

Re: please help to solve the problem: "Error message: Premature end of script headers"

2004-07-09 Thread Sean Davis
or, please contact the webmaster. " > > Please help me to solve this problem. > > PS. the path of the perl is correctly pointed. > > Thanks a lot! > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

please help to solve the problem: "Error message: Premature end of script headers"

2004-07-09 Thread nobody
lease help me to solve this problem. PS. the path of the perl is correctly pointed. Thanks a lot! -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: foreach problem

2004-05-21 Thread Ron B
Thanks. I modified the while loop to fit my purpose. Sami Panula (aka Ron B) Bob Showalter wrote: Ron B wrote: My problem is how to print the next line after the line that includes BLAH. So I want to print lines including BLAH keyword and when BLAH is found the next line after it. #!/usr/bin

RE: foreach problem

2004-05-21 Thread Bob Showalter
Ron B wrote: > My problem is how to print the next line after the line that > includes BLAH. So I want to print lines including BLAH keyword and > when BLAH is found the next line after it. > > #!/usr/bin/perl > # print lines wich include BLAH keyword > print "C

foreach problem

2004-05-21 Thread Ron B
I'm working with very simple viewer code and here's a working snippet of it. My problem is how to print the next line after the line that includes BLAH. So I want to print lines including BLAH keyword and when BLAH is found the next line after it. The next line carries additional in

Re: Unique problem using checkbox in Perl

2004-03-25 Thread Wiggins d Anconia
> Hi, > >I am using the Perl CGI module to generate HTML form elements. One of these elements is a > checkbox. Following is my definition of this checkbox > >print $q->checkbox(-name=>'want_media', > -checked=>'checked&

Unique problem using checkbox in Perl

2004-03-25 Thread Kasturirangan Rangaswamy
Hi, I am using the Perl CGI module to generate HTML form elements. One of these elements is a checkbox. Following is my definition of this checkbox print $q->checkbox(-name=>'want_media', -checked=>'checked'); The problem is, when the

Re: Image Magick problem

2004-03-09 Thread zsdc
Sawsan Sarandah wrote: I upgraded my linux box from RH7 to RH8 and that upgraded PERL from 5.6 to 5.8. Now, Perl gives the following error when my script tries to run some Perl Magick stuff: Can't locate Image/Magick.pm in @INC (@INC contains: [...] Can someone familiar with the PERL INC array, I

Image Magick problem

2004-03-07 Thread Sawsan Sarandah
I upgraded my linux box from RH7 to RH8 and that upgraded PERL from 5.6 to 5.8. Now, Perl gives the following error when my script tries to run some Perl Magick stuff: Can't locate Image/Magick.pm in @INC (@INC contains: /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/pe

Re: a problem of perl+oracle+apache

2004-03-07 Thread Andrew Gaffney
李 冰 wrote: > I writed a perl script as below, but it can't work well with apache. > when i use web-broswer to visit it, there is nothing display. can > someone tell me why? > > #!/usr/bin/perl > > print "Content-type: text/html\n\n"; The above line is what pops out at me. I believe each of tho

a problem of perl+oracle+apache

2004-03-07 Thread 李 冰
I writed a perl script as below, but it can't work well with apache. when i use web-broswer to visit it, there is nothing display. can someone tell me why? #!/usr/bin/perl print "Content-type: text/html\n\n"; use DBI; $dbh=DBI->connect("dbi:Oracle:demo", "lb1", "libing71") or die "Can't connec

Re: Problem using hidden variables

2004-03-06 Thread zsdc
Kasturirangan Rangaswamy wrote: I have a perl program that has an include directive calling another Perl program in it. The structure is somewhat as follows first.pl -- #!/usr/local/bin/perl require "second.pl" $q = new CGI; print $q->hidden(-name='first', value='1'); second($q); End of f

Problem using hidden variables

2004-03-05 Thread Kasturirangan Rangaswamy
27;); second($q); End of first.pl second.pl -- #!/usr/local/bin/perl sub second{ use CGI; my ($q) = @_; my $first = $q->param('first'); print $q->hidden(-name='second', value=$first); // This does NOT WORK print $first; // This WORKS!!! } End of second.pl -

  1   2   3   4   5   >