Re: Questions about CGI

2018-06-06 Thread Jim Gibson
> On Jun 6, 2018, at 2:16 PM, Ahmad Bilal wrote: > > Ok, I went over to previously answered questions under the cgi tag here on > stackoverflow. This message was posted to the Perl Beginners list, so you are not at Stackoverflow any more. > > This seems to be the most

Questions about CGI

2018-06-06 Thread Ahmad Bilal
Ok, I went over to previously answered questions under the cgi tag here on stackoverflow. This seems to be the most voted one: What is Common Gateway Interface (CGI)? <https://stackoverflow.com/questions/2089271/what-is-common-gateway-interface-cgi> But it still doesn't clear a few th

Re: carp and cgi warnings

2016-02-20 Thread lee
>>> minimal >>>> code that generates them? >>> Something like this gives you warnings in apaches error.log: >>> >>> >>> #!/usr/bin/perl >>> # >>> use strict; >>> use warnings; >>> use autodie; >>> >&

Re: carp and cgi warnings

2016-02-13 Thread Uri Guttman
# use strict; use warnings; use autodie; use CGI;# qw(:standard); [...] The warning says that CGI will be removed from perl and that I should install it from cpan. I don't want to install things from cpan but the package management of the distribution to take ca

Re: carp and cgi warnings

2016-02-13 Thread Uri Guttman
CGI;# qw(:standard); [...] The warning says that CGI will be removed from perl and that I should install it from cpan. I don't want to install things from cpan but the package management of the distribution to take care of things because I don't want to do t

Re: carp and cgi warnings

2016-02-13 Thread lee
Nathan Hilterbrand writes: > On 02/13/2016 07:33 AM, lee wrote: >> Hi, >> >> is there a way to disable the annoying warnings about carp and cgi which >> cgi programs write to the web-server's log file in a general way rather >> than per program? Same goes

Re: carp and cgi warnings

2016-02-13 Thread lee
Brock Wilcox writes: > Greetings! > > Could you give an example of these warnings, and even better some minimal > code that generates them? Something like this gives you warnings in apaches error.log: #!/usr/bin/perl # use strict; use warnings; use autod

Re: carp and cgi warnings

2016-02-13 Thread Nathan Hilterbrand
On 02/13/2016 07:33 AM, lee wrote: Hi, is there a way to disable the annoying warnings about carp and cgi which cgi programs write to the web-server's log file in a general way rather than per program? Same goes for smartmatch warnings. The log file is overloaded with these useless mes

Re: carp and cgi warnings

2016-02-13 Thread Brock Wilcox
Greetings! Could you give an example of these warnings, and even better some minimal code that generates them? Thanks, --Brock On Feb 13, 2016 8:19 AM, "lee" wrote: > Hi, > > is there a way to disable the annoying warnings about carp and cgi which > cgi programs write t

carp and cgi warnings

2016-02-13 Thread lee
Hi, is there a way to disable the annoying warnings about carp and cgi which cgi programs write to the web-server's log file in a general way rather than per program? Same goes for smartmatch warnings. The log file is overloaded with these useless messages, which makes it difficult to

Re: [perl #127353] CGI documentation, start_html missing

2016-01-25 Thread frederik
owever, I don't like to leave something hanging. I don't know if just Cc'ing beginners@perl.org will work? (I'm not subscribed) > On Fri Jan 22 22:58:28 2016, frede...@ofb.net wrote: > > Thanks for the reply. > > > > I hope that a compatible version of CGI

CGI::formbuilder

2016-01-22 Thread lee
Hi, how do I arrange two (text) input fields side by side rather than one underneath the other? How do I automatically set the cursor into a particular field when the form is loaded so that keyboard input is entered into that field without the user having to select the field manually first? --

Re: At wits end CGI

2014-12-03 Thread Patton, Billy N
CGI::Application.pm is version 4.5 Somehow I’ve managed to move beyond this problem. Probably because I dumped perlbrew. I’m now getting a time out. With traces and multiple debug statements I’m getting to this location for the time out: sub AUTOLOAD { my($constname); ($constname

Re: CGI::Application::Plugin::TT

2014-11-13 Thread Andy Bach
On Wed, Nov 12, 2014 at 9:17 AM, Patton, Billy N wrote: > perl -MTemplate -e 1 It doesn't do anything except check that the module "Template" is available via the standard include path (see (capital V): perl -V for the @INC array of paths) "-e 1" is just a script of one char, the digit one, wh

Re: CGI::Application::Plugin::TT

2014-11-13 Thread Patton, Billy N
Doing the perlbrew thing now. perl -MTemplate -e 1 returned nothing But I did a sudo cpan Template and it told me it was up to date. Hopefully this perlbrew will help things out. thanks for the info. On Nov 12, 2014, at 8:50 AM, John SJ Anderson mailto:geneh...@genehack.org>> wrote: perl -MTempla

Re: CGI::Application::Plugin::TT

2014-11-12 Thread John SJ Anderson
On Wed, Nov 12, 2014 at 4:54 AM, Patton, Billy N wrote: > I’ve , mistakenly, updated to Mac OS 10.10 Yosemite. > That completely caused my app to fail in Apache 2.4. > Looks like it might be a version problem for TT.pm TT.pm is really 'Template.pm'. Are you sure the Perl you're using has it insta

Re: CGI::Application::Plugin::TT

2014-11-12 Thread SSC_perl
On Nov 12, 2014, at 4:54 AM, Patton, Billy N wrote: > I’ve , mistakenly, updated to Mac OS 10.10 Yosemite. > That completely caused my app to fail in Apache 2.4. And that's one of the many reasons I'm not updating my MacBook. ;) You really have too try Perlbrew

CGI::Application::Plugin::TT

2014-11-12 Thread Patton, Billy N
error I’m getting is : Can't locate object method "new" via package "Template" at /Library/Perl/5.18/CGI/Application/Plugin/TT.pm line 60. TT.pm snippett : use Template 2.0; ... # Get a Template Toolkit object. The same object # will be returned everytime this meth

Re: Perl CGI-html quotation marks

2014-07-04 Thread Shlomi Fish
Hi all, thanks for helping James (= the original poster). On Fri, 04 Jul 2014 11:56:05 -0400 Uri Guttman wrote: > On 07/04/2014 07:18 AM, James Kerwin wrote: > > Hello again, > > > > Apologies for the delay. I shut my laptop in frustration for the night > > yesterday. > > > > Here is a chunk of

Re: Perl CGI-html quotation marks

2014-07-04 Thread Uri Guttman
On 07/04/2014 07:18 AM, James Kerwin wrote: Hello again, Apologies for the delay. I shut my laptop in frustration for the night yesterday. Here is a chunk of the code: my $html2 = '/Results.tar.gz"> Download Files Click the button below to View your alignment in JBrowse Viewer http://bioinf6.b

Re: Perl CGI-html quotation marks

2014-07-04 Thread Sam
On 07/04/2014 12:41 AM, Shaji Kalidasan wrote: Here's one way to do it print << "BUTTON"; http://www.example.com')"> BUTTON or: print qq{http://www.example.com')">}; -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://l

Re: Perl CGI-html quotation marks

2014-07-04 Thread James Kerwin
t I hadn't closed the button THING with a ">". Apparently with that it's able to handle the single quotation marks. What a fool! Thanks, James. On Thu, Jul 3, 2014 at 5:23 PM, Uri Guttman wrote: > On 07/03/2014 12:16 PM, James Kerwin wrote: > >> Hello a

Re: Perl CGI-html quotation marks

2014-07-03 Thread Shaji Kalidasan
Here's one way to do it print << "BUTTON"; http://www.example.com')"> BUTTON On Thu, Jul 3, 2014 at 9:53 PM, Uri Guttman wrote: > On 07/03/2014 12:16 PM, James Kerwin wrote: > >> Hello all, >> >> I'm currently using Perl CGI to

Re: Perl CGI-html quotation marks

2014-07-03 Thread Uri Guttman
On 07/03/2014 12:16 PM, James Kerwin wrote: Hello all, I'm currently using Perl CGI to generate a "Results" webpage. This results webpage specifies unique directories generated within the script and print these in between the blocks of html so various download and display bu

Perl CGI-html quotation marks

2014-07-03 Thread James Kerwin
Hello all, I'm currently using Perl CGI to generate a "Results" webpage. This results webpage specifies unique directories generated within the script and print these in between the blocks of html so various download and display buttons work. My problem is that I'm using a b

Re: CGI script produces blank screen

2014-06-28 Thread SSC_perl
> Perhaps some module on which the script depends is not available/installed on > that server. But yes.. looking into the web server error log should help. > > > On 28 June 2014 08:35, John SJ Anderson wrote: > On Fri, Jun 27, 2014 at 7:34 PM, SSC_perl wrote: > > Any input would be gr

Re: CGI script produces blank screen

