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 mo

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 things,

Re: carp and cgi warnings

2016-02-20 Thread lee
ld 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; >>

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 find

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" <l...@yagibdah.de> wrote: > Hi, > > is there a way to disable the annoying warnings about carp and cgi w

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 messages

Re: carp and cgi warnings

2016-02-13 Thread lee
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 care of things because I don't want

Re: carp and cgi warnings

2016-02-13 Thread lee
Nathan Hilterbrand <noset...@cotse.net> 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

Re: carp and cgi warnings

2016-02-13 Thread Uri Guttman
paches error.log: #!/usr/bin/perl # 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 mana

Re: carp and cgi warnings

2016-02-13 Thread Uri Guttman
t; 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 care of things bec

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 continues

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 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 geneh...@genehack.orgmailto:geneh...@genehack.org

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

2014-11-13 Thread Andy Bach
On Wed, Nov 12, 2014 at 9:17 AM, Patton, Billy N billy.pat...@h3net.com 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,

CGI::Application::Plugin::TT

2014-11-12 Thread Patton, Billy N
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 method is called # during a request cycle

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 http://perlbrew.pl/.

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

2014-11-12 Thread John SJ Anderson
On Wed, Nov 12, 2014 at 4:54 AM, Patton, Billy N billy.pat...@h3net.com 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

Testing my CGI

