Re: Apache::Session - What goes in session?

2002-08-19 Thread Perrin Harkins
of user object which has a property of default_page_id. The first time the user logs in I would fetch that from the database, and then I would cache it so that I wouldn't need to go back to the database for it on future requests. - Perrin

Re: Apache::Session - What goes in session?

2002-08-19 Thread Perrin Harkins
the db if your cache went down). - Perrin

Re: Apache::Session - What goes in session?

2002-08-20 Thread Perrin Harkins
pages can have any number of user selected features per page and features themselves can have archive depths of anywhere from 3 to 20 years, there's a lot of info. No problem, disks are cheap. 400MB of disk space will cost you about as much as a movie in New York these days. - Perrin

Re: Apache::Session - What goes in session?

2002-08-20 Thread Perrin Harkins
options like Cache::Mmap and Cache::FileCache are much faster than anything based on IPC::Sharelite and the like. I have charts and numbers in my TPC presentation, which I will be putting up soon. - Perrin

Re: Apache::Session - What goes in session?

2002-08-21 Thread Perrin Harkins
, beat all available flat-file modules. It may be possible to improve the flat-file ones, but it even beat Tie::TextDir which is about as simple (and therefore fast) as they come. The only thing that did better was IPC::MM. - Perrin

Re: Apache::Session - What goes in session?

2002-08-21 Thread Perrin Harkins
to do (parse SQL statement, make query plan, etc.) than a simple hash-based system like BerkeleyDB does. Best thing would be to benchmark it though. - Perrin

Re: Done before?

2002-08-27 Thread Perrin Harkins
/) works this way and is mentioned in my templating guide (http://perl.apache.org/docs/tutorials/tmpl/comparison/comparison.html). There is a more recent module based on the same idea, HTML::Seamstress, available on CPAN. - Perrin

Re: Filehandles

2002-08-29 Thread Perrin Harkins
in this case. I don't know about XP, but Windows 95/98/ME did not have a working flock. If XP is based on the NT code, it may not have that problem. Even so, I would try testing that first, or maybe asking about it on Win32 perl mailing list. - Perrin

Re: Filehandles

2002-08-29 Thread Perrin Harkins
. - Perrin

Re: Filehandles

2002-08-29 Thread Perrin Harkins
. Hmmm, which version of mod_perl are you using? If you're using 2.x, I can't help you there since I've never tried it on Win32. Maybe Randy will have some ideas. If you have 1.x, there is no concurreny under mod_perl -- requests are serialized. - Perrin

Re: Filehandles

2002-08-29 Thread Perrin Harkins
concurrent users on Windows. It will serialize those requests. - Perrin

Re: Filehandles

2002-08-29 Thread Perrin Harkins
Chris wrote: I think he said mod_perl 2 in his inital post. Oops, you're right, I totally missed that. Sorry Justin. - Perrin

Re: Apache::PerlRun weird behavior?

2002-09-01 Thread Perrin Harkins
there is something about the specific versions of Perl/mod_perl that affects this. - Perrin

Re: Apache::PerlRun weird behavior?

2002-09-02 Thread Perrin Harkins
run, meaning that it should be compiling the used module again. That doesn't explain why he's having trouble though. - Perrin

Re: lame load balancer, mod_proxy, and sticky sessions

2002-09-06 Thread Perrin Harkins
at one of the many open source projects out there like http://linux-ha.org/. - Perrin

Re: lame load balancer, mod_proxy, and sticky sessions

2002-09-06 Thread Perrin Harkins
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

Re: lame load balancer, mod_proxy, and sticky sessions

2002-09-10 Thread Perrin Harkins
not worth it, with so many open source solutions already available. - Perrin

Re: mod_perl statistics on securityspace.com

2002-09-10 Thread Perrin Harkins
about restarting httpd. Isn't PHP just as dangerous as mod_perl when run in the server process (as opposed to CGI mode) on a multi-user virtual host server? - Perrin

Re: Morning bug w/out using Apache::DBI?

2002-09-11 Thread Perrin Harkins
. - Perrin

Re: performance regarding mod_perl vs mod_c with embedded perl

2002-09-11 Thread Perrin Harkins
would say that mod_perl is probably doing more work in order to give you access to apache internals. You also may not have configured mod_perl for best performance. For example, if you have it configured to emulate CGI by setting up environment variables that will take more time. - Perrin

Re: performance regarding mod_perl vs mod_c with embedded perl

2002-09-12 Thread Perrin Harkins
things down a little. Also, if you are not handling any phases of the request other than the content handler, you can improve the speed of mod_perl by compiling it without the hooks for the other phases. - Perrin

Re: Error messages in Apache::Registry

2002-09-17 Thread Perrin Harkins
that Carp::longmess_heavy is catching my die() calls despite the fact that I have set `local $SIG{__DIE__} = \mydie;`. As you discovered, this seems to be interference from the debugger. I'm not sure how to turn that off, although you could probably look at perl5db.pl and edit it. - Perrin

Re: mod_perl 2.x vs. mod_perl 1.x benchmarks

2002-09-18 Thread Perrin Harkins
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

Re: top for apache? [OT]

2002-09-22 Thread Perrin Harkins
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

Re: Apache::Session and user sessions

2002-09-22 Thread Perrin Harkins
and gaining access to another person's information. By the way Tie::DBI is slow. Writing some kind of module for accessing your specific user table would be faster. - Perrin

Re: same module with different pragmas

2002-09-23 Thread Perrin Harkins
around this problem or do I need to copy the module and alter its name ? That won't help. It's about the module namespace, not the file name. - Perrin

Re: modules and pragmas - part II

2002-09-24 Thread Perrin Harkins
or CGI_Lite. - Perrin

Re: [Q][LONG] using IPC::Shareable to cache data, Apache doesnt start

2002-10-03 Thread Perrin Harkins
::FileCache, IPC::MM, or Cache::Mmap. - Perrin

Re: perl script not reloading

2002-10-04 Thread Perrin Harkins
pointed out). (if so, it should be documented in the mod_perl_traps man page). It's all documented here: http://perl.apache.org/docs/1.0/guide/ - Perrin

