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

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/

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 protected file (

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 database

Re: cgi or new stuff?

2011-02-05 Thread Octavian Rasnita
From: "Jim Green" > Hello, > I wrote simple cgi scripts before but want to go further, I want to > learn a little bit systematic web programming, I found catalyst and > ORMs, do you guys think with those I don't need to learn javascript, > ajax etc? Catalyst is a web framework that help you to d

Re: cgi or new stuff?

2011-02-04 Thread Brandon McCaig
On Fri, Feb 4, 2011 at 5:15 PM, Jim Green wrote: > Hello, > I wrote simple cgi scripts before but want to go further, I want to > learn a little bit systematic web programming, I found catalyst and > ORMs, do you guys think with those I don't need to learn javascript, > ajax etc? Disclaimer: I'm

Re: cgi or new stuff?

2011-02-04 Thread jbiskofski
eventually your webapps are going to need some type of interface functionality. something really basic can be, having a checkbox that selects all the checkboxes in a group. that kind of thing you can only do with javascript. catalyst is going to introduce a lot of new concepts to you if youre new t

Re: cgi sqlite error not able to write data in database

2010-07-24 Thread perl
On 07/24/2010 10:48 AM, Owen wrote: > >> On 07/24/2010 08:53 AM, Owen wrote: >> >>> hi, it got some error while adding data into sqlite through Perl script on Apache ... script can able to read the file but not able to write .. I have set the permissions

Re: cgi sqlite error not able to write data in database

2010-07-24 Thread Jeff Pang
2010/7/24 perl : > > This is the Error .. got from Apache ... > DBD::SQLite::db do failed: unable to open database file at > Specify the full path to the sqlite database file. You may know the absolute path of it, but Apache won't. -- Jeff Pang http://home.arcor.de/pangj/ -- To unsubscribe,

Re: cgi sqlite error not able to write data in database

2010-07-23 Thread Owen
> On 07/24/2010 08:53 AM, Owen wrote: >> >>> hi, >>> it got some error while adding data into sqlite through Perl script >>> on >>> Apache ... script can able to read the file but not able to write >>> .. I >>> have set the permissions of sqlite file to 666 .. >>> >>> when i ran the script from lo

Re: cgi sqlite error not able to write data in database

2010-07-23 Thread perl
On 07/24/2010 08:53 AM, Owen wrote: > >> hi, >> it got some error while adding data into sqlite through Perl script on >> Apache ... script can able to read the file but not able to write .. I >> have set the permissions of sqlite file to 666 .. >> >> when i ran the script from local user its wo

Re: CGI-BIN Help/Advise - editing a file - HOW ?

2010-03-15 Thread Shlomi Fish
Hi newbie01! On Monday 15 Mar 2010 09:39:41 newbie01 perl wrote: > Hi, > > At the moment, I have some sort of INI/config file that I edit manually via > vi. These config files are "simple" delimited file that are used by some of > the scripts running on the server. > > I want to be able to the s

Re: cgi and absolute filenames

2009-12-20 Thread Randal L. Schwartz
> "reader" == reader writes: reader> When using cgi to run scripts over html, what is the right addressing reader> scheme when the script needs to open or alter files on the server. *Most* CGI execution engines "cd" to the path of the script when executing that script. Hence opening ">foo"

Re: CGI programming

2009-12-01 Thread Rene Schickbauer
Anant Gupta wrote: I am not allowed to write to /var/www/cgi-bin/ I am not the root user of my machine Is their any way i can try out my perl cgi programs on this machine( Red Hat Linux) Hmm, with a few small changes, you could try to use HTTP::Server::Simple::CGI, just make sure you use a po

Re: CGI programming

2009-11-30 Thread Philip Potter
2009/11/30 Anant Gupta : > I am not allowed to write to /var/www/cgi-bin/ > > I am not the root user of my machine > Is their any way i can try out my perl cgi programs on this machine( Red Hat > Linux) Ask the root user of your machine. As an example of how these things work, at my university I c

Re: CGI programming

2009-11-30 Thread lan messerschmidt
On Mon, Nov 30, 2009 at 5:39 PM, Anant Gupta wrote: > I am not allowed to write to /var/www/cgi-bin/ > > I am not the root user of my machine > Is their any way i can try out my perl cgi programs on this machine( Red Hat > Linux) > That's decided by the http server's config. Some of httpd.conf ma

Re: CGI and persistent data (without Storable)

2009-08-28 Thread Randal L. Schwartz
> "Steve" == Steve Bertrand writes: Steve> Given that I can get through the web GUI portion of the process with Steve> just a couple of params, I'd like to find a way to retain the entire Steve> data structure without having to re-instantiate it (which requires Steve> rebuilding numerous obje

Re: CGI and persistent data (without Storable)

2009-08-28 Thread Chas. Owens
On Fri, Aug 28, 2009 at 03:30, Thomas Bätzler wrote: snip > If you can't use mod_perl or a stand-alone jifty server and if you have a > Unix system, > http://search.cpan.org/~samtregar/IPC-SharedCache-1.3/SharedCache.pm might be > useful. snip I second the vote for shared memory. That is what

RE: CGI query

2009-06-17 Thread David Christensen
Rajini Naidu wrote: > I am new to CGI scripting. Get this book and work your way through it (I prefer Debian GNU/Linux): http://www.wiley.com/legacy/compbooks/stein/ HTH, David -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@p

Re: CGI

2009-06-09 Thread Owen
> > Hello, > >> On Mon, 2009-06-08 at 23:38 -0700, Irfan Sayed wrote: >> >> From: Owen >> To: Irfan Sayed >> Cc: beginners@perl.org >> Sent: Tuesday, June 9, 2009 12:03:49 PM >> Subject: Re: CGI >> >

Re: CGI

2009-06-09 Thread Greg Eldridge
Hello, > On Mon, 2009-06-08 at 23:38 -0700, Irfan Sayed wrote: > > From: Owen > To: Irfan Sayed > Cc: beginners@perl.org > Sent: Tuesday, June 9, 2009 12:03:49 PM > Subject: Re: CGI > > > > Hi ALL, > > > > i have

Re: CGI scripting

2009-06-09 Thread Eko Budiharto
*Sent:* Monday, June 8, 2009 1:17:59 PM *Subject:* Re: CGI scripting On Mon, Jun 8, 2009 at 2:06 PM, Irfan Sayed<mailto:irfan_sayed2...@yahoo.com>> wrote: > Hi All, > > I need to configure Apache web server to execute the CGI scripts (in perl). Servers has windows XP operatin

Re: CGI

2009-06-08 Thread Irfan Sayed
Thanks . it worked. regards irf From: Owen To: Irfan Sayed Cc: beginners@perl.org Sent: Tuesday, June 9, 2009 12:03:49 PM Subject: Re: CGI > Hi ALL, > > i have written sample cgi script in perl. here it is > > #!/usr/bin/perl > print &

Re: CGI

2009-06-08 Thread Dave Tang
On Tue, 09 Jun 2009 16:16:41 +1000, Irfan Sayed wrote: Hi ALL, i have written sample cgi script in perl. here it is #!/usr/bin/perl print "Content-type: text/html\n\n"; print <   Welcome to CGI scripting           HI Try putting the HI at the start of the line. but when i a

Re: CGI

2009-06-08 Thread Owen
> Hi ALL, > > i have written sample cgi script in perl. here it is > > #!/usr/bin/perl > print "Content-type: text/html\n\n"; > print < > >   Welcome to CGI scripting >     >   >     HI > > but when i am trying to execute this script it throws me an error like > > Can't find string te

Re: CGI scripting

2009-06-08 Thread Irfan Sayed
From: Eko Budiharto To: Irfan Sayed Cc: beginners@perl.org Sent: Monday, June 8, 2009 1:17:59 PM Subject: Re: CGI scripting Regards Irf On Mon, Jun 8, 2009 at 2:06 PM, Irfan Sayed wrote: > Hi All, > > I need to configure Apache web server to ex

Re: CGI scripting

2009-06-08 Thread Eko Budiharto
On Mon, Jun 8, 2009 at 2:06 PM, Irfan Sayed wrote: > Hi All, > > I need to configure Apache web server to execute the CGI scripts (in perl). > Servers has windows XP operating system. > i have downloaded apache but i am not able to see any www folder in the > installed dir. of apache. > > do i ne

Re: CGI Listserver

2008-09-05 Thread Mike Flannigan
Jeff Pang wrote: See this: http://lists.cpan.org/showlist.cgi?name=beginners-cgi many other perl project lists are here: lists.cpan.org Thank you. That is just what I needed. Mike -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://l

Re: CGI Listserver

2008-09-05 Thread Jeff Pang
2008/9/6 Mike Flannigan <[EMAIL PROTECTED]>: > > Can anybody recommend a listserver for CGI > programming? See this: http://lists.cpan.org/showlist.cgi?name=beginners-cgi many other perl project lists are here: lists.cpan.org -- Regards, Jeff. -- To unsubscribe, e-mail: [EMAIL PROTECTED] Fo

Re: CGI FORM action

2008-06-16 Thread Gunnar Hjalmarsson
ken uhl wrote: Thanks for replying Gunnar, Gunnar Hjalmarsson wrote: ken uhl wrote: my Forms are not "acting" nicely, page to page flow is not correct, Page one prompts for search criteria: ... $scriptname = $q->script_name(); ... ... The submit button goes nicely to second page resu

Re: Re: CGI FORM action

2008-06-16 Thread ken uhl
Thanks for replying Gunnar, to your first Q ; ' maybe I did swap name and value - - ' I don't see how that could make a difference if the param retrieval code on the line following page print command never is executed. - I'll try swapping that around, and post results. The mystery of page

Re: CGI FORM action

2008-06-13 Thread Gunnar Hjalmarsson
ken uhl wrote: my Forms are not "acting" nicely, page to page flow is not correct, Page one prompts for search criteria: ... $scriptname = $q->script_name(); ... ... The submit button goes nicely to second page results. Second page : ... $scriptname = $q->script_name(); ... ... Cou

Re: cgi ordering a table with sql

2008-05-30 Thread Pat Rice
Thanks Gunnar,Jenda And everyone else that responded, its was great to get it working. Its one of thoese ones were you spend time staring at the code saying that it should work, but it dosent. Thanks :) Pat -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROT

Re: cgi ordering a table with sql

2008-05-30 Thread Jenda Krynicky
From: Gunnar Hjalmarsson <[EMAIL PROTECTED]> > Jenda Krynicky wrote: > > From: "Pat Rice" <[EMAIL PROTECTED]> > >> > >> my $sth = $dbh->prepare('SELECT * FROM test1 ORDER BY ?'); > > > > Most databases would not let you prepare a statement like this. Most > > often only values may be replaced b

Re: cgi ordering a table with sql

2008-05-29 Thread Gunnar Hjalmarsson
Jenda Krynicky wrote: From: "Pat Rice" <[EMAIL PROTECTED]> my $sth = $dbh->prepare('SELECT * FROM test1 ORDER BY ?'); Most databases would not let you prepare a statement like this. Most often only values may be replaced by placeholders, not column names. Hmm.. My fault, obviously. I had n

Re: cgi ordering a table with sql

2008-05-29 Thread Jenda Krynicky
From: "Pat Rice" <[EMAIL PROTECTED]> > Hi all > I'm trying to get the following working > what I want to do is to click on the link and it would order the > table, through the SQL query. > > I think the problem is that when I click on on the link to ORDER BY it > fails, that is it does not change

Re: cgi ordering a table with sql

2008-05-29 Thread Gunnar Hjalmarsson
Pat Rice wrote: Hi all I'm trying to get the following working what I want to do is to click on the link and it would order the table, through the SQL query. I think the problem is that when I click on on the link to ORDER BY it fails, that is it does not change the order of the table. It work

