Re: redirection with perl

2001-09-26 Thread louie miranda
if ($FORM{query} eq "imaform") { $gotourl = "http://yoururl.com/";; } louie miranda (axishift.ath.cx) -- Security Is A Series Of Well-Defined Steps chmod -R 0 / ; and smile :) - Original Message - From: "Wagne

Re: running commands on UNIX from a cgi

2001-09-26 Thread Bill Jones
On 9/26/01 6:06 PM, "Chaka Clarke" <[EMAIL PROTECTED]> wrote: > What are the main dangers and what is the safer solution ? The primary is trusting anyone to enter *normal* data. If your script is installed with read/write to the CGI directory then someone could construct a command to write a f

Re: Perl/Postgres hosting providers (WAS Re: How to save andretreive form)

2001-09-26 Thread fliptop
Mel Matsuoka wrote: > > Replying to my own post...I was wondering if anyone here can make a > recommendation on a GOOD hosting provider that supports Perl5 and > PostgreSQL (and PHP4 as well, ideally). I know there are many out there, > but I'm looking for one that is developer friendly (like my

Perl/Postgres hosting providers (WAS Re: How to save and retreive form)

2001-09-26 Thread Mel Matsuoka
At 12:02 PM 09/26/2001, Mel Matsuoka wrote: >Agreed. > >Now if we could only get web hosting providers to agree as well. Replying to my own post...I was wondering if anyone here can make a recommendation on a GOOD hosting provider that supports Perl5 and PostgreSQL (and PHP4 as well, ideally).

Re: running commands on UNIX from a cgi

2001-09-26 Thread Stephan Tinnemeyer
Just a thought: These values may be still tainted. Do you use CGI.pm? -- Dipl.-Chem. Stephan Tinnemeyer Lindenallee 20 24105 Kiel Germany -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: How to save and retreive form

2001-09-26 Thread Balaj, Geraldine
YUP! You guys are KILLIN' me ...! Kudos for the enthusiasm, though -Original Message- From: Stephan Tinnemeyer [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 26, 2001 6:11 PM To: [EMAIL PROTECTED] Subject: Re: How to save and retreive form Does anybody not agree that this d

Re: How to save and retreive form

2001-09-26 Thread Stephan Tinnemeyer
Does anybody not agree that this discussion is far far away from it's original issue by now? Stephan -- Dipl.-Chem. Stephan Tinnemeyer Lindenallee 20 24105 Kiel Germany -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: How to save and retreive form

2001-09-26 Thread Mel Matsuoka
At 02:38 PM 09/26/2001 -0700, Randal L. Schwartz wrote: >> "Brett" == Brett W McCoy <[EMAIL PROTECTED]> writes: > >Brett> MySQL is very simple to set up and easy to use. > >/me whispers "in 2001 and beyond, MySQL is spelled p o s t g r e s q l" > >MySQL is dead. Long Live PostgreSQL. Agree

Re: How to save and retreive form

2001-09-26 Thread fliptop
Camilo Gonzalez wrote: > > Doesn't PostgreSQL have a reputation as being somewhat pokey? Is it open > source? pokey? as in slow? there are many web sites that have information on comparing the two (in fact, searching google with the keywords 'mysql postgresql benchmark comparison' produced ove

Re: How to save and retreive form

2001-09-26 Thread Brett W. McCoy
On 26 Sep 2001, Randal L. Schwartz wrote: > I've found Pg to be more lightweight than MySQL. > > Again, not at all what I would have said a year ago. But with the > removal of the 8K limit per record, life with Pg is great! I was in heaven when they added foreign keys. Actually, I've been usin

RE: How to save and retreive form

2001-09-26 Thread Brett W. McCoy
On Wed, 26 Sep 2001, Camilo Gonzalez wrote: > Doesn't PostgreSQL have a reputation as being somewhat pokey? Is it open > source? It's not pokey anymore, and yes, it is open source, and while MySQL may be faster for basic queries, for more complex things, MySQL just can't cut it, plus it's missin

Re: How to save and retreive form

2001-09-26 Thread Randal L. Schwartz
> "Brett" == Brett W McCoy <[EMAIL PROTECTED]> writes: Brett> On 26 Sep 2001, Randal L. Schwartz wrote: Brett> MySQL is very simple to set up and easy to use. >> >> /me whispers "in 2001 and beyond, MySQL is spelled p o s t g r e s q l" >> >> MySQL is dead. Long Live PostgreSQL. Brett> I

Re: How to save and retreive form

2001-09-26 Thread Brett W. McCoy
On 26 Sep 2001, Randal L. Schwartz wrote: > Brett> MySQL is very simple to set up and easy to use. > > /me whispers "in 2001 and beyond, MySQL is spelled p o s t g r e s q l" > > MySQL is dead. Long Live PostgreSQL. I agree 100%. Actually, 1000%. I suggested MySQL beacuse she wanted somethi

Re: How to save and retreive form

2001-09-26 Thread Randal L. Schwartz
> "Camilo" == Camilo Gonzalez <[EMAIL PROTECTED]> writes: Camilo> Doesn't PostgreSQL have a reputation as being somewhat pokey? Only for older versions. Modern versions benchmark as fast or faster than MySQL for equivalent tasks. And modern versions of course can do a lot more than MySQL i

RE: How to save and retrieve form

2001-09-26 Thread Moon, John
FYI ... I generate reports on a monthly (/daily/weekly/etc) basis ... for various "types" but the same report per "type" each period ... The reports are store in ./Reports/"Type"/Archive/mm.txt.gz So any one "Type" path may have any number of mm.txt.gz files ... I build a screen for m

RE: How to save and retreive form

2001-09-26 Thread Camilo Gonzalez
Doesn't PostgreSQL have a reputation as being somewhat pokey? Is it open source? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 26, 2001 4:39 PM To: [EMAIL PROTECTED] Subject: Re: How to save and retreive form > "Brett" == Brett W Mc

Re: How to save and retreive form

2001-09-26 Thread Randal L. Schwartz
> "Brett" == Brett W McCoy <[EMAIL PROTECTED]> writes: Brett> MySQL is very simple to set up and easy to use. /me whispers "in 2001 and beyond, MySQL is spelled p o s t g r e s q l" MySQL is dead. Long Live PostgreSQL. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 5

File update trigger

2001-09-26 Thread Robert Becker
Hello All, Is there some way (without using cron) that the update of a file can trigger a Perl (CGI) script to run? Specifically, I would like to update a text (flat file) database every time an addition/deletion is made to a password file. I know that I could run a cron job that compares the fi

Re: How to save and retreive form

2001-09-26 Thread Stephan Tinnemeyer
Lynn, there is more to 'save' than waste of memory - saved is only what can be retreived. I had to tell this my former bosses every two weeks and I never felt that I made them understand.;=) Therefore, you may keep a table with the locations of your data files in a special file. BTW, this is wha

Re: How to save and retreive form

2001-09-26 Thread Lynn Glessner
Well, I don't need any database functionality per se, just save and retrieve, but if it makes my life *easier* instead of harder then I'm all for it. :) The save to text file was so easy that initially looked to be the simplest approach. Thanks for the suggestion, I'll check it out. > > From wha

Re: How to save and retreive form

2001-09-26 Thread Brett W. McCoy
On Wed, 26 Sep 2001, Lynn Glessner wrote: > For a small business intranet, I want the user to fill out the form, save it > onto the web server, and be able to retreive it later. A text file will be > fine, there won't be any need for reporting etc and a database would be > overkill. I would like

How to save and retreive form

2001-09-26 Thread Lynn Glessner
I'm having a horrible time deciding the best way to accomplish this goal. Let me see if I can explain this well enough that I can get some suggestions. For a small business intranet, I want the user to fill out the form, save it onto the web server, and be able to retreive it later. A text file w

Re: redirection with perl

2001-09-26 Thread Brett W. McCoy
On Wed, 26 Sep 2001, Wagner wrote: > I want to do a redirection based on a variable > > for example: > > if ($name eq 'invader') { > > redirection to some URL ; > > } > > What do i have to put in the middle line to do the redirection... If you are using CGI.pm, there is a method called redir

Re: redirection with perl