2014-06-28 Thread Ahmad Bilal
Perhaps some module on which the script depends is not available/installed on that server. But yes.. looking into the web server error log should help. On 28 June 2014 08:35, John SJ Anderson wrote: > On Fri, Jun 27, 2014 at 7:34 PM, SSC_perl wrote: > > Any input would be greatly appre

Re: CGI script produces blank screen

2014-06-27 Thread John SJ Anderson
On Fri, Jun 27, 2014 at 7:34 PM, SSC_perl wrote: > Any input would be greatly appreciated! Look in the web server error log. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

CGI script produces blank screen

2014-06-27 Thread SSC_perl
What kind of tests can I do to see why it's acting up on one server and not another? I'm already running with warnings and CGI::Carp, but without any output, I'm at a loss as what to try next. Any input would be greatly appreciated! Thanks, Frank http://www.surfs

Re: Wanted: Help with DBI/CGI in Windows 8.1/IIS

2014-06-26 Thread Robert Wohlfarth
On Thu, Jun 26, 2014 at 1:04 AM, Bruce Ferrell wrote: > On 06/25/2014 09:52 PM, Bruce Ferrell wrote: > >> On 06/25/2014 07:53 PM, siegfr...@heintze.com wrote: >> >>> use DBI; >>> use strict; >>> use warnings; >>> use POSIX; >>>

Re: Wanted: Help with DBI/CGI in Windows 8.1/IIS

2014-06-25 Thread Bruce Ferrell
ge? Thanks Siegfried use DBI; use strict; use warnings; use POSIX; use CGI qw(:standard); use CGI::Cookie; #my $dbh = DBI->connect("dbi:ODBC:driver=microsoft access driver (*.mdb, *.accdb);dbq=c:\\inetpub\\wwwroot\\Nwind.accdb"); # $dbh->{LongReadLen} = 66000; # $dbh->{LongTru

Re: Wanted: Help with DBI/CGI in Windows 8.1/IIS

2014-06-25 Thread Bruce Ferrell
e warnings; use POSIX; use CGI qw(:standard); use CGI::Cookie; #my $dbh = DBI->connect("dbi:ODBC:driver=microsoft access driver (*.mdb, *.accdb);dbq=c:\\inetpub\\wwwroot\\Nwind.accdb"); # $dbh->{LongReadLen} = 66000; # $dbh->{LongTruncOk} = 0; # my $stmt="SELECT * FROM Cus

Wanted: Help with DBI/CGI in Windows 8.1/IIS

2014-06-25 Thread siegfried
aracter in column one and run it in IIS, internet explorer times out and complains about a bad header being returned. Can someone help me so I can incorporate DBI and microsoft access in my web page? Thanks Siegfried use DBI; use strict; use warnings; use POSIX; use CGI qw(:standard); use CGI::C

Re: bash to perl for cgi

2014-06-18 Thread Hal Wigoda
It may need to be owned by apache or httpd. Whoever is running httpd. On Wed, Jun 18, 2014 at 11:08 AM, Philippe Rousselot wrote: > Le 18/06/2014 02:46, Goke Aruna a écrit : > > When you run the scripts from the cli, what do you get on your screen? > What about Apache configuratio

Re: bash to perl for cgi

2014-06-18 Thread Philippe Rousselot
Le 18/06/2014 02:46, Goke Aruna a écrit : When you run the scripts from the cli, what do you get on your screen? What about Apache configuration is cgi script executable. What permission do you have on your script? Hope those questions can give you a guide. Hi thanks for the answer

Re: bash to perl for cgi

2014-06-17 Thread Goke Aruna
When you run the scripts from the cli, what do you get on your screen? What about Apache configuration is cgi script executable. What permission do you have on your script? Hope those questions can give you a guide. Regards On Jun 17, 2014 3:00 PM, "Jim Gibson" wrote: > >

Re: bash to perl for cgi

2014-06-17 Thread Jim Gibson
On Jun 17, 2014, at 1:10 AM, Philippe Rousselot wrote: > Hi, > > I know nothing about perl and I have a problem with a cgi script for a > website called geneweb (genealogy stuff). > > I moved from one web site to another and now the site does not work and give > m

bash to perl for cgi

2014-06-17 Thread Philippe Rousselot
Hi, I know nothing about perl and I have a problem with a cgi script for a website called geneweb (genealogy stuff). I moved from one web site to another and now the site does not work and give me a 500 error message. cgi-bin and a perl script work fine. Here is the script I used to test

Re: Running older cgi scripts on nginx

2013-11-07 Thread Jim Gibson
On Nov 7, 2013, at 3:22 PM, Angela Barone wrote: > Hello, > > I've set up a new cloud account to get familiar with nginx and I'd like > to know if it's possible to run an older cgi perl script, and if so, how > would I go about doing that? I think I read s