Re: Apache::SharedMem

2002-10-06 Thread Perrin Harkins
::ShareLite or IPC::Shareable are slow. If IPC::MM won't work for you, I'd suggest MLDBM::Sync, Cache::FileCache, or Cache::Mmap. - Perrin

Re: identifying a unique browser session

2002-10-07 Thread Perrin Harkins
identifying ID. I can't tell what the problem is from your description. Maybe you're looking for something like Apache::AuthTicket? - Perrin

Re: memory usage problem!

2002-10-08 Thread Perrin Harkins
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 Apache

Re: memory usage problem!

2002-10-08 Thread Perrin Harkins
all into memory at once. The only time this becomes difficult is when you need to load a large BLOB fram the database. - Perrin

Re: memory usage problem!

2002-10-08 Thread Perrin Harkins
into that scalar on most requests.) - Perrin

Re: figures/resources on content via apache SSI vs. database-driven(perl DBI)

2002-10-08 Thread Perrin Harkins
static files. A system like Mason or Template Toolkit that caches the files in memory would quickly blow up in that situation, and you would end up needing to work around it by keeping most of the pages on disk and loading them at request time, just like SSI. - Perrin

Re: Forking process

2002-10-09 Thread Perrin Harkins
. - Perrin

Re: [OT] migrating from Apache to iPlanet; any mod_perl counterpart?

2002-10-10 Thread Perrin Harkins
, or PerlEx if you're running it on Windows. - Perrin

Re: [OT] migrating from Apache to iPlanet; any mod_perl counterpart?

2002-10-10 Thread Perrin Harkins
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

Re: [OT] migrating from Apache to iPlanet; any mod_perl counterpart?

2002-10-10 Thread Perrin Harkins
far that requires Java. It would be much faster to port it to FastCGI or the like. - Perrin

Re: [OT] migrating from Apache to iPlanet; any mod_perl counterpart?

2002-10-10 Thread Perrin Harkins
gonna miss that. Again, I don't understand what you think you're going to lose. All the basic data available under mod_perl is available under everything else as well, albeit with a slightly different API. - Perrin

Re: [OT] migrating from Apache to iPlanet; any mod_perl counterpart?

