Re: Security?

2003-09-08 Thread Gavin Laking
On Tue, 9 Sep 2003 05:57:44 + [EMAIL PROTECTED] (Greenhalgh David) wrote: > > On Tuesday, September 9, 2003, at 02:04 AM, Alejandro Chavarria - > CyPage wrote: > if you want your CDGI to be able to read from a file, then so can > everyone else. In that case, the best you can do is remove w

Re: Security?

2003-09-08 Thread Gavin Laking
On Mon, 8 Sep 2003 18:04:44 -0800 [EMAIL PROTECTED] (Alejandro Chavarria - Cypage) wrote: (my apologies if this appears twice!) > Does anyone know > of a way, where I can not allow ANYONE to view that text file, but > still let the program write to it? It appears there is a misunderstanding of

Re: Security?

2003-09-08 Thread Greenhalgh David
On Tuesday, September 9, 2003, at 02:04 AM, Alejandro Chavarria - CyPage wrote: Hey, I am writing a perl CGI script on a remote server that is supposed to do the following: 1. Have the user sign in with a username and password. 2. Allow the user to add News Stories in which that input is tak

Security?

2003-09-08 Thread Alejandro Chavarria - CyPage
Hey, I am writing a perl CGI script on a remote server that is supposed to do the following: 1. Have the user sign in with a username and password. 2. Allow the user to add News Stories in which that input is taken and then written to a text file (Which is as of this moment, set to chmod 777).

RE: passing an argument to a subroutine

2003-09-08 Thread Mike Harrison
Hi all, I'm a bit late for a reply, but thought it would be appropriate to ask Babs exactly what was required from the perl program. Did you want to print the number of elements in the array, or print each element in the array? As Andrew Brosnan explained, setting a scalar equal to an array name

Still Not sure if I agree with myself.

2003-09-08 Thread drieux
Currently I am in the midst of an argument with myself about tactics and strategies for doing CGI coding. The side effect of which lead me to wonder about some prejudices I seem to have about when, where and how to cut over to using/creating a Perl Module for code re-use. Some of this comes from de

Re: Desperately needs help with nested looping

2003-09-08 Thread R. Joseph Newton
"B. Fongo" wrote: > I'm quit confused with what I have below. > > I have 2 database tables; Games and groups. > > Name Group > # > John ,GroupA > Miler, GroupA > Peter, GroupB > Mathew, GroupB > Mark, GroupB > Luke, GroupA > > I'm trying to select the members based on their g

Re: passing an argument to a subroutine

2003-09-08 Thread R. Joseph Newton
"B. Fongo" wrote: > Hello > > An argument passed to a subroutine returns wrong value. > > Code example: > > @x = (1..5); > $x = @x; > > showValue ($x); # or showValue (\$x); > > sub showValue { > > my $forwarded = @_; > print $forwarded; # print ${$forwarded}; > > } > > In both cases, the s