2014-11-04 Thread Patton, Billy N
I’m using WWW::Mechanize for testing my CGI. I’m having trouble with the $mech-tick Here’s my code : ok($mech-form_name('cdr_format'),getting form cdr_format); print pAllFields = . $mech-value('pAllFields') . \n; 219- ok($mech-tick('pAllFields',1), 'Setting checkbox to native CDR format

Re: Testing my CGI

2014-11-04 Thread John SJ Anderson
billy.pat...@h3net.com wrote: I’m using WWW::Mechanize for testing my CGI. I’m having trouble with the $mech-tick Here’s my code : ok($mech-form_name('cdr_format'),getting form cdr_format); print pAllFields = . $mech-value('pAllFields') . \n; 219- ok($mech-tick('pAllFields',1), 'Setting

Re: cgi and inheritance

2014-10-08 Thread jbdetroit
I haven't seen any PErl code with -log- like that before. I've only seen code like that with = error(*). -Original Message- From: Patton, Billy billy.pat...@h3net.com Sent: Oct 6, 2014 9:33 AM To: beginners-cgi@perl.org beginners-cgi@perl.org Subject: cgi and inheritance I’ve recently

cgi and inheritance

2014-10-06 Thread Patton, Billy
I’ve recently inherited some code that hasn’t been touched in over 5 years. It’s all cgi and OOPerl. I’ve ran across this one statement that I don’t understand. $self-log-error(*) I know the self and I’ve traced the error to CGI::Application through inheritance. But it’s the -log- that has me

Re: cgi and inheritance

2014-10-06 Thread John SJ Anderson
On Mon, Oct 6, 2014 at 6:33 AM, Patton, Billy billy.pat...@h3net.com wrote: I’ve recently inherited some code that hasn’t been touched in over 5 years. It’s all cgi and OOPerl. I’ve ran across this one statement that I don’t understand. $self-log-error(*) That's calling the 'error()' method

Re: Perl CGI-html quotation marks

2014-07-04 Thread James Kerwin
! Thanks, James. On Thu, Jul 3, 2014 at 5:23 PM, Uri Guttman u...@stemsystems.com wrote: 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

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; input type=button value=Open Window onclick=window.open('http://www.example.com') BUTTON or: print qq{input type=button value=Open Window onclick=window.open('http://www.example.com')}; -- To

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 div style=text-align: center;button type=submitDownload Files/button/div p style=text-align:

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 u...@stemsystems.com 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

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 button to open a file

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 buttons work. My

Re: Perl CGI-html quotation marks

2014-07-03 Thread Shaji Kalidasan
Here's one way to do it print BUTTON; input type=button value=Open Window onclick=window.open(' http://www.example.com') BUTTON On Thu, Jul 3, 2014 at 9:53 PM, Uri Guttman u...@stemsystems.com wrote: On 07/03/2014 12:16 PM, James Kerwin wrote: Hello all, I'm currently using Perl CGI

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 geneh...@genehack.org wrote: On Fri, Jun 27, 2014 at 7:34 PM, SSC_perl p...@surfshopcart.com wrote:

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 geneh...@genehack.org wrote: On Fri, Jun 27, 2014 at 7:34 PM, SSC_perl p...@surfshopcart.com

CGI script produces blank screen

2014-06-27 Thread SSC_perl
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.surfshopcart.com/ Setting up shop has never been easier

Re: CGI script produces blank screen

2014-06-27 Thread John SJ Anderson
On Fri, Jun 27, 2014 at 7:34 PM, SSC_perl p...@surfshopcart.com 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/

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

2014-06-26 Thread Bruce Ferrell
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-{LongTruncOk} = 0; # my $stmt=SELECT * FROM

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 bferr...@baywinds.org 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; use CGI qw(:standard); use CGI::Cookie; #my $dbh = DBI-connect

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

2014-06-25 Thread siegfried
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::Cookie; #my

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

2014-06-25 Thread Bruce Ferrell
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 Customers; # my $sth = $dbh-prepare($stmt); # $sth

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-18 Thread Hal Wigoda
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 error message: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request

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: bash to perl for cgi

2014-06-17 Thread Jim Gibson
On Jun 17, 2014, at 1:10 AM, Philippe Rousselot rousse...@rousselot.org 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 me a 500

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 j...@gibson.org wrote

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 instructions on how

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 somewhere that it could be done

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.

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 . '/perl' . $path

Re: BEGIN Block in CGI Script

2013-01-27 Thread Ken Slater
On Sun, Jan 27, 2013 at 11:30 AM, Mike Flannigan mikef...@att.net wrote: 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

Re: BEGIN Block in CGI Script

2013-01-27 Thread Shawn H Corey
On Sun, 27 Jan 2013 10:30:38 -0600 Mike Flannigan mikef...@att.net wrote: 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

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 12:30:17 -0600 Mike Flannigan mikef...@att.net 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

Re: Mojolicious as replacement for cgi?

2013-01-10 Thread Shlomi Fish
-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 mtzanida...@gmail.comwrote: On Wed (09/01/13), kavita kulkarni wrote: Hello, I am having a cgi script

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 started

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 goes

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 over cgi? 2. Is mojolocious ready

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 mtzanida...@gmail.comwrote: On Wed (09/01/13), kavita kulkarni wrote: Hello, I am having a cgi script to present DB monitoring results

Re: Mojolicious as replacement for cgi?

2013-01-09 Thread kavita kulkarni
, Kavita :-) On Wed, Jan 9, 2013 at 6:39 PM, Manolis Tzanidakis mtzanida...@gmail.comwrote: 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

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

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? code use strict; use warnings; use CGI; my $product_id=484f2faee9334559a1a72b4cdc056818; print Enter NT Login ID : ; chomp (my $user = STDIN);#praveenku...@gmail.com print Enter NT Password : ; chomp (my $password

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 kumarpraveen.nit...@gmail.com wrote: Hi folks, Check out below code, is this as expected or kind of bug? code use strict; use warnings; use CGI; my $product_id=484f2faee9334559a1a72b4cdc056818; print Enter NT Login ID

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 kumarpraveen.nit...@gmail.com wrote: Hi folks, Check out below code, is this as expected or kind of bug? code use strict; use warnings; use CGI; my $product_id=484f2faee9334559a1a72b4cdc056818; print Enter NT Login ID : ; chomp (my $user

Re: Is CGI module has bug for Win7?

2012-10-26 Thread Andy Bach
=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 additional commands, e

Re: Is CGI module has bug for Win7?

2012-10-26 Thread Charles DeRykus
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; after use CGI; Or, just: binmode STDIN, :crlf; This is Perl's layer to implement DOS/Windows like CRLF

Re: cgi development environment

2012-09-19 Thread David Dorward
On 18 Sep 2012, at 13:34, Chris Stinemetz chrisstinem...@gmail.com wrote: I am very interested in cgi scripting. I have only used php for web development in the past. CGI or Perl? For a long time CGI with Perl was a popular combination so there are a lot of documents which conflate the two

Re: cgi development environment

2012-09-19 Thread Chris Stinemetz
I have my Perl cgi development environment all set-up. I actually wound up setting up an instance through Amazon AWS. Very cool service by Amazon. I am having issues with my first script and have hopes someone may be able to explain to me whey it isn't working correctly. The error is coming form

Re: cgi development environment

2012-09-19 Thread Mike Williams
: test2.cgi Bareword left not allowed while strict subs in use at The error message is a major clue. Try quotes around left /usr/lib/cgi-bin/test2.cgi line 7. Execution of /usr/lib/cgi-bin/test2.cgi aborted due to compilation errors. Premature end of script headers: test2.cgi 1 #!/usr/bin

Re: cgi development environment

2012-09-19 Thread Chris Stinemetz
-- To unsubscribe, e-mail: beginners-cgi-unsubscr...@perl.org For additional commands, e-mail: beginners-cgi-h...@perl.org http://learn.perl.org/

Re: cgi development environment

2012-09-19 Thread Shaun Fryer
Also check out http://search.cpan.org/~lds/CGI.pm-3.08/CGI/Carp.pm -- Shaun Fryer -- perl -e 'print chr for map{$_+=22}($ARGV[0])=~/(\d\d)/g' \ 52959394107588899482799210587992861082757785799222

cgi development environment

2012-09-18 Thread Chris Stinemetz
Hello list, I am very interested in cgi scripting. I have only used php for web development in the past. Would someone please let me know of any good tutorials to get windows based web development environment set up and get my feet wet? Thank you in advance, Chris -- To unsubscribe, e-mail

Re: cgi development environment

2012-09-18 Thread Mark Haney
On 09/18/2012 08:34 AM, Chris Stinemetz wrote: Hello list, I am very interested in cgi scripting. I have only used php for web development in the past. Would someone please let me know of any good tutorials to get windows based web development environment set up and get my feet wet? Thank you

Re: cgi development environment

2012-09-18 Thread David Christensen
On 09/18/12 05:34, Chris Stinemetz wrote: I am very interested in cgi scripting. I have only used php for web development in the past. Would someone please let me know of any good tutorials to get windows based web development environment set up and get my feet wet? http://www.google.com

Re: cgi development environment

2012-09-18 Thread Shaun Fryer
: I am very interested in cgi scripting. I have only used php for web development in the past. Would someone please let me know of any good tutorials to get windows based web development environment set up and get my feet wet? http://www.google.com/search?q=windows+cgi+howto http

Re: cgi development environment

2012-09-18 Thread Chris Stinemetz
On Tue, Sep 18, 2012 at 5:46 AM, Mark Haney ma...@abemblem.com wrote: On 09/18/2012 08:34 AM, Chris Stinemetz wrote: Hello list, I am very interested in cgi scripting. I have only used php for web development in the past. Would someone please let me know of any good tutorials to get windows

Re: cgi development environment

2012-09-18 Thread Shaun Fryer
-- On Tue, Sep 18, 2012 at 7:53 PM, Chris Stinemetz chrisstinem...@gmail.com wrote: On Tue, Sep 18, 2012 at 5:46 AM, Mark Haney ma...@abemblem.com wrote: On 09/18/2012 08:34 AM, Chris Stinemetz wrote: Hello list, I am very interested in cgi scripting. I have only used php for web development

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: 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

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

2012-08-07 Thread Ron Bergin
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 -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http

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 r...@i.frys.com To: Rajeev Prasad rp.ne...@yahoo.com Cc: perl list beginners@perl.org Sent: Tuesday, August 7, 2012 9:36 PM Subject: Re: how to set session variable (not session cookie) using perl CGI -- Rajeev Prasad

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 = 'ConnectTimeout

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 rp.ne...@yahoo.com 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/,  

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 shlo...@shlomifish.org To: Rajeev Prasad rp.ne...@yahoo.com Cc: perl list beginners@perl.org 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

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

2012-06-28 Thread Rajeev Prasad
...@shlomifish.org Cc: perl list beginners@perl.org Sent: Thursday, 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 shlo...@shlomifish.org To: Rajeev Prasad rp.ne...@yahoo.com Cc: perl list

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

Re: Net::OpenSSH failing in CGI

2012-06-27 Thread Rajeev Prasad
www-data www-data 4096 2012-06-27 21:54 openssh_lib_home - Original Message - From: Rajeev Prasad rp.ne...@yahoo.com To: perl list beginners@perl.org Cc: Sent: Wednesday, June 27, 2012 4:13 PM Subject: Net::OpenSSH failing in CGI my $ssh = Net::OpenSSH-new($host,         user

Re: Attach iCal event to an cgi mail

2012-06-11 Thread Peter Scott
/certificates/perl-programming.php -- Peter Scott http://www.perlmedic.com/ http://www.perldebugged.com/ http://www.informit.com/store/product.aspx?isbn=0137001274 http://www.oreillyschool.com/certificates/perl-programming.php -- To unsubscribe, e-mail: beginners-cgi-unsubscr...@perl.org

Re: Attach iCal event to an cgi mail

2012-06-08 Thread mstep
-cgi-unsubscr...@perl.org For additional commands, e-mail: beginners-cgi-h...@perl.org http://learn.perl.org/

Re: Attach iCal event to an cgi mail

2012-06-07 Thread Peter Scott
://www.perlmedic.com/ http://www.perldebugged.com/ http://www.informit.com/store/product.aspx?isbn=0137001274 http://www.oreillyschool.com/certificates/perl-programming.php -- To unsubscribe, e-mail: beginners-cgi-unsubscr...@perl.org For additional commands, e-mail: beginners-cgi-h...@perl.org

Attach iCal event to an cgi mail

2012-06-04 Thread Marek
: http://wiki.perl-community.de/Wissensbasis/SendmailAttachments use strict; use warnings; use MIME::Base64; my $file_path = /Users/you/Documents/webpages/cgi-bin/tmp; my $file_name = ical_summary.ics; open(M, |/usr/sbin/sendmail -t -oi) or die Can't open mailprogram: '/usr/sbin/sendmail'!\n

Re: CGI setuid programs

2012-05-22 Thread Marek Nožka
On Fri, 11 May 2012 17:25:35 -0300 Tessio Fechine oiss...@gmail.com 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

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

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 details

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: 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

Re: PERL CGI, HTML and PHP

2012-04-26 Thread Michael Rasmussen
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 directly, which is fine, but leaves the report

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 Mark Haney
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 context of actually building

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

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

Re: PERL CGI, HTML and PHP

2012-04-26 Thread Matthew K
: Mark Haney ma...@abemblem.com 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 least in my mind.) Still, despite all this, I'm

Re: PERL CGI, HTML and PHP

2012-04-26 Thread Lesley Binks
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. The perl code generated basic HTML tables and output and nothing else. Well this confuses me from

  1   2   3   4   5   6   7   8   9   10   >