in reply to mod_perl- am I safe?
I'm assuming that when you mean "posted" variables that you are getting these from CGI.pm. I've found that for sites with multiple scripts and a few support modules under mod_perl, you'll want to create the CGI object from the scripts as opposed to the support modules; even though the script stays resident in memory, the entire body is effectively wrapped into a block, such that a call like my $cgi = new CGI; only exists for that once-through and no more. If you try to move the CGI creation into the support modules and exporting the $cgi value, you'll run into problems there since that $cgi is not recreated on each HTTP access.
But again, absolutely test your mod_perl code with a database that can be thrown away or with appropriate debugging statements in place of the SQL statements, before you bring up the site live. It sounds like you should be ok by just mod_perl'ing it, but you never know.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: mod_perl- am I safe?
by Hero Zzyzzx (Curate) on Mar 23, 2001 at 20:02 UTC | |
by Masem (Monsignor) on Mar 23, 2001 at 20:35 UTC |