Re: cgi ordering a table with sql

2008-05-29 Thread Pat Rice
Hi all I'm trying to get the following working what I want to do is to click on the link and it would order the table, through the SQL query. I think the problem is that when I click on on the link to ORDER BY it fails, that is it does not change the order of the table. I wondering does anyone kno

Re: cgi ordering a table with sql

2008-05-19 Thread Gunnar Hjalmarsson
Pat Rice wrote: I'm trying to achieve the following a table that when I click on the top link I will chance the ORDER BY value in the table. eg |fruit | boxes | |orange | 10| |apples | 5 | so if fruit was a link and I clicked it I would change my select statement to order by fruit, if

Re: CGI serverpush??

2008-04-17 Thread Gunnar Hjalmarsson
sanket wrote: On Apr 16, 6:28 pm, [EMAIL PROTECTED] (Gunnar Hjalmarsson) wrote: Try setting the -nph parameter to a false value. do_push ( -next_page => \&refresh, -last_page => \&done, -nph => 0, ); See http://search.cpan.org/perldoc?CGI::Push#INSTALLING_C

Re: CGI serverpush??

2008-04-17 Thread sanket
On Apr 16, 6:28 pm, [EMAIL PROTECTED] (Gunnar Hjalmarsson) wrote: > sanket vaidya wrote: > > Kindly go through the code below. > > > > > use CGI::Push qw(:standard); > > > do_push(-next_page=>\&refresh, > > -last_page=>\&done); > > > > > When I run this code typing "http://localhost/p

