[Handel] mp1 database connectivity
Christopher H. Laco
claco at chrislaco.com
Wed May 3 21:35:50 CEST 2006
Christopher H. Laco wrote:
>> Sure, attached :-)
>>
>> Like I say, the problem is ->connection unconditionally being called in
>> the BEGIN block in Handel/DBI.pm. If it was obvious to me how to patch
>> it so this happens in a condition without hosing your Handel apps, I
>> wouldn't be wasting your time like this.
>>
>> Todd W.
>>
>
> Not a waste of time at all really. Any MP code in there was just a guess
> on my part since I barely use it any more. I run the current site under
> FastCGI, and the demo [of course] doesn't have this issue. I'm sure it's
> just something I didn't think of about the MP lifecycle, and when
> connections get set vs/ read from the httpd.conf...
>
> Just for giggles, what happens if you leave th offending line in
> Handel::DBI, and put this in your FundRaiser.pm:
>
>
> Handel::DBI->connection(
> 'dbi:mysql:dbname=handel',
> 'handeluser',
> 'handelpass'
> );
>
> -=Chris
From the looks of it, that's exactly what I did under mp before I moved
to FastCGI:
http://svn.handelframework.com/handelframework.com/trunk/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
Url : http://lists.rawmode.org/pipermail/handel/attachments/20060503/b279365e/attachment.pgp
More information about the Handel
mailing list