2001-09-26 Thread Lisa Nyman
Hi, You can do a couple of things. 1) just print a Location: header like if ($name eq 'invader') { print "Location:http://www.foo.com/invader\n\n";; } Or, using CGI.pm, use the redirect function: if ($name eq 'invader') { print redirect('http://www.foo.com/invader');

redirection with perl

2001-09-26 Thread Wagner
Hi, I want to do a redirection based on a variable for example: if ($name eq 'invader') { redirection to some URL ; } What do i have to put in the middle line to do the redirection... In javascript i would put: location.href=url but in perl i don't know what to put... Thanks in advanc

Re: Multiple script tags in HTML head

2001-09-26 Thread Curtis Poe
--- "Richard J. Barbalace" <[EMAIL PROTECTED]> wrote: > Hi. > > I'm trying to use CGI.pm to include multiple script tags in a web page. > > I have code like the following: > $html .= header(); > $html .= start_html( > -script => { > -langua

Re: Multiple script tags in HTML head

2001-09-26 Thread Richard J. Barbalace
> Is there any way to get multiple script tags using CGI.pm, or do I > need to abandon it? Ah, upon a closer reading of the documentation, I found the answer. -script => [ { -language => 'JavaScript'

Re: whats the best cgi/perl book around?

2001-09-26 Thread Mark Bergeron
The one you learn the most from of course! -Original Message- From: "louie miranda"<[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Date: Tue Sep 25 19:38:06 PDT 2001 Subject: whats the best cgi/perl book around? >Hi, im just wondering whats the best cgi/perl book? >thnx. > > > >louie miranda (

Re: Multiple script tags in HTML head

2001-09-26 Thread Stephan Tinnemeyer
Richard, instead of a string you give -src an array. If CGI.pm was aware of this it propably would produce HTML like this:

Re: running commands on UNIX from a cgi

2001-09-26 Thread Bill Jones
On 9/26/01 12:05 PM, "Mr. CRJ. Clarke" <[EMAIL PROTECTED]> wrote: > I am having diffuculties running a unix command with variables obtained > from a submitted via a web cgi script. > the command is /gspq $var1 $var2 > $var1 and $var2 are obtained from a web and can be displayed but I > cannot sen

Multiple script tags in HTML head

2001-09-26 Thread Richard J. Barbalace
Hi. I'm trying to use CGI.pm to include multiple script tags in a web page. I have code like the following: $html .= header(); $html .= start_html( -script => { -language => 'JavaScript', -src => [

Re: running commands on UNIX from a cgi

2001-09-26 Thread Stephan Tinnemeyer
Just a thought: These values may be still tainted. Do you use CGI.pm? -- Dipl.-Chem. Stephan Tinnemeyer Lindenallee 20 24105 Kiel Germany -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

running commands on UNIX from a cgi

2001-09-26 Thread Mr. CRJ. Clarke
I am having diffuculties running a unix command with variables obtained from a submitted via a web cgi script. the command is /gspq $var1 $var2 $var1 and $var2 are obtained from a web and can be displayed but I cannot send these vaiable to a unix program resident on my server. using the command $r

Re: whats the best cgi/perl book around?

2001-09-26 Thread Curtis Poe
--- louie miranda <[EMAIL PROTECTED]> wrote: > Hi, im just wondering whats the best cgi/perl book? > thnx. > > louie miranda (axishift.ath.cx) > -- > Security Is A Series Of Well-Defined Steps > > chmod -R 0 / ; and smile :) The best Perl/CGI book that I

RE: How Do I Extract Elements from an Array?

2001-09-26 Thread aurillo, gabriel
There's a little problem. I changed the pattern matching to: /^(!?)(.*)=(.*)$/i or die ; but it still seems to ignore back referencing to $2 such that the "i" case switch considers the key "component" as different from "Component" (they're the true values of "line#"). Yes, the key=values

Re: whats the best cgi/perl book around?

2001-09-26 Thread Kevin Meltzer
On Wed, Sep 26, 2001 at 09:17:37AM +0200, Sawsan Sarandah ([EMAIL PROTECTED]) said something similar to: > I own the following CGI/Perl books: > > Writing CGI Applications with Perl > by Kevin Meltzer, Brent Michalski (Paperback) > -- primitive, doesn't talk much about cgi.pm Just to point out

Re: Linux

2001-09-26 Thread Francesco Scaglioni
Most ( ? all ) of the distributions have specific mailing lists. I subscribe to the SuSE list which is excellent. Once you have made the change you will never want to go back. Good luck. Francesco -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]