Re: CGI serverpush??

2008-04-16 Thread Gunnar Hjalmarsson
sanket vaidya wrote: Kindly go through the code below. use CGI::Push qw(:standard); do_push(-next_page=>\&refresh, -last_page=>\&done); When I run this code typing "http://localhost/push.cgi"; in the browser I get internal server error. I use Apache 2.2 on windows & perl

Re: CGI warning/error

2008-03-14 Thread Gunnar Hjalmarsson
Kashif Salman wrote: On Fri, Mar 14, 2008 at 11:10 AM, Gunnar Hjalmarsson <[EMAIL PROTECTED]> wrote: > The -w switch enables warnings dynamically, and apparently CGI.pm isn't > 'warnings safe'. To get rid of those warnings, you can replace the -w > switch with the warnings pragma, which is

Re: CGI warning/error

2008-03-14 Thread Kashif Salman
On Fri, Mar 14, 2008 at 11:19 AM, Kashif Salman <[EMAIL PROTECTED]> wrote: > On Fri, Mar 14, 2008 at 11:10 AM, Gunnar Hjalmarsson <[EMAIL PROTECTED]> > wrote: > > Kashif Salman wrote: > > > I got this example code from the book "CGI Programming with Perl" > > > > > > #!/usr/bin/perl -wT >

Re: CGI warning/error

2008-03-14 Thread Kashif Salman
On Fri, Mar 14, 2008 at 11:10 AM, Gunnar Hjalmarsson <[EMAIL PROTECTED]> wrote: > Kashif Salman wrote: > > I got this example code from the book "CGI Programming with Perl" > > > > #!/usr/bin/perl -wT > > > > use strict; > > use CGI; > > > > my $q = new CGI; > > print $q->header( "text/pla

Re: CGI warning/error

2008-03-14 Thread Gunnar Hjalmarsson
Kashif Salman wrote: I got this example code from the book "CGI Programming with Perl" #!/usr/bin/perl -wT use strict; use CGI; my $q = new CGI; print $q->header( "text/plain" ); print "These are the HTTP environment variables I received:\n\n"; foreach ( $q->http ) { print "$_:\n"; p

Re: CGI problem fith file URIs

2008-03-10 Thread Tom Phoenix
On Mon, Mar 10, 2008 at 12:17 PM, Gunnar Hjalmarsson <[EMAIL PROTECTED]> wrote: > In what way is opening a file from a browser a CGI problem? Maybe you missed where the OP said "I am developing a help viewer app with CGI pm." Cheers! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe,

Re: CGI problem fith file URIs

2008-03-10 Thread Gunnar Hjalmarsson
Tom Phoenix wrote: On Mon, Mar 10, 2008 at 7:50 AM, Mike Martin <[EMAIL PROTECTED]> wrote: However when I try to access the file ie: with file://usr/share/doc/somefile.html I cannot If you're doing CGI programming with Perl, you should be asking your questions about that in the beginners

Re: CGI problem fith file URIs

2008-03-10 Thread Tom Phoenix
On Mon, Mar 10, 2008 at 7:50 AM, Mike Martin <[EMAIL PROTECTED]> wrote: > However when I try to access the file ie: with > file://usr/share/doc/somefile.html I cannot Now, you know that a file URL refers to a file that is available to the machine that has the browser, right? It's not generally

