mod_perl & SQL

2002-06-28 Thread eric-perl
Hello, All: Can anyone recommend a good introductory-level tutorial on writing mod_perl modules that interface with SQL? -- Eric P. Los Gatos, CA -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Displaying Problems

2002-06-26 Thread eric-perl
On Tue, 25 Jun 2002, Kyle Babich wrote: > Ok, I did like perldoc cgi said and changed it to this: > > print start_html( > -title => "IMAP.cc", >-head => Link( >{ >-rel => "stylesheet", >-type => "text/css", >-href => "style.css", >

Re: Send mail question

2002-05-17 Thread eric-perl
On Fri, 10 May 2002, fliptop wrote: > Lance Prais wrote: > > If I am going to sendmail from an Internet using CGI does anyone know all > > the modules I will need to install? This may answer all my questions. > > i use mime::lite and it works great and is simple to use. Ditto. -- Eric P. Los

Re: cookies

2002-03-11 Thread eric-perl
On Tue, 12 Mar 2002, Matthew Harrison wrote: > #!/usr/bin/perl > > use CGI qw/:standard/; > $q = new CGI; > print header(); > > $cookie = $q->cookie(-name=>'fontsize', >       -value=>'12', >       -expires=>'20s', Matt: You must print the output of CGI.pm to ST

Re: apple and oranges

2002-03-07 Thread eric-perl
On Wed, 6 Mar 2002, Fred Sahakian wrote: > Im taking in data through a Perl Script with the following conversion: > > $value = ~s/Apple/Orange/g; > > This is fine for new data, but each time the program is run it's > taking all the data being entered and turning the apples into oranges, > any id

Re: Escaping special characters for regular expressions

2002-02-28 Thread eric-perl
On Wed, 27 Feb 2002, W P wrote: > I have a CGI script which takes two strings. It searches for the first > string in a file, replacing it with the second one. This file isn't > really important, more for fun, so I'm not too worried about people > deleting the whole file if they actually type out

Re: Session cookies

2002-02-27 Thread eric-perl
On Wed, 27 Feb 2002, Octavian Rasnita wrote: > I want to set a cookie in a Perl script only for the current session, and I > don't need that cookie after the visitor closes the browser. > > Can I use this kind of cookie if the user has deactivated cookies in her > browser? > > I can't test this

Re: Uploading a file

2002-02-27 Thread eric-perl
On Wed, 27 Feb 2002, Octavian Rasnita wrote: > I saw a question about how to make a Perl script for uploading a file > and I didn't see any answer for it. I am also interested in this > thing. > > Could somebody give us some hints? > Or, give us a source for a Perl script for uploading a file. >

Re: Is it a problem?

2002-02-27 Thread eric-perl
On Wed, 27 Feb 2002, Octavian Rasnita wrote: > Hi all, > > I am new in Perl world, and I saw many messages telling that it is a > security problem is someone can download the passwd file from a Unix > machine. > I have 2 questions: > 1. As far as I know, that file has the passwords crypted and t

Re: Things that make you go hmmmmmmmm

2002-02-26 Thread eric-perl
On Tue, 26 Feb 2002, Scot Robnett wrote: > What typically causes the following type of error in a CGI? > --- > Use of uninitialized value in concatenation (.) > at D:\inetpub\whatever\census\myscript.cgi line 272. > -