2002-10-11 Thread Perrin Harkins
. - Perrin

Re: [OT] migrating from Apache to iPlanet; any mod_perl counterpart?

2002-10-11 Thread Perrin Harkins
/devkit/doc/fastcgi-whitepaper/fastcgi.htm ) doesn't offer any API Everything offers an API. CGI is an API. If I understand correctly, you just want to write a custom access control thingy. FastCGI calls that an authorizer and it is documented in that whitepaper. - Perrin

Re: Apache::DBI and CGI::Application with lots of modules.

2002-10-12 Thread Perrin Harkins
a database handle and use it from everywhere. Doesn't need to be inherited, you can just stick it in a module that all the other modules call. Hope some of that was helpful, Perrin

Re: Apache::DBI and CGI::Application with lots of modules.

2002-10-14 Thread Perrin Harkins
if you need to. - Perrin

Re: Apache::DBI and CGI::Application with lots of modules.

2002-10-14 Thread Perrin Harkins
/pod/perlobj.html#Indirect-Object-Syntax - Perrin

Re: Apache Hello World Benchmarks Updated

2002-10-14 Thread Perrin Harkins
they can find some problem and fix it, which is usually not the case. - Perrin

Re: Can I parse content that has been returned to user by simplecgi script?

2002-10-15 Thread Perrin Harkins
scripts under Apache::PerlRun and then use Apache::Filter on them to do things like SSI. This will also make them much faster. - Perrin

Re: Apache::DBI for persistent connections

2002-10-15 Thread Perrin Harkins
. Apache::DBI will work correctly in a threaded environment if your DBD is thread-safe. Remember, no variables are shared between Perl threads unless you explicitly share them. - Perrin

Re: current state of conf/code, feedback?

2002-10-15 Thread Perrin Harkins
back to bite you later if your module gets automatically reloaded when you change it. - Perrin

Re: Is there an easy way to trace / debug Apache::DBI (Postgres)leaks?

2002-10-15 Thread Perrin Harkins
with mod_perl. - Perrin

Re: current state of conf/code, feedback?

2002-10-16 Thread Perrin Harkins
need a CLONE method added) at C:/Perl/site/lib/Apache/DBI.pm line 64. What's going on? You'd be better off asking on the DBI list, but it looks to me like your DBD is not thread-safe, or else you opened a connection before the fork (in startup.pl). - Perrin

Re: [newbie] How do I send a custom HTTP::Response?

2002-10-23 Thread Perrin Harkins
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

Re: [newbie] How do I send a custom HTTP::Response?

2002-10-23 Thread Perrin Harkins
the mailing list archives for more on this. - Perrin

Re: code evaluation in regexp failing intermittantly

2002-10-23 Thread Perrin Harkins
you've hit on a new feature, stop now and download one of those. If you're doing it because hacking perl is fun and you're in no rush, then go ahead and have a good time. - Perrin

Re: Do all apache childs create persistant mysql connections?

2002-10-18 Thread Perrin Harkins
in that process. When you use connect_on_init, it is made when the child process spawns. You would still be advised to move the static files to another server. - Perrin

Re: Do all apache childs create persistant mysql connections?

2002-10-18 Thread Perrin Harkins
multiple database connections per child. - Perrin

Re: Apache::AuthcookieDBI issue - NS broswers display login form incorrectly?

2002-10-18 Thread Perrin Harkins
: $r-header_out(content_type= text/html); $r-send_http_header; Try $r-content_type(text/html) instead of header_out. - Perrin

Re: [OT] Perl vs. PHP..... but where is mod_perl?

2002-10-18 Thread Perrin Harkins
Perl modules that handle cookies well, and it's not an expensive operation. Apache::Cookie is probably overkill in most situations. - Perrin

Re: repost: [mp1.0] recurring segfaults on mod_perl-1.27/apache-1.3.26

2002-10-18 Thread Perrin Harkins
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

Re: [OT] Perl vs. PHP..... but where is mod_perl?

2002-10-19 Thread Perrin Harkins
to cause problems.. - Perrin

Re: [OT] Perl vs. PHP..... but where is mod_perl?

2002-10-19 Thread Perrin Harkins
. That's a good one, and so is CGI::Simple::Cookie. - Perrin

Re: Handler Access to vars created by other modules. (modperl 2.0)

2002-10-21 Thread Perrin Harkins
with your mod_unique_id setup. The mod_unique_id variable should in %ENV from the beginning. - Perrin

Re: AuthCookie questions

2002-10-22 Thread Perrin Harkins
use a crypto signature they can still sniff someone else's legit cookie off the wire, but at least you can prevent them from tampering with the contents of the cookie. Never trust the client. - Perrin

Re: Making a module-It can't be this hard.

2002-10-25 Thread Perrin Harkins
. - Perrin

Re: code evaluation in regexp failing intermittantly

2002-10-26 Thread Perrin Harkins
already have a working system, then go with it. If you find yourself having to revisit the code because you need to add things or are finding bugs or performance problems, consider benefitting from someone else's hard work. - Perrin

Re: Apache::Clean, Apache::Compress, mod_gzip/deflate, cross sitescripting and more.

2002-10-28 Thread Perrin Harkins
. - Perrin

Re: Yahoo is moving to PHP ??

2002-10-30 Thread Perrin Harkins
, filling in the includes and dbm files that the server-side script assembles. Perl is not being removed. - Perrin

Re: [OT] Re: Yahoo is moving to PHP ??

2002-10-30 Thread Perrin Harkins
. - Perrin

Re: Yahoo is moving to PHP ??

2002-10-30 Thread Perrin Harkins
the best performance. The cache they use works just the same as Perl's normal operation, i.e. once some code is compiled it stays in memory and doesn't need to be compiled again. You don't have to do anything to get that in Perl. - Perrin

Re: Same $dbh under different pids?

2002-10-30 Thread Perrin Harkins
how that would happen though, based on the code shown here. - Perrin

Re: Same $dbh under different pids?

2002-10-30 Thread Perrin Harkins
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

Re: DBD::Oracle/Windows2000 OK from prompt, not mod_perl?

2002-10-30 Thread Perrin Harkins
::Oracle with Randy's distro, use it. Otherwise, you need to build DBD::Oracle with the same perl he used, or build mod_perl with ActiveState 633. - Perrin

Re: Yahoo is moving to PHP ??

2002-10-30 Thread Perrin Harkins
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

Re: Yahoo is moving to PHP ??

2002-10-30 Thread Perrin Harkins
. - Perrin

Re: hangs on $ENV{'QUERY_STRING'}

2002-10-31 Thread Perrin Harkins
fetch_row is performing exactly the way it should... but when it tries to do anything with my scalar once it has a null in it, it just chokes sits there until it times out. Are you using the pre-fork MPM? If not, do you know if your DBD driver is threadsafe? - Perrin

Re: [O] Re: Yahoo is moving to PHP ??

2002-11-01 Thread Perrin Harkins
to take your code from nice, readable perl to evil hx0r PERL in 3 characters. This is the kind of thing that Yahoo was probably worried about when the decided not to use Perl. - Perrin

Re: [O] Re: Yahoo is moving to PHP ??

2002-11-01 Thread Perrin Harkins
), and write confusing code with it by jamming too much into the map { some stuff } list form. - Perrin

Re: MOD_Perl Converter

2002-11-01 Thread Perrin Harkins
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

Re: [O] Re: Yahoo is moving to PHP ??

2002-11-03 Thread Perrin Harkins
not something that any two people will ever agree on. This used to bother me more before I realized that all languages have this problem, even though they try to deny it. I've seen some hideous Java code at this place that really takes the wind out of the Java is more maintainable argument. - Perrin

Re: When using Apache::DBI...

2002-11-05 Thread Perrin Harkins
multiple calls to Apache::DBI. - Perrin

Re: use http-equiv to refresh the page

2002-11-05 Thread Perrin Harkins
=\0;URL=$url\ //head/html; Uh, that's not a redirect; that's an ugly proprietary hack. You should be using standard HTTP redirects. See http://search.cpan.org/author/JHI/perl-5.8.0/lib/CGI.pm#GENERATING_A_REDIRECTION_HEADER for more. - Perrin

Re: use http-equiv to refresh the page

