hi martin
I'm not a expert but here what 've done
package MyConn;
use strict;
use vars qw( $dbh ); # cached connection, one by apache child
my $dsn = "dbi:postgresql:dbname=mydb";
my $user = "myuser";
my $password = "mypass";
sub getCached {
my $pkg = shift;
if ( $dbh ){
if (
> How long has CLEANUP been around?
I added it somewhere in 0.2x (so about 2-3 years ago)
> I remember asking you about END blocks a
> while ago and you said you'd add it to the todo list.
Oh, sorry. I don't use CLEANUP often, so looks like I had just forget to
mention it when you ask the last
>
> No luck. Here is what I have in my httpd.conf.
looks ok
> I also have PerlModule
> HTML::Embperl commented out , supposedely this causes apahce to silently
> fail on some systems.
>
It fails when mod_perl is compiled as DSO and mod_perl version is less then
1.22. So either link it staticly
> You can define a sub named CLEANUP in every Embperl page. That will be call
> after the request is finish and the connection to the browser has been
> closed. As the name suggest, a good place for cleaning up (like closing
> database handles).
How long has CLEANUP been around? I remember asking
hi,
>
> I thinks this one's for you Gerald... I want my perl module to know
> when it is being called by an embperl page and when the page's finished.
>
> I can't count with BEGIN and END because the interpreter persistent,
> allright, but is there any sub I can declare that will catch cal
>
> That is very possible, but I put them directly in a virtual host where I
> have another existing PerlSetEnv variable in the format of the
> following...
>
> PerlSetEnv EMBPERL_MAILHOST
> PerlSetEnv EMBPERL_MAILFROM
>
> Where should they be if this is incorrect
hi,
>
> maybe its dead off-topic, but as it's 'offered' as an embperl
> complement, I'd like to know about your experiences in using
> DBIx::Recordset . I'm currently using a DBI with DBD::mysql and Tie::DBI
> for 'quicky' access and pure DBI for real work.
>
> does it offer any advantage?
> For some
> reason though, when I initialized EMBPERL_MAILHOST and EMBPERL_MAILFROM in
> my httpd.conf ( PerlSetEnv EMBPERL_MAILHOST the_mail_host ), it does not
> take any affect, in my maillog it has the mail host as localhost
> and domain
> as WWW-Server, which are the defaults. Any ideas?
>
That is very possible, but I put them directly in a virtual host where I
have another existing PerlSetEnv variable in the format of the following...
PerlSetEnv EMBPERL_MAILHOST
PerlSetEnv EMBPERL_MAILFROM
Where should they be if this is incorrect?
Thank you,
H
hi,
>
> I'm starting to write a custom module to use it in embperl pages and
> just can't get it to work under embperl.
>
> The only thing the module is doing is exporting 1 simple 'test'
> function. It compiles/works allright under plain perl, but errs under
> embperl, saying syntax erro
> > maybe its dead off-topic, but as it's 'offered' as an embperl
> > complement, I'd like to know about your experiences in using
> > DBIx::Recordset.
>
> Gerald, I wanted to ask the same: is Recordset on topic here? I believe
> it's OK since Recordset is designed for Embperl and used mostly
Martin Langhoff wrote:
>
> maybe its dead off-topic, but as it's 'offered' as an embperl
> complement, I'd like to know about your experiences in using
> DBIx::Recordset.
Gerald, I wanted to ask the same: is Recordset on topic here? I believe
it's OK since Recordset is designed for Embperl
hi,
I'm starting to write a custom module to use it in embperl pages and
just can't get it to work under embperl.
The only thing the module is doing is exporting 1 simple 'test'
function. It compiles/works allright under plain perl, but errs under
embperl, saying syntax error at the line
hi,
I thinks this one's for you Gerald... I want my perl module to know
when it is being called by an embperl page and when the page's finished.
I can't count with BEGIN and END because the interpreter persistent,
allright, but is there any sub I can declare that will catch calls when
Em
The plus=space encoding is from the specification of the
application/x-www-form-urlencoded media type.
http://www.w3.org/MarkUp/html-spec/html-spec_8.html#SEC8.2.1
Bryan.
--
Bryan Thale
Motorola Labs, Networking and Infrastructure Research
mailto:[EMAIL PROTECTED]
Gerald Richter wrote:
> >
>
I am trying to setup the following example script, which emails form data,
but I am running into some problems.
http://perl.apache.org/embperl/Examples.html#input_htm
I have installed Net::SMTP. My embperl is working. My mod_perl is also ok. I
am running Sendmail as my mail server, which is also
hi,
maybe its dead off-topic, but as it's 'offered' as an embperl
complement, I'd like to know about your experiences in using
DBIx::Recordset . I'm currently using a DBI with DBD::mysql and Tie::DBI
for 'quicky' access and pure DBI for real work.
does it offer any advantage? I read the
hi,
after developing with embperl for a few months i'm starting to
develop a new site and I'm going to try the custom-module + simple calls
from embperl pages, instead of developing inside embperl pages. Now all
the site is heavily dependant on DBI connections. I do use Apache::DBI
but I'd re
Hi,
On Wed, 28 Jun 2000, Gerald Richter wrote:
> >
> > I use Embperl 1.2.1, mod_perl 1.21 and Apache 1.3.11 on HP-UX 11.
> >
>
> Is mod_perl build as DSO? If yes, upgrade to a newer mod_perl version and
> your problems will go away...
No, mod_perl ist built into Apache statically here.
Howeve
>
> I use Embperl 1.2.1, mod_perl 1.21 and Apache 1.3.11 on HP-UX 11.
>
Is mod_perl build as DSO? If yes, upgrade to a newer mod_perl version and
your problems will go away...
Gerald
-
Gerald Richterecos electronic communication s
>
> At 8:00 PM -0700 6/27/2000, Chris Thorman wrote:
> >In the URI escaping spec, '+' is the special (optional) escape code
> >for space. But since %XX works for any character, %20 also works
> >for space.
>
> I can't find anything like that in
> http://www.ietf.org/rfc/rfc2396.txt - do you have
Hi,
On Tue, 27 Jun 2000, Gerald Richter wrote:
> It's neither a bug (of Embperl), nor a feature. I am very sure that Embperl
> resets escmode to 3 upon start of _every_ request and that pages don't
> impact each other(otherwise many of my pages won't work). There must be
> another reason why th
At 8:00 PM -0700 6/27/2000, Chris Thorman wrote:
>In the URI escaping spec, '+' is the special (optional) escape code
>for space. But since %XX works for any character, %20 also works
>for space.
I can't find anything like that in
http://www.ietf.org/rfc/rfc2396.txt - do you have any referenc
23 matches
Mail list logo