Re: cgi upload -> XMLin

2008-02-13 Thread Jay Savage
On Feb 13, 2008 12:52 AM, Brent Clark <[EMAIL PROTECTED]> wrote: > Chas. Owens wrote: > > > The XMLin method takes a string, file, or file handle as its argument. > > Just pass $upload_filehandle to it: > > > > my $ref = $xs->XMLin($cgi->upload("filename")); > > print $xs->XMLout($ref); > > Hi > >

Re: cgi upload -> XMLin

2008-02-13 Thread Brent Clark
Chas. Owens wrote: The XMLin method takes a string, file, or file handle as its argument. Just pass $upload_filehandle to it: my $ref = $xs->XMLin($cgi->upload("filename")); print $xs->XMLout($ref); Hi Thanks for replying. To be honest, I did try that, but then i was getting this message.

Re: cgi upload -> XMLin

2008-02-12 Thread Gunnar Hjalmarsson
Brent Clark wrote: I would like to upload a xml file, and would like the file to sent directly to XMLin(). Im trying to find a way of not have to create the file in /tmp, Then assign some other path to $CGITempFile::TMPDIRECTORY As Chas mentioned, you can pass $upload_filehandle to XMLin().

Re: cgi upload -> XMLin

2008-02-12 Thread Chas. Owens
On Feb 12, 2008 8:43 AM, Brent Clark <[EMAIL PROTECTED]> wrote: > Hi > > Heres my silly Q for the day > > I would like to upload a xml file, and would like the file to sent directly > to XMLin(). > > Im trying to find a way of not have to create the file in /tmp, and heres my > working code. > >

Re: CGI meets Archive::Zip

