Coexec wrote:
Hi all, I have a question about how to pass form data
with mod_perl and SSI.
I have an HTML page with a mod_perl script included.
The script creates a form and takes its input and then
prints output based on the input (pretty basic). I
have the form action set to the script
[EMAIL PROTECTED] wrote:
What about namespaces, i.e. how
do I avoid stepping on someone else's variable?
Prepend some custom string in front of the VarName:
PerlSetVar MyApp_Var1 value1
PerlSetVar MyApp_Var2 value2
Also, note that these are scoped within the Location block where they
Thomas Klausner wrote:
Hi!
On Sat, Nov 16, 2002 at 10:43:44AM +0100, Marcin Kasperski wrote:
One note: while talking about templating systems for generating HTML,
it can be inspiring to take a look at the Zope Page Templates (yes, I
know, this is the python/zope world, not perl...). They
Matthew Hodgson wrote:
On Fri, 15 Nov 2002, Josh Chamas wrote:
Matthew Hodgson wrote:
Hi,
I have a script which executes under Apache::Registry and resides in
/perl/blah.pl. However, it only generates a fragment of a page, and is
normally embedded into an html template using SSI with
Thomas Klausner wrote:
Yes, this is a RFC for Yet Another Templating System. I know that
there are a lot of those around. But this own might be
different/interesting (at least I think/hope so...)
I also posted this on perlmonks:
http://www.perlmonks.org/index.pl?node_id=213300
Ovid on
Justin Luster wrote:
After doing some additional testing it appears that this problem only
occurs on my Windows machine with Apache 2.0. I tried it on my Linux
box Apache 1.3 and things worked fine.
That's a key distinction. Please make sure you say mod_perl 2 when
that's what you are
Minas wrote:
Recently I installed the Apache::Session module on my server in order
to give a kind of identity to my e-shop visitors, seems to work but
generates different session ids when I reload the bellow test cgi.
What can I do in order to have my visitor the same session id, up to
close his
Justin Luster wrote:
I have an included file that Im requiring:
require test.pl;
Without the END { } block if the script cannot find test.pl I get a
Server error 500 and an appropriate error message in the log file. When
I include the END{ } block I get no Server Error and no message in
Tony Simbine wrote:
wenn i reload it, then sometimes i get the document or an error.
Well, what's the error? Look at your log file. Then look at
http://perl.apache.org/docs/1.0/guide/troubleshooting.html and see if
the error is listed there.
- Perrin
DeAngelo Lampkin wrote:
And of course the other reason is that if the solution to the problem
was so obvious from the error message, somebody would have posted a
solution before I figured it out (with help from you guys).
There is documentation related to this problem in the troubleshooting
[EMAIL PROTECTED] wrote:
Also, NPH is only implemented in the NS browsers, and was a way for a webserver
to send multiple documents inline down to a browser, and was an ancient way
to write status pages and such that automagically refreshed themselves.
No, that's server push you're thinking
Clinton Gormley wrote:
Am I correct in this:
Apache::DBI can only really do its stuff when you perform a
DBI-connect, so by calling $dbh = DBI-connect(..) during PerlChildInit
and then never trying to reconnect, you are defeating the purpose of
using Apache::DBI.
That's right.
To expand on
Wei Gao wrote:
In my perl program executing in Apache web server, I have the
following code:
use CGI ;
$query = new CGI ;
$url = http://www.mycite.com ; #The url to refresh.
print $query-header(-status='200 Ok', -type='text/html');
print htmlheadmeta http-equiv=\Refresh\
Wei Gao wrote:
I have tried print
$query-redirect('http://somewhere.else/in/movie/land') ; before,
which works fine as to redirect the user to the web page. However, if
the user then tries to refresh this page, the CGI script is called
again without any params, which result in Internal
Chris Shiflett wrote:
A meta tag is not something unique to Netscape
I said it was added by Netscape, and I'm pretty sure it was, back in 1.1
or 2.0.
As with any other HTML tag, the meta tag does not need to be part of an HTTP specification in order to be valid. Also, it is guaranteed to
Wei Gao wrote:
Thanks for the reminder. I think the reason that print
$query-redirect(-uri='http://www.mysite.com', -nph=1); is not
working, is because my program doesn't seem to know how to handle
nph. I am using Apach1.3.26 and Perl 5.6.1. I have
use CGI qw(:standard -nph) ; at the
Chris Shiflett wrote:
I just wanted to mention that the meta tag as well as its http-equiv
attribute are both official parts of the HTML standard and have been
for quite some time. Netscape also introduced things like cookies and
SSL, but that should in no way discredit the technology.
I'm
Tony Bowden wrote:
... but I think that there should be a certain level of ability that
should be assumed when coding commercially ...
My current situation is somewhat unusual because Perl is not the
language that the people I am coding with were hired to write. They are
mostly Java
Franck PORCHER wrote:
But for is a lot easier to read and debug, IMHO Is there a
significant performance difference in using map instead?
My experience is that in most cases, the for construct is used
to apply the same treatment to all the elements of an array,
whence the map
Tony Bowden wrote:
It sounds like you're saying that you should only use a subset of Perl
as some programmers may not understand the other parts of it?
That is what I'm saying. I'm aware that this is a controversial opinion
in the Perl world. However, I think it's reasonable to know your
Ged Haywood wrote:
On Fri, 1 Nov 2002, Frank Naude (FJ) wrote:
but, is there any mod_cgi to mod_perl converter available?
Have a look at Apache::Registry.
And to address the specific problem you mentioned about initializaing
variables, look at Apache::PerlRun.
- Perrin
Michael Forbes wrote:
Well, I've managed to make some significant progress: I got past that
hang (apparently modperl was having problems with the URL b/c some of
the values were being passed empty... i.e.,
stage=4eqtype=Allcont=restrictflags=12... notice that cont has no
value.
That sounds
Mithun Bhattacharya wrote:
http://public.yahoo.com/~radwin/talks/yahoo-phpcon2002.htm
If nothing else this should be atleast generate some thoughts ??
It does: hooray! Yahoo is moving from a proprietary server-side
scripting tool to an open source one. Great news for all of us, since
Tom Servo wrote:
Check out their online map site, they do use Python for that.
I'm actually surprised they didn't go with Python, because the people I
know there love it. If their backend data processing ever gets moved
from Perl to something else, it would probably be moved to Python.
-
Mithun Bhattacharya wrote:
No it is not being removed but this could have been a very big thing
for mod_perl. Can someone find out more details as to why PHP was
preferred over mod_perl it cant be just on a whim.
Think about what they are using it for. Yahoo is the most extreme
example of a
harm wrote:
On Wed, Oct 30, 2002 at 06:05:51PM +0800, Philippe M. Chiasson wrote:
For the same reason that running this:
$ perl -e'fork; { $foo = {}; print $$:$foo\n}'
1984:HASH(0x804c00c)
1987:HASH(0x804c00c)
produces this for me, every single time I run this program
You are assuming that
Mrs. Brisby wrote:
$ perl -e '$foo = {}; fork; print $$:$foo\n;'
18161:HASH(0x80fd254)
18162:HASH(0x80fd254)
$ perl -e 'fork; $foo = {}; print $$:$foo\n;'
18163:HASH(0x80fd254)
18164:HASH(0x80fd254)
I expected the first. I didn't expect the second. Thanks for the
explanation.
- Perrin
Larry Leszczynski wrote:
I'm having a problem on Windows 2000 where DBD::Oracle works fine from
perl on the command prompt but not from inside mod_perl. I think it is a
problem loading DLLs but I can't figure out what's different running under
mod_perl. The machine is running:
ActiveState
Cristóvão Dalla Costa wrote:
Perrin Harkins wrote:
They also have more of a
need than most people to integrate with C/C++, and I've been told that
it's easier to hack those into PHP.
What a joke.
Have you written C extensions for both Perl and PHP and think Perl is
easier? Most people
Iain 'Spoon' Truskett wrote:
In general, it makes sense that a simple language would be simple to
extend with C. That's why people like TCL.
They do? =)
Sure. That's why Vignette used TCL: adding your own C commands to the
language is easy. Probably the same story for AOLServer.
-
Richard Clarke wrote:
Before I embark on a day exploring the pros and cons of today's
cleaning/compression tools, I wondered if any of you could give me some
feedback about your own experiences within the context of medium/large scale
web sites/applications (E-Toys etc).
We didn't use
Rodney Hampton wrote:
I really only need 3 tags: one to link the templates together, one
to bring in images, and one to call code that can by dynamically
inserted.
Like an eval, or a subroutine call? Either way, this is all covered by
most of the other systems. Even Apache::SSI can do
Robert Covell wrote:
I simply want to make a module so I can reuse a common header instead of
manually changing each page. Under mod-perl how do you simply create a
module that I can use/require/include that I can call a subroutine/function
to generate some html based on the page you are on.
It
Chris Pizzo wrote:
The documentation tells me how to create a new response object but how do I
reply to a request using my custom response?
HTTP::Response? That's an LWP thing, not a mod_perl thing. Maybe
you're a little confused here? Tell us what you're trying to do.
- Perrin
Chris Pizzo wrote:
OK, I am getting a request from a server and I need to respond with an XML
doc.
So your mod_perl handler is getting an HTTP request and you want to send
back an XML document? No problem, just send it. Set the content-type
if you need to. There's no trick to it. See the
Rodney Hampton wrote:
Let me preface it
by stating that I'm building a very simple templating application.
[...]
Not satisfied, I wanted to make it possible to do something like:
% code_ref Util::Test_Util::test_expand %
and have it swap in the text output from the sub into the template. That
Christian Gilmore wrote:
Hi, Michael. Let me try again with more specifics. I'm required to mash my
service into another organization's authentication scheme, ditching my own
secure methods for their cross-domain unencrypted, unsigned cookie.
[...]
On a side note, if anyone finds the proposed
Erich Oliphant wrote:
I am having difficulty accessing this variable (via the ENV
hash). I decided to make it a PerlLogHandler and register it
REALLY_LAST, thinking that mod_unique_id would've exported UNIQUE_ID
prior to that. However, that does not seem to be the case :)
Something is wrong
[EMAIL PROTECTED] wrote:
Btw when I mean escalate, i mean that the odds of any browser getting
a segfaulting page were increased, not that they are random - a
particular request - URI,User-Agent,Accept,Cookie, etc combo -
consistently segfaults, at least for a few days.
Then it's probably
Chris Winters wrote:
On Fri, 2002-10-18 at 17:46, Tobyn Baugher wrote:
As someone fairly new to mod_perl could you make a suggestion of a good
alternative to Apache::Cookie? I was using it just because, like
Apache::Request, it was *there*.
The pure-perl CGI::Cookie works fine.
John Cameron wrote:
Thankyou! We are using connect_on_init, so this may explain our problem.
What happens if I turn off connect_on_init? Do I need to change our code in
any way? Or will the connection be made automatically?
The connection will be made when you first do a DBI connect in that
John Cameron wrote:
2) Does Apache create a new mysql connection/process for EVERY child
apache process that is spawned?
It creates one in each process that uses the database.
I assume some apache processes are spawned to handle simple
non-database actions such as retrieving a graphic or
George Valpak wrote:
The browser is getting what appears to be the right html for the login form, but it thinks the content-type is text/plain for some reason.
This sounds like a known bug in IE: if it doesn't get a content-type
header it will guess based on the file extension. Netscape does
[EMAIL PROTECTED] wrote:
This is a bug introduced by having to insert workarounds for segfaults
caused by Apache::Cooke/mod_perl. I've been asking for help with this
issue for off and on for months now.
I suggest you stop using Apache::Cookie and see if the segfaults go
away. There are pure
Ed wrote:
Could be bad hardware. Search google for Signal 11.
That's actually pretty rare. Segfaults are usually just a result of
memory-handling bugs in C programs.
- Perrin
Paul Simon wrote:
I was cruising with Apache::DBI, definitely better than the way I had
it, but now suddenly I'm getting this error:
DBD::ODBC::dr FETCH failed: handle 1 is owned by thread 1e90bdc not
current thread b0f18c (handles can't be shared between threads and your
driver may
Ruslan U. Zakirov wrote:
I want to upgrade my project with implementing some feature.
Project was writen for mod_cgi, but I would like to parse content that
was generated by my scripts to implement something like SSI or
Apache::UCase and etc.
You can't do that. However, you can run your CGI
Paul Simon wrote:
I was under the impression that Apache::DBI isn't compatible for this
set up:
win2000 + apache2.0.42 + perl5.8 + mod_perl1.99
For a multi threaded environment, isn't Apache::DBIPool necessary? I'd
rather use Apache::DBI.
Apache::DBIPool doesn't actually exist yet.
Paul Simon wrote:
I currently have CGI pages caching on the client side, which
is helping some, but I'm also going to experiment with CGI::Cache.
There are some mod_perl specific version of this too, like the one from
the mod_perl Developer's Cookbook (Apache::CacheContent), but these are
Kirk Bowe wrote:
Unfortunately after a couple of hours of moderate use Postgres reaches its
max_clients level (which is set below max httpds in httpd.conf)
This is usually caused by mistakes in your connection calls where they
have slightly different connect info resulting in multiple
Eric Frazier wrote:
Here is the kind of thing that is driving me nuts. Please see:
http://perl.apache.org/docs/general/perl_reference/perl_reference.html#Remed
ies_for_Inner_Subroutines
If what this says is true, then either I don't have a closure type problem,
or else what is says isn't
Eric Frazier wrote:
I wanted the DBH to be global since just about every sub in Holds does a
query of some sort.
Three options:
1) Pass it to every sub
2) Make a utility sub that returns a dbh and call it from each sub.
(Sounds like you already made one of these.)
3) Stuff it in $r-pnotes(),
Josh Chamas wrote:
Set MaxRequestsPerChild to 100 for applications that seem to leak
memory which include Embperl 2.0, HTML::Mason, and Template Toolkit.
This is a more typical setting in a mod_perl type application that
leaks memory, so should be fairly representative benchmark
I'm just going to point out a few problems. These are not all related
to your questions.
package Holds;
The case of Holds doesn't match the example sub you posted above. I'm
assuming that was a typo.
use strict;
use Carp;
use warnings;
use QueryPrint;
use vars qw($dbh $processed_hnd
Paul wrote:
What I mean is that before I had a custom access
handler installed to use MySQL without resorting to state management
other than the http NCSA Basic Authentication header
You should be able to do that with FastCGI. Not sure about
PersistentPerl. You'd have to ask the author.
-
Paul wrote:
Looks like the FastCGI binaries are only available for Windows
versions. We'll be on Sun Solaris, but I can probably recompile the
source, if that doesn't cause the open-source police to come get me.
I'm afraid it's not as obvious how to do it as it is with mod_perl. You
may
Paul wrote:
I know there are servlets, but I was led to believe that I would almost
be able to drop my mod_perl modules into the iPlanet server, as if it
has some equivelent functionality. If so, I can't find any evidence of
it, and I'm rather skeptical.
I think your only hope is FastCGI, or
Perrin Harkins wrote:
Paul wrote:
I know there are servlets, but I was led to believe that I would almost
be able to drop my mod_perl modules into the iPlanet server, as if it
has some equivelent functionality. If so, I can't find any evidence of
it, and I'm rather skeptical.
I think
Paul wrote:
The problem isn't so much the registry as the API.
Any use of the Apache API would have to be rewritten. There is no way
around that.
I don't know how I'm going to do all that with iPlanet/LDAP without a
lot of recoding, probably in Java. :(
There's nothing you've mentioned so
On Thu, 2002-10-10 at 14:43, Paul wrote:
There's nothing you've mentioned so far that requires Java. It would
be much faster to port it to FastCGI or the like.
I just meant that iPlanet's internal API was probably going to require
Java or C, and not Perl.
FastCGI and PersistentPerl are
Aaron Johnson wrote:
So in a nutshell
- Create a temp (flag) file
- Generate and send the HTML to the browser which includes a meta
refresh
- Add the temp file to their session data (or something similar)
- Exec a process and send the temp file name to it
- On page refresh look to see if
Also, try to find an alternative to loading all that data into memory.
You could put it in a dbm file or use Cache::FileCache. If you really
have to have it in memory, load it during startup.pl so that it will be
shared between processes.
- Perrin
Anthony E. wrote:
look into
Eric wrote:
What about in the case of a big query result? That is where it seems
like you can get killed.
Riding a bike without a helmet will get you killed; big query results
are no problem. All you have to do is write your program so that it
pages through results rather than loading them
Rodney Broom wrote:
From: Eric [EMAIL PROTECTED]
What about in the case of a big query result?
I may have come into this thread a bit late, but can't you just undefine the storage
when you're done with it?
$data = $sth-fetchall_arrayref;
#... do some stuff;
$data = undef;
grant stevens wrote:
I think all I'm asking about is a performance comparison for a site
comprised of 95% static content between Apache SSI and a mod_perl
db/template system.
Well, mod_include (SSI) is the best choice if it meets your needs. A
modern OS will cache your include files
Martin Moss wrote:
How would I go about identifying if a user logs in from 2 different
browsers?
Can you be more specific? Do you mean two browser windows, or two
different browser programs on the same machine, or two different machines?
I Have a Session object, but I want to hold data
[EMAIL PROTECTED] wrote:
We are using IPC::MM and it works great.
IPC::MM is the fastest game in town. It's only drawback is that the
data is not persistent, so if you want your cache to persist across
restarts it won't work for you.
Apache::SharedMem and all the other modules based
Michael Grant wrote:
It seems that as I work on my script, Apache doesn't reload it when
the script changes on disk.
Are you using Apache::Registry? It only reloads the main file, not any
modules you might be using. For that, you need to use Apache::Reload or
Apache::StatINC (as Nigel
Juan Natera wrote:
The worst of all is that Apache simply doesnt start, and I get no error
message at all.
The error might be on the console, or you could try capturing it and
writing it to a file. However, I suggest you ditch IPC::Shareable since
it's dog slow. Use MLDBM::Sync,
[EMAIL PROTECTED] wrote:
At the first request each instance prints out the no_xhtml-header, but
at the second call the no_xhtml-pragma is forgotten and the
xhtml-header is printed out.
Are you setting $CGI::XHTML to 0 somewhere?
btw and OT : in the previous thread there have been rumours
[EMAIL PROTECTED] wrote:
In the sets of applications that runs under mod_perl on our webserver
we need the same modules twice, but with different pragmas.
app1: use module qw(standard pragma1);
app2: use module qw(standard pragma2);
now, of course - whichever application is needed
Nigel Hamilton wrote:
It would be great to have a similar tool for mod_perl/apache.
The closest thing available is a combination of mod_status and
Apache::Status. If you haven't tried these yet, give them a shot. They
provide a good deal of information.
- Perrin
Todd W wrote:
Im looking at Apache::Session and trying to figure out what it does.
It provides shared storage of a hash of data, and gives you a unique ID
that you can tie to a user.
From what I
can tell, Apache::Session will only give generic sessions, of which I know
nothing about the
Josh Chamas wrote:
I just did a benchmarks to compare mod_perl + apache versions 1 2.
Cool.
Any idea why bytes/hit is lower on apache 2? Are some headers being
omitted?
- Perrin
William McKee wrote:
The way that most people would recommend in A::R or anything else is to
trap errors with eval blocks and then handle them appropriately.
I thought I was doing that at a global level by throwing an error with
die() that was caught by CGI::Carp. I'm realizing that it isn't
Pierre Laplante wrote:
I do not use mod_perl with CGI emulation.
Actually PerlSetupEnv is on by default. Put PerlSetupEnv Off in your
httpd.conf.
Here is my mod_perl code:
You are not running the same Perl code in both situations. Under
mod_perl, you are using Apache::File and various
Your problem doesn't sound like something that Apache::DBI would cause.
Deadlock problems are caused by conflicting updates, which could only
be coming from your code.
I'm not positive but maybe it seemed like there were
stale handlers lying around that weren't being closed
If you put
Pierre Laplante wrote:
If I compiled a c module that embed a perl interpreter and
I benchmark this again the same module in mod_perl
I got a big difference in favor of mod_c.
It will be hard for anyone to give you a good answer unless you post the
code that you benchmarked. At a guess, I
[EMAIL PROTECTED] wrote:
The idea to modify mod_proxy.c is probaly the most
convenient solution. Instead of configure backend
machine from the ProxyPass setting, you may specifically
assign it to the one in the cookie, which takes only a
few lines of code to change --- well, plus extra
Mark Coffman wrote:
I can't imagine that mod_perl will ever be the major scripting language
since it, by nature, is unrestrictive. On a multi-user/multi-host server, I
think I'd rather PHP be run than mod_perl, simply because I don't want sites
stepping on each other's toes and have to worry
Calbazana, Al wrote:
I'd like to know if it is possible to use mod_proxy as a sticky session
manager.
It's possible in the sense that you could write a sticky session manager
and glom it onto mod_proxy. It's certainly not there right now.
If you just want a free load-balancer, take a look
Ask Bjoern Hansen wrote:
On Fri, 6 Sep 2002, Perrin Harkins wrote:
Calbazana, Al wrote:
I'd like to know if it is possible to use mod_proxy as a sticky session
manager.
It's possible in the sense that you could write a sticky session manager
and glom it onto mod_proxy. It's certainly
Stas Bekman wrote:
I think I've had enough coffee. PerlRun recompiles the code on each
request, meaning that it re-runs any BEGIN blocks on each request.
Meaning that My::Config will re-import %CF afresh.
That makes sense. I was thinking that keeping track of which BEGIN
blocks had run
valerian wrote:
So the weird thing is that it runs fine the first time, but when I
reload the page, it doesn't show the variable I imported from
My::Config
Try changing this:
use My::Config;
to this:
require My::Config;
import My::Config;
BEGIN blocks are only run once in
Justin Luster wrote:
Does anyone know anything about flock and mod_perl?
Yes. There is no problem with flock and mod_perl. However, if you were
to open a filehandle in startup.pl and then use that same filehandle
after forking, that could be a problem.
Personally I would suspect Windows in
Chris wrote:
XP is based on the NT Kernel, and should have a working flock. I believe In
recent versions of 5.6.1 flock() is emulated on the 9x kernel as well.
However this doesn't mean mod_perl supports it
It does actually, since mod_perl is Perl. Thanks for the flock
clarification.
-
Justin Luster wrote:
The load tester that I'm using works fine with my script outside of
mod_perl.
Does it work when running them concurrently under CGI?
When multiple concurrent users began hitting the script under mod_perl,
using Apache::Registry or Apache::RunPerl all heck breaks loose.
Justin Luster wrote:
The stress tool that I'm using is from Microsoft and is a free download.
That isn't quite what I asked. Which version of mod_perl are you using?
There is a setting in this tool called
Concurrent Connections (threads).
Regardless, mod_perl 1.x does not support multiple
Chris wrote:
I think he said mod_perl 2 in his inital post.
Oops, you're right, I totally missed that. Sorry Justin.
- Perrin
Narins, Josh wrote:
Before I proceed, are there ANY content management/templating systems that
RELY EXCLUSIVELY on TAG ATTRIBUTE (name=value) nomenclature to allow
interaction between template and perl code?
Of course. HTML_Tree
(http://homepage.mac.com/pauljlucas/software/html_tree/)
Ask Bjoern Hansen wrote:
The performance? I don't remember the exact figure, but it was at
least several times faster than the BerkeleyDB system. And *much*
simpler.
In my benchmarks, recent versions of BerkeleyDB, used with the
BerkeleyDB module and allowed to manage their own locking,
Peter J. Schoenster wrote:
If I'm using Apache::DBI so I have a persistent connection to MySQL,
would it not be faster to simply use a table in MySQL?
Probably not, if the MySQL server is on a separate machine. If it's on
the same machine, it would be close. Remember, MySQL has more work
md wrote:
I haven't looked at the cache modules docs yet...would
it be possible to build cache on the separate
load-balanced machines as we go along...as we do with
template caching?
Of course. However, if a user is sent to a random machine each time you
won't be able to cache anything
[EMAIL PROTECTED] wrote:
We are investigating using IPC rather then a file based structure but
its purely investigation at this point.
What are the speed diffs between an IPC cache and a Berkely DB cache. My
gut instinct always screams 'Stay Off The Disk' but my gut is not always
Jonathan Lonsdale wrote:
2. Distinct content handlers each with their own Location directive. Could
be a pain to maintain the server config.
You would typically have a single handler that covers one application
with many screens, so instead of having an entry there for every
template you
md wrote:
Currently I'm putting very little in the session
Good. You should put in as little as possible.
what I am putting in the session is more global in
nature...greeting, current page number, current page
name...
That doesn't sound very global to me. What happens when users open
md wrote:
I don't think global was the term I should have
used. What I mean is data that will be seen on all or
most pages by the same user...like Hello Jim
Okay, don't put that in the session. It belongs in a cache. The
session is for transient state information, that you don't want to
md wrote:
We are using a load-balanced
system; I shoudl have mentioned that earlier. Won't
that be an issue with caching to disk? Is it possible
to cache to the db?
There are a few ways to deal with this. The simplest is to use the
sticky load-balancing feature that many load-balancers have.
darren chamberlain wrote:
Make those global symbols ($cookie, $user, and $hash) lexical (declare
with my) and the code will both compile and do what you expect (i.e.,
not maintain values from call to call).
That's what I was thinking too. Also, it's really not a good idea to do
your own
Ken Y. Clark wrote:
As for this and Perrin's comment about parsing on your own, the point
is that you've written a lot of code that has already been written and
debugged by a lot of really smart people. There's no reason for you
to be reading STDIN and spliting and all that. If you're using
301 - 400 of 1288 matches
Mail list logo