Re: Strategies for DBI access

2000-06-28 Thread Nouguier
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 (

RE: BEGIN{} and END{}

2000-06-28 Thread Gerald Richter
> 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

RE: Emailing Form Data with an Embperl Script

2000-06-28 Thread Gerald Richter
> > 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

RE: BEGIN{} and END{}

2000-06-28 Thread jbodnar
> 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

RE: BEGIN{} and END{}

2000-06-28 Thread Gerald Richter
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

RE: Emailing Form Data with an Embperl Script

2000-06-28 Thread Gerald Richter
> > 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

RE: Tie::DBI / DBIxRecordset in embperl

2000-06-28 Thread Gerald Richter
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?

RE: Emailing Form Data with an Embperl Script

2000-06-28 Thread Gerald Richter
> 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? >

Re: Emailing Form Data with an Embperl Script

2000-06-28 Thread Houman Akhavan
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

RE: Problems importing custom module

2000-06-28 Thread Gerald Richter
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

RE: OT: Recordset

2000-06-28 Thread Gerald Richter
> > 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

Re: OT: Recordset

2000-06-28 Thread Robert
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

Problems importing custom module

2000-06-28 Thread Martin Langhoff
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

BEGIN{} and END{}

2000-06-28 Thread Martin Langhoff
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

Re: uri escaping spaces

2000-06-28 Thread Bryan Thale
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: > > >

Re: Emailing Form Data with an Embperl Script

2000-06-28 Thread Houman Akhavan
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

OT: Tie::DBI / DBIxRecordset in embperl

2000-06-28 Thread Martin Langhoff
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

Strategies for DBI access

2000-06-28 Thread Martin Langhoff
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

RE: Strange behaviour after switching from CGI to mod_perl mode

2000-06-28 Thread Thomas Corte
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

RE: Strange behaviour after switching from CGI to mod_perl mode

2000-06-28 Thread Gerald Richter
> > 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

RE: uri escaping spaces

2000-06-28 Thread Gerald Richter
> > 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

RE: Strange behaviour after switching from CGI to mod_perl mode

2000-06-28 Thread Thomas Corte
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

Re: uri escaping spaces

2000-06-28 Thread Michael Blakeley
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