2007-12-10 Thread Gunnar Hjalmarsson
Tim Bowden wrote: On Mon, 2007-12-10 at 10:16 +0100, Gunnar Hjalmarsson wrote: It may be easier to do it in two steps: 1. Upload and save the zip file to disk without Archive::Zip 2. Manipulate the file to your liking That was my first approach, and it works fine (manipulating the zip file on

Re: CGI meets Archive::Zip

2007-12-10 Thread Tim Bowden
On Mon, 2007-12-10 at 10:16 +0100, Gunnar Hjalmarsson wrote: > Tim Bowden wrote: > > I'm trying to write a small cgi app that takes an uploaded zip file, > > extracts the contents and does some operations on the included files. > > Following is a cut down version of my attempts to understand how t

Re: CGI meets Archive::Zip

2007-12-10 Thread Gunnar Hjalmarsson
Tim Bowden wrote: I'm trying to write a small cgi app that takes an uploaded zip file, extracts the contents and does some operations on the included files. Following is a cut down version of my attempts to understand how to manipulate a zip file. It doesn't work (surprise, surprise!) It create

Re: cgi Pain!!!

2007-10-05 Thread Tom Phoenix
On 10/5/07, Pat Rice <[EMAIL PROTECTED]> wrote: > it does work when I run it from the commnad line. What's different between the command line and the actual environment? Check that you're using the right environment variables and current working directory, at least. > 19 my $variable_name =

Re: cgi session cart need help

2007-10-03 Thread vipmailnow
Tom , thanks for you analysis for me. >I hope you're keeping your product data and prices in a database, with >this merely being example code. Dear Tom , yes you are correct. i am playing it for the test. the final one will keep in mysql db. the whole working code is picup from http://search.cpa

Re: cgi session cart need help

2007-10-03 Thread vipmailnow
now i figure out a way to push new value which is not originally existed in the array at the end of loop. my $idx = 0; for my $product ( @{$cart} ) { $idx= ($idx+1); $idxx=($idx-1); $product->{itemID} == $itemID or next; $finalidx=$idx;

Re: cgi session cart need help

2007-10-03 Thread vipmailnow
For Determine whether a hash value exists, i googled the internet. and found print "Value EXISTS, but may be undefined.\n" if exists $hash{ $key }; so i have a test by below code while it seems i can not get the expeacted result. (all result is value is non existed.) print "Value EXISTS, but m

Re: cgi session cart need help

2007-10-02 Thread Tom Phoenix
On 10/2/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > i am using cgi session to write a cart . > here is the partial code. If you only send part of your code, ideally you should send a part which can run on its own. That is, make a small stand-alone program which shows the problem you're hav

Re: cgi app runtime unique identifier.

2007-09-02 Thread Tim Bowden
Thanks all, I've now got enough info to solve the problem. Regards, Tim Bowden On Sat, 2007-09-01 at 09:34 -0700, Tom Phoenix wrote: > On 9/1/07, Tim Bowden <[EMAIL PROTECTED]> wrote: > > > I'm writing a small cgi app that takes an uploaded file, stores it on > > disk and does some operations to

Re: cgi app runtime unique identifier.

2007-09-01 Thread Gunnar Hjalmarsson
Tim Bowden wrote: I'm writing a small cgi app that takes an uploaded file, stores it on disk and does some operations to it. To avoid multiple instances clobbering each other, I think I need to find a unique key to use in creating a dir specifically for use by that instance. Can anyone point me

Re: cgi app runtime unique identifier.

2007-09-01 Thread Tom Phoenix
On 9/1/07, Tim Bowden <[EMAIL PROTECTED]> wrote: > I'm writing a small cgi app that takes an uploaded file, stores it on > disk and does some operations to it. To avoid multiple instances > clobbering each other, I think I need to find a unique key to use in > creating a dir specifically for use

Re: cgi app runtime unique identifier.

2007-09-01 Thread kenpeng
Generally I use process id + timestamp to create the unique key.like, $uniq_key = $$ . time(); - original Nachricht Betreff: cgi app runtime unique identifier. Gesendet: Sa 01 Sep 2007 17:22:00 CEST Von: "Tim Bowden"<[EMAIL PROTECTED]> > I'm writing a small cgi app that takes an upl

Re: CGI Help

2007-08-23 Thread usenet
On Aug 21, 8:37 pm, [EMAIL PROTECTED] (Tony Heal) wrote: > I want to run a cgi script from another server inside a local cgi page You could use LWP or (better yet) WWW::Mechanize within your local CGI to fetch the content of the remote page and then display it from your local CGI script. -- The

Re: CGI Help

2007-08-21 Thread Gunnar Hjalmarsson
Tony Heal wrote: I want to run a cgi script from another server inside a local cgi page A quick and dirty example: #!/usr/bin/perl -T use strict; use warnings; use LWP::Simple; my ($content, $style) = getpage(); print < $style $content HTML sub getpage { my $domain = 'http://pace202

Re: CGI Help

2007-08-21 Thread Jeff Pang
-Original Message- >From: Tony Heal <[EMAIL PROTECTED]> >Sent: Aug 22, 2007 11:37 AM >To: beginners@perl.org >Subject: CGI Help > >I want to run a cgi script from another server inside a local cgi page > >SSI will only do local files, not remote URLs. > > > >How can I do this? > > > Ho

Re: CGI Admin

2007-08-11 Thread Inventor
On Aug 10, 1:08 pm, [EMAIL PROTECTED] wrote: > On Aug 9, 10:18 pm, [EMAIL PROTECTED] (Inventor) wrote: > > > "go into the CGI Admin" in order to debug the issue. > > I suspect this is a web-based control panel where customers can manage > their stuff without shell access. This is probably how you

Re: CGI Admin

2007-08-10 Thread usenet
On Aug 9, 10:18 pm, [EMAIL PROTECTED] (Inventor) wrote: > "go into the CGI Admin" in order to debug the issue. I suspect this is a web-based control panel where customers can manage their stuff without shell access. This is probably how you would do things like setting file permissions (which I s

Re: CGI Admin

2007-08-10 Thread Inventor
On Aug 10, 1:18 am, [EMAIL PROTECTED] (Inventor) wrote: > Hi, I just set up an account onwww.godaddy.comand uploaded my cgi > scripts there. One of them works fine and the other does not. The > technical support rep told me that I needed to figure out how to "go > into the CGI Admin" in order to

Re: CGI Admin

2007-08-10 Thread Paul Lalli
On Aug 10, 1:18 am, [EMAIL PROTECTED] (Inventor) wrote: > Hi, I just set up an account onwww.godaddy.comand uploaded my cgi > scripts there. One of them works fine and the other does not. The > technical support rep told me that I needed to figure out how to "go > into the CGI Admin" in order to

Re: Cgi/perl

2007-04-21 Thread Mumia W.
On 04/20/2007 07:29 PM, John Maverick wrote: Folks, Got a question regarding perl code in cgi script. I am running below line of code in cgi script which doesn't work as expected. my $ticket = qx{echo $p4pass | p4 login -p $p4user}; Basically command has to return a ticket or error message. I

Re: CGI Header

2007-04-11 Thread Tom Phoenix
On 4/11/07, Chas Owens <[EMAIL PROTECTED]> wrote: On 4/11/07, Tom Phoenix <[EMAIL PROTECTED]> wrote: > my $header_is_complete; # starts out false Is there a reason you are not using an our variable instead of a my variable: TIMTOWTDI. The scope is different, of course; but which scope one

Re: CGI Header

2007-04-11 Thread Chas Owens
On 4/11/07, Tom Phoenix <[EMAIL PROTECTED]> wrote: snip my $header_is_complete; # starts out false sub ensure_header { return if $header_is_complete; my($q) = @_; print $q->header(); $header_is_complete = 1; } snip Is there a reason you are not using an our variable inst

Re: CGI Header

2007-04-11 Thread Tom Phoenix
On 4/11/07, Jen mlists <[EMAIL PROTECTED]> wrote: But my error_report function is located in a package,not the main script. Then how to use a global variable for label it? You may use a true global by giving its full name, say $main::header_is_complete, even from another package and under '

Re: CGI Header

2007-04-11 Thread Jen mlists
Thank you. But my error_report function is located in a package,not the main script. for example, package Myfunc; sub error_report { my($q,$msg) = @_; print $q->header(); # print or not print it?? print $msg; } 1; Then how to use a global variable for label it?Thanks. 2007/4/11, Tom P

Re: CGI Header

2007-04-10 Thread Tom Phoenix
On 4/10/07, Jen mlists <[EMAIL PROTECTED]> wrote: How to judge whether I've output the http header or not where in cgi scripts?Thank you. I think you're asking how a programmer can know whether or not the header has already been output when it's time to produce output (in an error-handling sub

Re: cgi Calendar continued.

2007-03-09 Thread Jeff Pang
> >## To build: >my %HoH = (); >foreach my $dates (@weeks) { >foreach my $daynums (@weeks1) { >$HoH{$dates} = { > daynums => $daynums > }; >} >} > Hello, The codes above for building a hash is somewhat not correct. When you loop through @weeks1,you use {day

Re: cgi calender

2007-03-03 Thread Jack Daniels (Butch)
I have a file containeding data (example) I added the text line1 line2 line3 to the beginning of each line in the hopes I could do the following. I appended line1 line2 and line3 files to one file, but now I need to sort them correctly to send these comands to an API transaction server to alter da

Re: cgi calender

2007-03-02 Thread oryann9
> More than this I cannot offer. I don't know what > range of values your > $dayofweek variable holds so I can't even guess what > to code. > > Rob > No abuse was intended. Sorry. I like to send my thoughts on what to do for code to the list to see if I get any feedback regardless of whether th

Re: cgi calender

2007-03-02 Thread oryann9
> >Why did you send me that link? That does not help > me. > > Because you specifically said > > "Will anyone offer some kind help?" > > > >I use both sites to seek help when needed. I > thought > >this was a list to get help because people here > like > >to offer help after all we all love Pe

Re: cgi calender

2007-03-02 Thread Rob Dixon
oryann9 wrote: > > --- zentara <[EMAIL PROTECTED]> wrote: >> >> [EMAIL PROTECTED] (oryann9) wrote: >> >>> Will anyone offer some kind help? >> >> See: >> http://perlmonks.org?node_id=599419 >> >> Or groups.google.com for "perl html cgi calendar". > Why did you send me that link? That does not hel

Re: cgi calender

2007-03-01 Thread oryann9
--- zentara <[EMAIL PROTECTED]> wrote: > On Wed, 28 Feb 2007 12:10:36 -0800 (PST), > [EMAIL PROTECTED] (oryann9) > wrote: > > >Will anyone offer some kind help? > > See: > http://perlmonks.org?node_id=599419 > > Or groups.google.com for "perl html cgi calendar". > > zentara > > -- Why did

Re: cgi calender

2007-02-28 Thread oryann9
--- oryann9 <[EMAIL PROTECTED]> wrote: > --- Tom Phoenix <[EMAIL PROTECTED]> wrote: > > > On 2/27/07, oryann9 <[EMAIL PROTECTED]> wrote: > > > > > Problem: cgi calender daynames are not matching > up > > > with dates. For example: Todays date 02/27/2007 > is > > > being printed under Thursday in

Re: cgi calender

2007-02-28 Thread oryann9
--- Tom Phoenix <[EMAIL PROTECTED]> wrote: > On 2/27/07, oryann9 <[EMAIL PROTECTED]> wrote: > > > Problem: cgi calender daynames are not matching up > > with dates. For example: Todays date 02/27/2007 is > > being printed under Thursday instead of Tuesday. > > Is the problem that you need to det

Re: cgi calender

2007-02-27 Thread Tom Phoenix
On 2/27/07, oryann9 <[EMAIL PROTECTED]> wrote: Problem: cgi calender daynames are not matching up with dates. For example: Todays date 02/27/2007 is being printed under Thursday instead of Tuesday. Is the problem that you need to determine the day of the week for a given date, or that you need

Re: cgi calender

2007-02-27 Thread oryann9
--- oryann9 <[EMAIL PROTECTED]> wrote: > All, > > I am having an issue getting my cgi calender to > print > correctly. Any help or hints would be appreciated! > I was thinking of manipulating the @weeks_anonymous > array with select dayofweek(curdate()) rather than > using hardcoed undef's > >

Re: CGI XML

2006-12-07 Thread Bill Jones
On 12/7/06, Beginner <[EMAIL PROTECTED]> wrote: my $xml = eval {XMLin($fh, SuppressEmpty => 1, ForceArray => qr/item/) }; CGI::Lite and then use $cgi->parse_new_form_data; to get the XML into your $xml hash. -- WC (Bill) Jones -- http://youve-reached-the.endoftheinternet.org/ -- To unsubscri

Re: CGI bug

2006-10-06 Thread W.P.Nijhof
Rob Dixon wrote: values after the script has been called once you'll have to do it manually: param('hidden_name','new','values','here'); You can also do this: $q->hidden( -name=>'x', -value=>$x, -override=>1 ) WayPay -- To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: CGI bug

2006-10-05 Thread Rob Dixon
Jeremy Kister wrote: > > Using an older (unknown version) and brand new (3.25) CGI, I have been > able to demonstrate a simple bug: > > use strict; > use CGI qw(:standard); > > my $q = new CGI(); > > my $x = $q->param('x'); > my $y = ($x + 1); > > print $q->header(), $q->start_html(), > $q->

Re: CGI bug

2006-10-05 Thread John W. Krahn
Jeremy Kister wrote: > Using an older (unknown version) and brand new (3.25) CGI, I have been > able to demonstrate a simple bug: There is a beginners-cgi list that deals with Perl and CGI issues: http://lists.cpan.org/showlist.cgi?name=beginners-cgi And if you are reporting a bug in CGI: perldo

Re: cgi script

2006-09-28 Thread Tom Phoenix
On 9/28/06, Kaushal Shriyan <[EMAIL PROTECTED]> wrote: #!/bin/bash echo "Content-type: text/plain"; echo set That's a shell script. You're not even using a Perl program; why are you asking for help in a Perl beginners' forum? I dont get values for REMOTE_HOST = and REMOTE_USER = Are you su

RE: CGI: How do I populate a form field based on the value entered in a different field

2006-09-23 Thread RICHARD FERNANDEZ
Ding! Ding! Ding! I finally got it!!! Not sure why this had me so stumped... In any case, thanks to all that responded. I appreciate all the help. richf -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: CGI: How do I populate a form field based on the value entered in a different field

2006-09-23 Thread RICHARD FERNANDEZ
Did you test it? It is my impression that CGI.pm works this way normally: if (param) { # Replace the parameter. my $temp = param('name'); if ($nmap{$temp}) { # param('name',$nmap{$temp}); # This also works. param(-name => 'name', -value

  1   2   3   4   5   >