Re: Problem with script headers.

2003-06-17 Thread Nicholas Davey
1 - I am a programmer, I have just never used PERL before. 2 - Why am I paranoid about my code? First of all, I have parts of my code that are required to make the site work properly. Second, I have custom password checking code that I really dont want to have to remove, seeing as how my si

RE: Problem with script headers.

2003-06-17 Thread Charles K. Clarkson
Nicholas Davey <[EMAIL PROTECTED]> wrote: : : I hope I gave you enough info to maybe see : why index.cgi is the only freaking page that : doesnt work. IMO you have two choices. 1 - Hire a programmer to debug it and have her sign a confidentiality agreement. 2 - Post the code for index.c

Re: Problem with script headers.

2003-06-17 Thread Nicholas Davey
I have set my script permissions to 755, 777, and many other settings. I use 755 beacuase thats the right one to use for the net. I tell you to not worry about the path because I dont really want the path on my server revealed for security reasons. All that matters is that the script is in my cgi-

RE: Some Qs about the -w switch and initializing vars.

2003-06-17 Thread Charles K. Clarkson
Daedalus <[EMAIL PROTECTED]> wrote: : : Hi all, : : I have a cgi prog that complains about uninitialized : values when I use the -w switch. To avoid those errors : I have done stuff like this: [snip] I think the best solution is a sub routine re-write. I don't play with DBI much but I think

Re: cgi.pm popup menus

2003-06-17 Thread Kristofer Hoch
Chad, It isn't as big of a pain in the ass as you may think...Consider and try = use strict; my @firstList = qw(Monday Tuesday Thursday Friday Saturday); my @secondList = qw(January Febuary March April May June July); printMultipleArrays([EMAIL PROTECTED],[EMAIL PROTECTE

Re: cgi.pm popup menus

2003-06-17 Thread Chad A Gard
On Tuesday, June 17, 2003, at 04:21 PM, Kristofer Hoch wrote: Here you assign element[0] of @_ to $selectName. Then you assign all remaining elements (indexes 1 through infinity) to @selectValues. @selectValues slurps up all remaining elements of @_ leaving poor little $selection to starve to de

Re: cgi.pm popup menus

2003-06-17 Thread Kristofer Hoch
Chad, sub processSelect{ my ($selectName, @selectValues, $selection) = @_; } Here you assign element[0] of @_ to $selectName. Then you assign all remaining elements (indexes 1 through infinity) to @selectValues. @selectValues slurps up all remaining elements of @_ leaving poor little $selectio

Re: Some Qs about the -w switch and initializing vars.

2003-06-17 Thread drieux
On Tuesday, Jun 17, 2003, at 09:33 US/Pacific, Daedalus wrote: [..] # function get_address# sub get_address {my ($dbh, $sth, $searchid, $name, $address1, $address2, $address3, $address4) = @init_array; I would have do

Date

2003-06-17 Thread Van Andel, Robbert
How do I retrieve the system's current hour and date and assign them to a variable? Robbert van Andel

Adding data to file [Long Post]

2003-06-17 Thread Mike Blezien
hello all, I'm trying to change how data is currently being added to a file to condense it and make it easier to work with. Below is the code snip that processes and adds the data to the appropriate file. The current Output to the file is what I am trying to change and not having alot of luck.

Re: Date

2003-06-17 Thread Casey West
It was Tuesday, June 17, 2003 when Van Andel, Robbert took the soap box, saying: : How do I retrieve the system's current hour and date and assign them to a : variable? Perl's builtin function called 'localtime' can help you here. It returns a list of information about the current time and date,

cgi.pm popup menus

2003-06-17 Thread Chad A Gard
I'm having difficulty creating a popup menu. I want a select list, like so: Work Home Mobile Pager Home Fax Work Fax It seems I should be able to get that by doing (simplified, of course. Really data is coming from a db, and I have several different select lists): @phoneLabels = ('Work',

Some Qs about the -w switch and initializing vars.

2003-06-17 Thread Daedalus
Hi all, I have a cgi prog that complains about uninitialized values when I use the -w switch. To avoid those errors I have done stuff like this: --- # Up near the top with a bunch of other defs and the main prog... my @init_array = ("","

RE: Scheduling routine or module

2003-06-17 Thread fliptop
On Tue, 17 Jun 2003 at 10:35, Scot Robnett opined: SR:fliptop wrote: SR:-- SR:are the email addresses stored in a db? any reason you can't use SR:majordomo or ezmlm or something similar? SR: SR: Yes, they're stored in a MySQL database table SR: of subscribers. I -could- use ma

RE: Scheduling routine or module

2003-06-17 Thread Scot Robnett
SR:Is anyone aware of a good module for scheduling an event that is not a SR:command line event? I may just be able to use cron for this but I'm checking SR:if there is another solution. I want to schedule an e-mail to be sent to a SR:list of about 1,000 subscribers at a future time. I'll have the

Re: Scheduling routine or module

2003-06-17 Thread fliptop
On Mon, 16 Jun 2003 at 17:15, Scot Robnett opined: SR:Is anyone aware of a good module for scheduling an event that is not a SR:command line event? I may just be able to use cron for this but I'm checking SR:if there is another solution. I want to schedule an e-mail to be sent to a SR:list of abou