Re: cgi-bin will not execute perl program

2007-06-14 Thread Mumia W.
On 06/14/2007 02:24 AM, whitsey wrote: Mumia W. wrote: On 06/12/2007 09:38 PM, whitsey wrote: [...] AllowOverride None Options None You need "Options ExecCGI" or (more probably) "Options +ExecCGI" The Apache/Tomcat documentation states that the &qu

Re: cgi-bin will not execute perl program

2007-06-13 Thread Mumia W.
On 06/12/2007 09:38 PM, whitsey wrote: [...] AllowOverride None Options None You need "Options ExecCGI" or (more probably) "Options +ExecCGI" -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: text file upload ... work around wide characters?

2007-05-23 Thread Mumia W.
On 05/23/2007 04:16 PM, Michael Higgins wrote: -Original Message- From: Michael Higgins [mailto:[EMAIL PROTECTED] Hello, List-ers -- I've come across a problem, unsure where to ask, so subscribed here. I upload a file through a browser. It's a '.txt' file and it comes as text/html.

Re: cleaning up as application ends

2007-05-13 Thread Mumia W.
On 05/13/2007 05:32 PM, Mary Anderson wrote: Mumia, Thanks for the mod_perl tip. That [http://perl.apache.org/docs/1.0/guide/porting.html#END_blocks] seems to say that the code in the END block will be executed when the server stops, not when the session comes to an end. My END blocks

Re: cleaning up as application ends

2007-05-12 Thread Mumia W.
On 05/12/2007 05:37 PM, Mary Anderson wrote: I would like to perform some clean up at various points in my application. Here is one of them. if ($pageName eq 'CSV'){ my $made_and_stuffed = make_and_stuff_query($pageName); if ($made_and_stuffed == 1){ my $pathNa

Re: Passing a hash from a form field?

2007-05-01 Thread Mumia W.
On 04/30/2007 11:03 PM, [EMAIL PROTECTED] wrote: I actually have the book as well ('Official Guide to Programming with CGI.pm') and have practically torn it apart trying to find a way to do what I want. I've tracked down and read a number of articles and forum postings as well. I have a fee

Re: Processing large data files.

2007-04-06 Thread Mumia W.
On 04/06/2007 03:27 PM, Bill Stephenson wrote: Perl crashes when using the included script for large data files. How can I prevent this from happening? What do you mean by crashes? Does it abort with an error message placed in the web-server log file? If so, that's not a crash; it's just an

Re: END ing in a cgi script

2007-02-17 Thread Mumia W.
On 02/17/2007 06:46 PM, Mary Anderson wrote: The documentation wasn't very clear. Under mod_perl, the above will work only for Apache::Registry scripts. Otherwise execution of the END block will be postponed until the process terminates. If you write a handler in the Perl API use the register_c

Re: END ing in a cgi script

2007-02-17 Thread Mumia W.
On 02/16/2007 10:27 PM, Mary Anderson wrote: Hi all, My perl-cgi application creates some temporary files and a temporary table which I would like to clean up as I exit the program. I tried writing a perl END block, but found that did not work. It appeared that to the cgi interpreter END{

Re: redirecting cgi via post method

2007-02-16 Thread Mumia W.
On 02/16/2007 12:00 PM, [EMAIL PROTECTED] wrote: Greetings, I have a CGI that receives some parameters, and after processing them (it generates a file) it must be redirected to another CGI (external domain) to process it. What I want to do is similar to redirect("http://somedomain.c

Re: redirecting cookie

2007-01-11 Thread Mumia W.
On 01/10/2007 02:48 PM, Slawomir Orlowski wrote: Hello, Thank for you suggestions and help. I surely appreciate it. I don't think that is possible. Cookies are restricted to the domain of the server that creates them. As you found out, you'll have to use a query string (a GET parameter). If

Re: redirecting cookie

2007-01-10 Thread Mumia W.
On 01/09/2007 03:40 PM, Slawomir Orlowski wrote: Hello everybody, I have Linux Enterprise v4 apache 2.0.58 and perl 5.8.5. I have one web page domain1 (users are recognized by domain1cookie) I would like to move my web page to new domain2 and I would like users to be recognized by domain2

Re: Can't not install Inline::Ruby module

2006-12-20 Thread Mumia W.
On 12/20/2006 07:48 AM, chen li wrote: C:\Perl\local\Inline-Ruby-0.02>perl Makefile.PL Could not find the ruby interpreter on your PATH. Stopping... Yes. I have a Ruby interpreter installed and it works fine for running Ruby scripts. But I am not sure why it is not available on the system PAT

Re: Can't not install Inline::Ruby module

2006-12-20 Thread Mumia W.
On 12/20/2006 02:34 AM, chen li wrote: Hi all, I try to install a perl module called Inline::Ruby but it fails. Here is the error information: C:\Perl\local\Inline-Ruby-0.02>perl Makefile.PL Could not find the ruby interpreter on your PATH. Stopping... Any idea how to fix it? Thanks, Li D

Re: -e question

2006-12-15 Thread Mumia W.
On 12/15/2006 11:00 AM, Mumia W. wrote: On 12/15/2006 09:44 AM, Lou Hernsen wrote: I use the -e to check to see if a file is present if (-e "$Pics/$Game{Page}.jpg") { } Question I can get it to work looking for .pl and .gif but not .jpg [...] Read "perldoc -f -e"

Re: -e question

2006-12-15 Thread Mumia W.
On 12/15/2006 09:44 AM, Lou Hernsen wrote: I use the -e to check to see if a file is present if (-e "$Pics/$Game{Page}.jpg") { } Question I can get it to work looking for .pl and .gif but not .jpg [...] Read "perldoc -f -e" -e tests if a file is executable. Use -f to test if the file

Re: stuffing the document header

2006-12-05 Thread Mumia W.
On 12/05/2006 08:03 PM, David Bear wrote: I have tons of items to put in the section of my html document. There are multipl link rel statments. Looking at the cgi docs I find this for making the section: print start_html(-title=>'Secrets of the Pyramids', -author

Re: check for def

2006-12-01 Thread Mumia W.
On 12/01/2006 01:24 PM, David Bear wrote: I would like to do something like (psuedo coded) my $req = CGI->new(); my %params = $req->Vars; if ndef %params { %params = 'gets a hash time that i build' } The goal of course is to make sure that %params has some hash table available even if the sc

Re: Can't use string as a subroutine ref while "strict refs"

2006-11-09 Thread Mumia W.
On 11/09/2006 06:56 AM, Sara wrote: use strict; use warnings; use CGI; my $q = new CGI; my $do = $q->param('do') || 'main''; my $do = $q->param('do') || main(); if ($do) { &$do; } sub main { blah blah } = Trying to call the subroutine main from vari

Re: Convert Date to Timestamp.

2006-11-01 Thread Mumia W.
On 11/01/2006 12:04 AM, Sara wrote: I am getting Month, Day and Year from Drop Downs of a form to convert given values to Unix timestamp. I am able to put values in all the variables below except for $wday & $yday. Any ideas as how I can get those with limited user input of month, day and year

Re: Script produces nothing when run from web page

2006-10-25 Thread Mumia W.
On 10/25/2006 01:23 AM, Richard Luckhurst wrote: Hi All I have a simple perl cgi script that works fine and produces the correct output when run from a command line. However when called as a cgi script from within a web page the script does not run correctly. The script is called log-errors

Re: Get data into frame

2006-10-23 Thread Mumia W.
On 10/23/2006 08:37 AM, Beginner wrote: Hi, I have a html document with links to a perl cgi scripts. The script gets some file information and I want the returned page to have the data from the script in one frame and a different location in the other but I'm not sure how. If I so something

Re: .wav and mp3 length.

2006-10-14 Thread Mumia W.
On 10/14/2006 09:14 AM, Sara wrote: Need to determine the .wav and mp3 file length not in bits or bytes, but in minutes. It's for a dictation recording service who needs to invoice the clients as per the minutes of files uploaded to their servers. I searched the CPAN but of no help. Thanks,

Re: Including a file with common variables...

2006-10-08 Thread Mumia W.
On 10/08/2006 12:15 PM, Shawn Hinchy wrote: Thank you Mumia and Ovid. I appreciate both of your responses. I agree with you Ovid, you make some very good points. The point I forgot to include is that these variables are actually configuration-type constants. I misnamed them by calling the

Re: Including a file with common variables...

2006-10-08 Thread Mumia W.
On 10/07/2006 10:27 PM, Shawn Hinchy wrote: Hello all, I am writing many cgi scripts and need to have the same variables included in each of them. I was going to put all these 'global' variables in a separate file that could then be included in the top of each cgi script. I am already doing

Re: Dumping all vars

2006-10-03 Thread Mumia W.
On 10/03/2006 09:19 PM, J. Alejandro Ceballos Z. -JOAL- wrote: The variables created during a cgi, are stored in some kind of hash, like the %ENV enviroment variables? I want to create in some points, a var dump of all variables existed, in order to track errors. Perhaps the Data::Dumper

Re: perl script problem

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

Re: escape charachters

2006-08-11 Thread Mumia W.
On 08/11/2006 01:13 PM, Adriano Allora wrote: hi all, I use use HTML::Entities; and the functions decode() and encode(), but I'd prefer working with escape characters (è, for example) than working with exadecimal (or what they are:  for example). Must I use a regexp to substitute each or I

Re: redirect doesn't

2006-08-08 Thread Mumia W.
On 08/07/2006 07:43 PM, Mary Anderson wrote: Hi all, I would like to create an exit button which, when pressed, triggers code to clean up my application and then go to the index.html page. It is my understanding that the redirect function will take me there. Here is the key piece of code

Re: unix top command through cgi

2006-08-04 Thread Mumia W.
On 08/04/2006 04:36 PM, Denzil Kruse wrote: I want to see the results of a top command through my web browser, but when I try this with my cgi script: my $output = `top`; print $output; I get this error: top: Unknown terminal "VT100" in $TERM Is there a way to tell top which "terminal" i'm

Re: Convert utf-8 XML Document to ISO format

2006-08-04 Thread Mumia W.
On 08/04/2006 05:07 AM, [EMAIL PROTECTED] wrote: Hi List, [...] Hi Web. Maybe someone has a hint how to convert a XML::Simple document (by POST) in UTF-8 with the FLAG set on to a Simple LATIN1 document so that I can safe it into my latin1 table! Tanks for any help Ciao Thomas Us