RE: can't properly append to file from mod_perl script

2000-07-05 Thread Geoffrey Young
mod_perl guide is full of lots of goodies that are worth reading... HTH --Geoff -Original Message- From: Rob Egan [mailto:[EMAIL PROTECTED]] Sent: Friday, June 30, 2000 8:01 PM To: [EMAIL PROTECTED] Subject: RE: can't properly append to file from mod_perl script Hi, I sent

RE: can't properly append to file from mod_perl script

2000-06-30 Thread Rob Egan
Hi, I sent an earlier post with a script that was appending garbage along with user email addresses that were submitted through a form. After seeing all the suggestions about improvement, I went ahead and rewrote the script from scratch (it's much shorter now!). My version actually prevents

RE: can't properly append to file from mod_perl script

2000-06-29 Thread Geoffrey Young
you might want to 'use strict' and see what pops up :) additionally, you might want to read up on mod_perl_traps.pod and http://perl.apache.org/guide/porting.html specifically http://perl.apache.org/guide/porting.html#Exposing_Apache_Registry_secret HTH --Geoff -Original Message-

Re: can't properly append to file from mod_perl script

2000-06-29 Thread Vivek Khera
"RE" == Rob Egan [EMAIL PROTECTED] writes: RE CGI scripts to behave in mod_perl. All it does is capture e-mail addresses, RE and place them in a text file so we can gather them up later and drop them RE into a database. If you run the script as a regular CGI (without mod_perl RE enabled) it

Re: can't properly append to file from mod_perl script

2000-06-29 Thread Frank D. Cringle
Vivek Khera [EMAIL PROTECTED] writes: "RE" == Rob Egan [EMAIL PROTECTED] writes: RE CGI scripts to behave in mod_perl. All it does is capture e-mail addresses, RE and place them in a text file so we can gather them up later and drop them RE into a database. If you run the script as a

Re: can't properly append to file from mod_perl script

2000-06-29 Thread Stas Bekman
On 29 Jun 2000, Frank D. Cringle wrote: Vivek Khera [EMAIL PROTECTED] writes: "RE" == Rob Egan [EMAIL PROTECTED] writes: RE CGI scripts to behave in mod_perl. All it does is capture e-mail addresses, RE and place them in a text file so we can gather them up later and drop them RE

Re: can't properly append to file from mod_perl script

2000-06-29 Thread Matt Sergeant
On Thu, 29 Jun 2000, Stas Bekman wrote: When using file locking one must make sure, that if the script has been stopped before the close() was called, to use an END block under Registry or $r-register_cleanup() anywhere. See: