Perl interpreter linking question

2011-08-30 Thread Patrick Galbraith
Hi all, I have a question, not so much a mod_perl question as it is a question about how mod_perl handles library issues, linking, etc, since it is a perl interpreter built into Apache, and I have a similar project I'm trying to work on for a client. The project is that they want to have a bash

Re: Bug with cgi-header() + mod_perl ?

2009-02-14 Thread Patrick Galbraith
PM, Patrick Galbraith p...@patg.net wrote: After looking at it in gdb, I noticed it has something to do with Apache2::RequestRec, the header in particular. My guess is that you're keeping an old CGI or $r object around between requests, or that this is some kind of special scenario where

Apache request processing phases question

2009-02-10 Thread Patrick Galbraith
Hi all, I'm in the midst of writing a book currently, and am covering the sections in the book on mod_perl and Apache. In previous texts for Apache 1.3, it would show 11 phases. In the document on http://httpd.apache.org/docs/2.2/developer/request.html, it shows 4 primary phases, each having

Bug with cgi-header() + mod_perl ?

2009-02-10 Thread Patrick Galbraith
Hello all, I'm writing about the benefits of mod_perl in my book, having taken a CGI script and using ModPerl::Registry turning it into a mod_perl app... so on so forth... While testing what I'm writing about, I keep seeing segfaults in my apache log. I started worrying that I have a bug in

Perl/mod_perl/DBI: To thread, or not to thread

2008-09-11 Thread Patrick Galbraith
Hi all, I'm currently working on... of all things, a book on book about web app programming with perl/apache/mysql, and I'm trying to explain what Ubuntu packages to use for installation (and I'm sure other Linux variants same applies) Ubuntu gives you: apache2-mpm-prefork

conditional require of Apache::Constants, answer

2007-04-03 Thread Patrick Galbraith
Ok, I figured it out with one last suggestion from a friend: BEGIN { if (exists $ENV{MOD_PERL}) { require Apache::Constants; import Apache::Constants qw(:common :http); } } That is the ticket! Thanks to all who were to answer! Patrick -- Patrick Galbraith, Senior Programmer Grazr

reposting form values

2006-11-28 Thread Patrick Galbraith
Hi all, Quick question - how does one do a repost (using POST, not GET) form values? This would be in a redirect TransHandler. Thanks much! Patrick -- Patrick Galbraith, Senior Systems Engineer MySQL AB, www.mysql.com Satyam Eva Jayate - Truth Alone Triumphs Mundaka Upanishad

Re: User Authentication questions

2006-11-27 Thread Patrick Galbraith
! Patrick ps. I checked out the mod_perl docs from svn, and most of them seem to be pod. What is the nice trick to getting them in html format? -- Patrick Galbraith, Senior Systems Engineer MySQL AB, www.mysql.com Satyam Eva Jayate - Truth Alone Triumphs Mundaka Upanishad

User Authentication questions

2006-11-26 Thread Patrick Galbraith
on a number of apache/mod_perl versions, which includes allowing it to run using CGI, which I've found using PerlTransHandler requires me to set PerlOptions +GlobalRequest to my httpd-perl.conf. What are the repercussions for using this setting? Thanks in advance! Patrick -- Patrick

Directory manipulations

2006-11-21 Thread Patrick Galbraith
Hi all, Just a quick question: I have a handler that is for user registration. The user logs in and then can do various tasks like viewing their files (say text files for example), change their password, editing files, etc. The handler would be: http://my.site.com/userreg, and for instance,

simple two server (front end - back end) setup help

2003-10-08 Thread Patrick Galbraith
that take a long time to figure out! ;) thank you in advance for any help! regards, Patrick -- Patrick Galbraith Senior Software Developer [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] 206.719.2461