2002-11-05 Thread Perrin Harkins
to their browsers. It's not part of any HTTP spec and isn't guaranteed to work, even on totally correct web browsers. - Perrin

Re: use http-equiv to refresh the page

2002-11-05 Thread Perrin Harkins
just send a real header instead.. - Perrin

Re: use http-equiv to refresh the page

2002-11-05 Thread Perrin Harkins
in IE and then reload the page, it reloads the page I was redirected to. Since this is all getting pretty far off topic for the mod_perl list, you might want to try asking on a CGI-specific list or on http://perlmonks.org/. - Perrin

Re: use http-equiv to refresh the page

2002-11-05 Thread Perrin Harkins
think that's what he was trying to do. He had a wait time of 0 in his example. - Perrin

Re: use http-equiv to refresh the page

2002-11-06 Thread Perrin Harkins
mod_perl with the PerlSendHeader option on. NPH script behave like mod_perl with PerlSendHeader off. - Perrin

Re: Help mod_perl 1.27 and DB

2002-11-08 Thread Perrin Harkins
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

Re: Can't locate object method new via package Apache::Request(via Mason)...SOLVED

2002-11-08 Thread Perrin Harkins
#install_driver_Oracle__failed__Can_t_load__DBD_Oracle_Oracle_so__for_module_DBD__Oracle - Perrin

Re: Using Perl END{} with Apache::Registry

2002-11-12 Thread Perrin Harkins
in the log file. It is almost as if the END{ } is overwriting the ModPerlRegistry error system. Does it make any difference if you change what's in the END block? - Perrin

Re: Using Perl END{} with Apache::Registry

2002-11-13 Thread Perrin Harkins
are using. There is actually no module called Apache::Registry in mod_perl 2, so I assumed you meant the 1.x series. - Perrin

Re: problem with session ids

2002-11-13 Thread Perrin Harkins
web browser. You're going to have to do some debugging to find out why your script isn't working. You use of Apache::Session::File looks okay, except that you don't handle possible errors. Check if the cookie is being set, if the files are being created in /tmp, etc. - Perrin

Re: RFC: Template::YetAnother

2002-11-16 Thread Perrin Harkins
://search.cpan.org/author/TBONE/HTML-Seamstress-1.17/Seamstress.pm There is also an implementation that copies the Zope style pretty closely called Petal: http://search.cpan.org/author/JHIVER/Petal-0.77/lib/Petal.pm - Perrin

Re: Executing Apache::Registry cached script from normal mod_perl

2002-11-16 Thread Perrin Harkins
. - Perrin

Re: RFC: Template::YetAnother

2002-11-16 Thread Perrin Harkins
off on your own. - Perrin

Re: Newbie: how to use PerlSetVar

2002-11-20 Thread Perrin Harkins
they are defined. This means you can actually have different values for different locations, different virtual hosts, etc. - Perrin

Re: [SOT] Strange browser behavior

2002-11-21 Thread Perrin Harkins
we're talking about IE) and then returning to it via the bookmark? It may also no longer send POST data or give the option of no longer sending it if you go back to a page resulting from a POST after a certain amount of time. - Perrin

Re: mod_Perl script and SSI need advice

2002-11-21 Thread Perrin Harkins
script? How are you running the CGI? Apache::Registry? - Perrin

Re: General interest question: PDF contents handling in PostgreSQL.

2002-11-26 Thread Perrin Harkins
/indexed from it into the RDBMS. You can easilly add this to DBIx::FullTextSearch. All you need to do is write a simple frontend that uses a PDF reading module to extract the text. However, it uses MySQL rather than PostgreSQL. - Perrin

Re: Resetting cache Apache::Registry

2002-12-03 Thread Perrin Harkins
, you can do this: delete $INC{'Your/Module.pm'}; require Your::Module; But that glosses over a lot of details about imports and such, so you're better off using Apache::Reload if you can. - Perrin

Re: Apache::Session and user sessions

2002-12-09 Thread Perrin Harkins
calls are run. I'm curious as to what characters to limit for usernames in particular. If you're using bind variables with DBI, there is no technical reason to restrict the characters at all. Just make sure you HTML-escape them whenever you display them on a page. - Perrin

<    5   6   7   8   9   10   11   12   13   >