Sending emails when taint checking is on?

2004-08-13 Thread Bryan Harris
For some reason, when I turn on taint checking, my script dies on the line where I open up sendmail to send an email: ** my ($inOrderTxt) = (param('ordertxt') =~ /([\s!-~]+)/); my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime;

Re: stuck at TRUE/FALSE, pls help

2004-08-14 Thread Bryan Harris
I'm pretty new to CGI programming too, so I probably can't answer your original question, but I would suggest that the first line of your script be: #!/usr/bin/perl -wT The -w turns on warnings if your script does one of a list of things that are screwy, like assigning a variable and never usin

Re: How to display a Text file using web browser under CGI

2004-08-14 Thread Bryan Harris
Or how about this? use File::Copy; print "\n\n"; copy "myfile.txt", \*STDOUT; print "\n\n"; - B > Hello! > > An example would look like this: > > #!/usr/bin/perl -w > use strict; > use CGI qw(:standard); > > my $file_loc = "bla"; > my @file; > > if (open(FILE, $file_loc)) { > @file = ;

session ids?

2004-09-21 Thread Bryan Harris
I'm still very much a beginner, but I'm starting to see how establishing a concept of sessions could be quite handy for my website. So I was thinking of coming up with session ids, which could be some encoded combination of their ip address, user name, and the date/time of that session's start.

Re: session ids?

2004-09-22 Thread Bryan Harris
Yes, Wiggins and Sean, thank you! That was just the information I needed to point me off in the right direction. Thanks again. - Bryan >> >> >> I'm still very much a beginner, but I'm starting to see how establishing a >> concept of sessions could be quite handy for my website. So I was