Running older cgi scripts on nginx

2013-11-07 Thread Angela Barone
Hello, I've set up a new cloud account to get familiar with nginx and I'd like to know if it's possible to run an older cgi perl script, and if so, how would I go about doing that? I think I read somewhere that it could be done with Plack, but I can't find any in

Re: BEGIN Block in CGI Script

2013-01-28 Thread Mike Flannigan
Thank you. On 1/28/2013 3:07 PM, Shawn Corey wrote: The attached CGI is useful for determining what a script's environment is.

Re: BEGIN Block in CGI Script

2013-01-27 Thread Shawn H Corey
On Sun, 27 Jan 2013 12:30:17 -0600 Mike Flannigan wrote: > That @INC data is apparently from the website domain. The attached CGI is useful for determining what a script's environment is. -- Don't stop where the ink does. Shawn env.cgi Description: Binary data -- To u

Re: BEGIN Block in CGI Script

2013-01-27 Thread Mike Flannigan
Thanks so much for the quick response. I appreciate it. Of course I am putting this cgi file on my website domain and running it there, so in a way it is running on Unix. It is running that code, but whether it is working or not is not clear to me. At the beginning of the code @INC is: /usr

Re: BEGIN Block in CGI Script

2013-01-27 Thread Shawn H Corey
On Sun, 27 Jan 2013 10:30:38 -0600 Mike Flannigan wrote: > > I have written some CGI applications that start > with this code: > > > BEGIN { > my $homedir = ( getpwuid($>) )[7]; > my @user_include; > foreach my $path (@INC) { > i

Re: BEGIN Block in CGI Script

2013-01-27 Thread Ken Slater
On Sun, Jan 27, 2013 at 11:30 AM, Mike Flannigan wrote: > > I have written some CGI applications that start > with this code: > > > BEGIN { > my $homedir = ( getpwuid($>) )[7]; > my @user_include; > foreach my $path (@INC) { > i

BEGIN Block in CGI Script

2013-01-27 Thread Mike Flannigan
I have written some CGI applications that start with this code: BEGIN { my $homedir = ( getpwuid($>) )[7]; my @user_include; foreach my $path (@INC) { if ( -d $homedir . '/perl' . $path ) { push @user_include, $homedir . &#

Re: Mojolicious as replacement for cgi?

2013-01-10 Thread Manolis Tzanidakis
On Thu (10/01/13), kavita kulkarni wrote: > Hello, > Is there any simple documentation/book/link besides mojo-lite/CPAN online > documentation that will help me to understand the OO Perl programming and > web based perl programming? > > I am naive in Perl & OO progamming and have to get quickly st

Re: Mojolicious as replacement for cgi?

2013-01-10 Thread Shlomi Fish
ially the ones at: * http://perl-begin.org/topics/object-oriented/ * http://perl-begin.org/tutorials/ * http://perl-begin.org/uses/web/ Regards, Shlomi Fish > Regards, > Kavita :-) > > > On Wed, Jan 9, 2013 at 6:39 PM, Manolis Tzanidakis > wrote: > > > On Wed (0

Re: Mojolicious as replacement for cgi?

2013-01-09 Thread kavita kulkarni
ards, Kavita :-) On Wed, Jan 9, 2013 at 6:39 PM, Manolis Tzanidakis wrote: > On Wed (09/01/13), kavita kulkarni wrote: > > Hello, > > > > I am having a cgi script to present DB monitoring results. > > Now, I am thinking about migrating that script into mojo (Mojolocious)

Re: Mojolicious as replacement for cgi?

2013-01-09 Thread kavita kulkarni
Thanks Manolis for your reply. However, I am not supposed to upgrade my perl. Regards, Kavita :-) On Wed, Jan 9, 2013 at 6:39 PM, Manolis Tzanidakis wrote: > On Wed (09/01/13), kavita kulkarni wrote: > > Hello, > > > > I am having a cgi script to present DB monitoring r

Re: Mojolicious as replacement for cgi?

2013-01-09 Thread Manolis Tzanidakis
On Wed (09/01/13), kavita kulkarni wrote: > Hello, > > I am having a cgi script to present DB monitoring results. > Now, I am thinking about migrating that script into mojo (Mojolocious) and > I have below queries in my mind: > > 1. What's advantage of using mojo ove

Mojolicious as replacement for cgi?

2013-01-09 Thread kavita kulkarni
Hello, I am having a cgi script to present DB monitoring results. Now, I am thinking about migrating that script into mojo (Mojolocious) and I have below queries in my mind: 1. What's advantage of using mojo over cgi? 2. Is mojolocious ready to deploy in production? if so, which version

Re: Is CGI module has bug for Win7?

2012-10-27 Thread Praveen Kumar
Thanks all of you for your suggestions, yesterday late evening I figured it out about returning "\r\n" . I also checked after setting input record separator($/) variable to \r\n which was also working. I like the idea about setting binmode. Thanks again. -- Praveen Kumar http://fedoraproject.org

Re: Is CGI module has bug for Win7?

2012-10-26 Thread Charles DeRykus
riage return) - Perl normally does that correctly by deciding > which OS you're on. > > Hmm: > http://www.perlmonks.org/bare/?node_id=55540 > > Seems to say that Win32 CGI.pm sets binmode on STDIN (and STDERR, > STDOUT). Does adding: > $/ = "\r\n"; > > af

Re: Is CGI module has bug for Win7?

2012-10-26 Thread Andy Bach
d=55540 Seems to say that Win32 CGI.pm sets binmode on STDIN (and STDERR, STDOUT). Does adding: $/ = "\r\n"; after use CGI; make a difference? -- a Andy Bach, afb...@gmail.com 608 658-1890 cell 608 261-5738 wk -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For addi

Re: Is CGI module has bug for Win7?

2012-10-26 Thread Ken Slater
On Fri, Oct 26, 2012 at 6:27 AM, Praveen Kumar wrote: > Hi folks, > > Check out below code, is this as expected or kind of bug? > > > use strict; > use warnings; > use CGI; > > my $product_id="484f2faee9334559a1a72b4cdc056818"; > prin

Re: Is CGI module has bug for Win7?

2012-10-26 Thread Shlomi Fish
Hi Praveen, On Fri, 26 Oct 2012 15:57:36 +0530 Praveen Kumar wrote: > Hi folks, > > Check out below code, is this as expected or kind of bug? > > > use strict; > use warnings; > use CGI; > > my $product_id="484f2faee9334559a1a72b4cdc056818"; > prin

Is CGI module has bug for Win7?

2012-10-26 Thread Praveen Kumar
Hi folks, Check out below code, is this as expected or kind of bug? use strict; use warnings; use CGI; my $product_id="484f2faee9334559a1a72b4cdc056818"; print "Enter NT Login ID : "; chomp (my $user = );#praveenku...@gmail.com print "Enter NT Password

Re: how to set session variable (not session cookie) using perl CGI

2012-08-07 Thread Rajeev Prasad
Thank you Ron and David. - Original Message - From: Ron Bergin To: Rajeev Prasad Cc: perl list Sent: Tuesday, August 7, 2012 9:36 PM Subject: Re: how to set session variable (not session cookie) using perl CGI -- Rajeev Prasad wrote: > I am using CGI.pm on my website, bu

Re: how to set session variable (not session cookie) using perl CGI

2012-08-07 Thread Ron Bergin
generate page using tt >   > 2. another related issue is: How do I send a redirect URL to the browser > client, based on some conditions in the logic? >   > ty. > Rajeev > > -- http://search.cpan.org/~markstos/CGI-Session-4.48/lib/CGI/Session.pm --- Ron Bergin --

Re: how to set session variable (not session cookie) using perl CGI

2012-08-07 Thread David Christensen
On 08/07/12 14:40, Rajeev Prasad wrote: I am using CGI.pm on my website, but I generate my pages using TT (template Toolkit). I have few questions: 0. how to have a session variable (not a session cookie)? If I do not want to use cookie, do i have to store session data in a temp file on server

how to set session variable (not session cookie) using perl CGI

2012-08-07 Thread Rajeev Prasad
I am using CGI.pm on my website, but I generate my pages using TT (template Toolkit).   I have few questions:   0. how to have a session variable (not a session cookie)? If I do not want to use cookie, do i have to store session data in a temp file on server and check it with each page load?    

Re: net::openssh error in CGI: Invalid or bad combination of options ('key_path')

2012-06-28 Thread Rajeev Prasad
, June 28, 2012 2:36 PM Subject: Re: net::openssh error in CGI: Invalid or bad combination of options ('key_path') - Original Message - From: Shlomi Fish To: Rajeev Prasad Cc: perl list Sent: Thursday, June 28, 2012 12:46 PM Subject: Re: net::openssh error in CGI: Inva

Re: net::openssh error in CGI: Invalid or bad combination of options ('key_path')

2012-06-28 Thread Rajeev Prasad
- Original Message - From: Shlomi Fish To: Rajeev Prasad Cc: perl list Sent: Thursday, June 28, 2012 12:46 PM Subject: Re: net::openssh error in CGI: Invalid or bad combination of options ('key_path') Hi Rajeev, On Thu, 28 Jun 2012 10:00:08 -0700 (PDT) Rajeev Pra

Re: net::openssh error in CGI: Invalid or bad combination of options ('key_path')

2012-06-28 Thread Shlomi Fish
Hi Rajeev, On Thu, 28 Jun 2012 10:00:08 -0700 (PDT) Rajeev Prasad wrote: > hello can anyone help? > > following is failing: > > my $ssh = Net::OpenSSH->new($host, >         user => "abc123", >         ctl_dir => "/home/openssh_lib_home", >         key_path => "/home/openssh_lib_home/.ssh/", >

net::openssh error in CGI: Invalid or bad combination of options ('key_path')

2012-06-28 Thread Rajeev Prasad
hello can anyone help? following is failing: my $ssh = Net::OpenSSH->new($host,         user => "abc123",         ctl_dir => "/home/openssh_lib_home",         key_path => "/home/openssh_lib_home/.ssh/",         master_opts => [-o => 'StrictHostKeyChecking=no',                         -o => 'Conne

Re: Net::OpenSSH failing in CGI

2012-06-27 Thread Rajeev Prasad
 -o => 'ConnectTimeout 60'],         ); # ls -l /home|grep open drwxrwsr-x  2 www-data www-data 4096 2012-06-27 21:54 openssh_lib_home - Original Message - From: Rajeev Prasad To: perl list Cc: Sent: Wednesday, June 27, 2012 4:13 PM Subject: Net::OpenSSH failing in CGI

Net::OpenSSH failing in CGI

2012-06-27 Thread Rajeev Prasad
my $ssh = Net::OpenSSH->new($host,         user => "abc123",         ctl_dir => "/var/www/mysite.com/www/openssh_lib_home/"         ); ssh is not happening, when i catch the error, i get below: error:  ctl_dir /var/www/mysite.com/www/openssh_lib_home/ is not secure folder is : $ ls -l /var/ww

Re: CGI setuid programs

2012-05-22 Thread Marek Nožka
On Fri, 11 May 2012 17:25:35 -0300 Tessio Fechine wrote to beginners@perl.org: > Hello, > Everywhere I read about cgi setuid programs says that it is wrong and must > never be done, > but nobody says how to circumvent the need of it. > In my case, I need to read a password from a

Re: Closing CGI/DB connections

2012-05-21 Thread jm
i have a whole collection of scripts that does this... at home. it's been quite a while but i believe what you want is $dbh->commit; $dbh->disconnect' to close a particular connection. hopefully someone can verify/correct http://search.cpan.org/~timb/DBI-1.620/DBI.pm will document all the detail

Closing CGI/DB connections

2012-05-21 Thread Mark Haney
I know this will sound incredibly stupid and n00bish, but I've encountered something I've never dealt with before. I'm setting up a perl based web application (this is my first web app, not my first perl) and have an issue with multiple DBI calls in a page and how I handle those calls. For th

Re: CGI setuid programs

2012-05-11 Thread David Christensen
On 05/11/2012 01:25 PM, Tessio Fechine wrote: Everywhere I read about cgi setuid programs says that it is wrong and must never be done, but nobody says how to circumvent the need of it. In my case, I need to read a password from a protected file (read only, owned by root) to connect to a

CGI setuid programs

2012-05-11 Thread Tessio Fechine
Hello, Everywhere I read about cgi setuid programs says that it is wrong and must never be done, but nobody says how to circumvent the need of it. In my case, I need to read a password from a protected file (read only, owned by root) to connect to a database. How can I do this without running

Re: PERL CGI, HTML and PHP

2012-04-26 Thread Lesley Binks
dn't explain myself quite well enough. Let me try > again. I've got a web app I'm building for the company I work for. > It was initially started by an intern in pure perl and was more or > less nothing but some CGI to dump data into a DB and pull data out > of that DB.

Re: PERL CGI, HTML and PHP

2012-04-26 Thread Matthew K
Matt - Original Message - > From: Mark Haney > To: beginners@perl.org > Cc: > Sent: Thursday, April 26, 2012 12:19 PM > Subject: Re: PERL CGI, HTML and PHP > > > Well, I kind of agree with you.  It's still a scripting language. Regardless > of its function. (At l

Re: PERL CGI, HTML and PHP

2012-04-26 Thread Madrigal, Juan A
Just throwing in my two cents: Javascript can run in the backend as well. Take a look at Node.js; http://nodejs.org/ As far as perl on the web end, look into perldancer (http://perldancer.org/), mojolicious (http://mojolicio.us/) or catalyst (http://www.catalystframework.org/) They are all moder

Re: PERL CGI, HTML and PHP

2012-04-26 Thread Mark Haney
On 04/26/2012 08:27 AM, Bob McConnell wrote: From: Mark Haney This exposes the source of your confusion. Javascript is executed in the browser, while Perl, PHP, ASP and JSP are all executed on the server. So JS simply complements all of the others. The biggest issue is that you cannot dep

Re: PERL CGI, HTML and PHP

2012-04-26 Thread Mark Haney
It was initially started by an intern in pure perl and was more or less nothing but some CGI to dump data into a DB and pull data out of that DB. The perl code generated basic HTML tables and output and nothing else. Keep in mind here that I've used perl quite a bit, but /never/ in the

RE: PERL CGI, HTML and PHP

2012-04-26 Thread Bob McConnell
> From: Mark Haney > > I understand the desire to 'keep with one scripting language', but what > I don't understand is why take a stand like that, yet continue to use > javascript with PHP and ASP pages. Seems to me, that in the right > instance combining the two can be very powerful. Personally

Re: PERL CGI, HTML and PHP

2012-04-26 Thread Michael Rasmussen
> reports on various metrics for the company management. My issue arises > from the fact that I've had to move from a pure perl web interface to > PHP for it's additional feature set. Until now, all my output has been > generated by perl CGI scripts and output to STDOUT

Re: PERL CGI, HTML and PHP

2012-04-25 Thread Octavian Rasnita
Hi, From: "Mark Haney" > As for the feature set I mentioned, I've been running into limitations > with using perl to populate dropdown boxes dynamically and such. > Granted, I'm sure there's a nice neat way to do it, but I couldn't find > anything on the interwebs to show me how, and since I k

Re: PERL CGI, HTML and PHP

2012-04-25 Thread Uri Guttman
early matt's crap scripts and all perl/cgi sites everywhere. uri -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: PERL CGI, HTML and PHP

2012-04-25 Thread Dr.Ruud
On 2012-04-25 21:53, Shawn H Corey wrote: On 12-04-25 03:18 PM, Mark Haney wrote: FWIW, I've never seen an entire website built completely in perl. Doesn't mean there aren't any, but they must be very few and far between. (No offense to the perl crowd, just an observation.) Here's a few: am

Re: PERL CGI, HTML and PHP

2012-04-25 Thread Brendan Gilroy
On Wed, Apr 25, 2012 at 3:18 PM, Mark Haney wrote: > On 04/25/2012 02:54 PM, Matthew K wrote: > >> Mark, >> >> - Original Message - >> >>> From: Mark Haney >>> To: Perl Beginners >>> Cc: >>> Sent: Wednesday, April 25,

Re: PERL CGI, HTML and PHP

2012-04-25 Thread Shawn H Corey
On 12-04-25 03:18 PM, Mark Haney wrote: FWIW, I've never seen an entire website built completely in perl. Doesn't mean there aren't any, but they must be very few and far between. (No offense to the perl crowd, just an observation.) Here's a few: amazon.com craiglist.com livejournal.com slash

Re: PERL CGI, HTML and PHP

2012-04-25 Thread Mark Haney
On 04/25/2012 02:54 PM, Matthew K wrote: Mark, - Original Message - From: Mark Haney To: Perl Beginners Cc: Sent: Wednesday, April 25, 2012 11:51 AM Subject: PERL CGI, HTML and PHP I've got, what I hope is a fairly simple problem that someone can point me to the best (or

Re: PERL CGI, HTML and PHP

2012-04-25 Thread Matthew K
Mark, - Original Message - > From: Mark Haney > To: Perl Beginners  > Cc:  > Sent: Wednesday, April 25, 2012 11:51 AM > Subject: PERL CGI, HTML and PHP >  > I've got, what I hope is a fairly simple problem that someone can point me  > to the best (or best pr

PERL CGI, HTML and PHP

2012-04-25 Thread Mark Haney
fact that I've had to move from a pure perl web interface to PHP for it's additional feature set. Until now, all my output has been generated by perl CGI scripts and output to STDOUT directly, which is fine, but leaves the report rather sparse looking. (FTR, I'm no web designer,

Re: has anyone used perl CGI scripts with Hiawatha web server?

2012-03-04 Thread Shlomi Fish
Hi Rajeev, On Sat, 3 Mar 2012 19:56:52 -0800 (PST) Rajeev Prasad wrote: > Anyone has any experience to share about implementing perl CGI scripts > on Hiawatha web server? > According to http://en.wikipedia.org/wiki/Hiawatha_%28web_server%29 , the Hiawatha web-server supports CGI an

has anyone used perl CGI scripts with Hiawatha web server?

2012-03-03 Thread Rajeev Prasad
Anyone has any experience to share about implementing perl CGI scripts on Hiawatha web server? ty. R 

Re: Taint mode CGI problem

2011-11-12 Thread 'lesleyb'
er Scott > > > On Fri, 11 Nov 2011 19:08:18 -0300, Tessio Fechine wrote: > > > #!/usr/bin/perl -T -w > > > > > > use strict; > > > use CGI; > > > > > > $ENV{PATH} = '/var/www/cgi-bin/'; > > > my $exec = &#

Re: Taint mode CGI problem

2011-11-12 Thread Tessio Fechine
18 -0300, Tessio Fechine wrote: > > #!/usr/bin/perl -T -w > > > > use strict; > > use CGI; > > > > $ENV{PATH} = '/var/www/cgi-bin/'; > > my $exec = 'search.pl'; > > > > > > my $c = CGI->new(); > > print $c-&

Re: Taint mode CGI problem

2011-11-11 Thread Peter Scott
On Fri, 11 Nov 2011 19:08:18 -0300, Tessio Fechine wrote: > #!/usr/bin/perl -T -w > > use strict; > use CGI; > > $ENV{PATH} = '/var/www/cgi-bin/'; > my $exec = 'search.pl'; > > > my $c = CGI->new(); > print $c->header(), $c->sta

Taint mode CGI problem

2011-11-11 Thread Tessio Fechine
Hello, I have this CGI script: ---//--- #!/usr/bin/perl -T -w use strict; use CGI; $ENV{PATH} = '/var/www/cgi-bin/'; my $exec = 'search.pl'; my $c = CGI->new(); print $c->header(), $c->start_html(-title => "It's alive!\n"), "\n"; my

Re: running a shel script within a perl cgi script

2011-11-09 Thread David Christensen
On 11/09/2011 04:57 AM, Agnello George wrote: I am trying to run a shell script within a perl cgi script , however it is not getting executed . cat /vae/www/cg-bin/syscscript.pl my $openvpn = `ps aux |grep openvpn |grep -v grep`; unless ( $openvpn) { system(" /usr/sbin/openvpn /etc/op

Re: running a shel script within a perl cgi script

2011-11-09 Thread Luca Cappelletti
On Wed, Nov 9, 2011 at 13:57, Agnello George wrote: ... > my $openvpn = `ps aux |grep openvpn |grep -v grep`; > unless ( $openvpn) { > system(" /usr/sbin/openvpn /etc/openvpn/DC.ovpn "); > } > > - > cat > > do the httpd daemon permit you to run something outside it's own scope? I had similar p

running a shel script within a perl cgi script

2011-11-09 Thread Agnello George
Hi I am trying to run a shell script within a perl cgi script , however it is not getting executed . cat /vae/www/cg-bin/syscscript.pl : : my $openvpn = `ps aux |grep openvpn |grep -v grep`; unless ( $openvpn) { system(" /usr/sbin/openvpn /etc/openvpn/DC.ovpn "); } - cat When

Re: Determine http or https in CGI perl

2011-10-03 Thread Shlomi Fish
Hi Ram, On Tue, 4 Oct 2011 11:34:16 +0530 Ramprasad Prasad wrote: > In my cgi program .. I want to know if the user is accessing via HTTP or > HTTPS. > > How can I do this ? > A quick Google search yielded this link: http://stackoverflow.com/questions/5223341/how-do-i-identi

Determine http or https in CGI perl

2011-10-03 Thread Ramprasad Prasad
In my cgi program .. I want to know if the user is accessing via HTTP or HTTPS. How can I do this ? -- Thanks Ram <http://www.netcore.co.in/> n <http://pragatee.com>

Re: How to get the multiselect select box or checkbox element values WITHOUT using CGI module

2011-10-02 Thread Rajeev Prasad
can not say no to you. i am using CGI::Simple now. i will be moving over to mod_perl later. - Original Message - From: Randal L. Schwartz To: Rajeev Prasad Cc: "beginners@perl.org" Sent: Saturday, October 1, 2011 7:06 AM Subject: Re: How to get the multiselect sel

  1   2   3   4   5   6   7   8   9   10   >