Re: HTTP 500s using EmbperlObject

2001-01-15 Thread Gerald Richter
> > @HTML::Embperl::DOC::_3::ISA = (); > > Any suggestions as to where to go looking to track this down? I guess one/some of your pages causes the @ISA (unintentionaly) to be cleared. Maybe you use a module inside one of your pages that does it. Maybe something in EmbperlObject went wrong and c

Re: Are early headers required for subrequests?

2001-01-15 Thread Gerald Richter
> > sub f( $ ) > { > Apache::Include->virtual( shift ); > } > The problem with sub-request (as long as they don't refer to Embperl pages), is that the output is always directly send to the browser, you can't intercept it (expection: when the subrequest runs a perl script, then set optRedirect

Re: Can I share my own functions in a safe namespace?

2001-01-15 Thread Gerald Richter
> I include a module X.pm in Apache's startup.pl, which has a public > function f. I share this public function with Embperl by calling > > my $cp = HTML::Embperl::AddCompartment( 'SafeCompartment' ); > $cp->share_from( 'X', [ 'f' ] ); > > after HTML::Embperl has been loaded. When I define optSa

Re: HTTP 500s using EmbperlObject

2001-01-15 Thread Gavin Carr
Hi Gerald, On Wed, Jan 10, 2001 at 06:42:43AM +0100, Gerald Richter wrote: > > checking out the affected package with Apache::Status, shows it still > > has all the variables, etc i'd expect to see. none of my pages touch > > @ISA, and Apache::Status doesn't list it as defined for any embperl > >

Are early headers required for subrequests?

2001-01-15 Thread Robert Buff
I separated my Perl code into a global file HtmlTools.pm which I include in startup.pl, and per-page code. HtmlTools contains a function f which executes sub f( $ ) { Apache::Include->virtual( shift ); } If f is called from within the per-page code, two sets of headers are sent if optEarlyHt

Can I share my own functions in a safe namespace?

2001-01-15 Thread Robert Buff
I include a module X.pm in Apache's startup.pl, which has a public function f. I share this public function with Embperl by calling my $cp = HTML::Embperl::AddCompartment( 'SafeCompartment' ); $cp->share_from( 'X', [ 'f' ] ); after HTML::Embperl has been loaded. When I define optSafeNameSpace an

Re: Execute error return value

2001-01-15 Thread Gerald Richter
> > > My question is... how can I get the same behaviour in my intranet portal > > > code below? > > > > You can try to reset the http status, just before the end of the request > > (after executeing the footer) > > > > $req_rec -> status (200) ; > > > > but I am not sure if this works. > > Nope,

Re: Problems with Embperl+mod_perl

2001-01-15 Thread Gerald Richter
> I made it work finally. I had to add -export-dynamic to the linker flags > for httpd so that its symbols are visible. Great to know. This goes imediately to the FAQ! > Now I am puzzled as to how it > works for anyone else. > Most Unix linkers have this flag on by default, so it works, but s

Re: Using Execute with perl scripts

2001-01-15 Thread Gerald Richter
> > Is there a better way of writing the following line? > > [+ `/var/www/intranet/parts/foo.pl` +] > > I want to make sure that I'm still taking advantage of mod_perl, and not > loading up the perl intepreter for each call of foo.pl. > [- # instead of setting STDOUT to OUT (via select), you can

Re: Execute error return value

2001-01-15 Thread Wim Kerkhoff
Gerald Richter wrote: > > > > > My question is... how can I get the same behaviour in my intranet portal > > code below? > > You can try to reset the http status, just before the end of the request > (after executeing the footer) > > $req_rec -> status (200) ; > > but I am not sure if this wor

Re: mod_gzip and embperl

2001-01-15 Thread [EMAIL PROTECTED]
Yep, I've got it working with no problems, just not on production yet; did you compile from source? Ilia Lobsanov. Nurey Networks Inc. http://www.nurey.net/ Original Message: - From: Michael Dean [EMAIL PROTECTED] Date: Sun, 14 Jan 2001 09:41:48 +1000 (EST) Subject: mod_gzip an

Using Execute with perl scripts

2001-01-15 Thread Wim Kerkhoff
Hi Everyone, I've been wanting to include the output of pure perl scripts in my Embperl pages. Is there a better way of writing the following line? [+ `/var/www/intranet/parts/foo.pl` +] I want to make sure that I'm still taking advantage of mod_perl, and not loading up the perl intepreter fo

Re: Problems with Embperl+mod_perl

2001-01-15 Thread Michael Nelson
I made it work finally. I had to add -export-dynamic to the linker flags for httpd so that its symbols are visible. Now I am puzzled as to how it works for anyone else. -mike On Mon, 15 Jan 2001, Gerald Richter wrote: > > > > Using FreeBSD 4.1, Apache 1.3.14, mod_ssl 0.9.6, mod_perl 1.24, Perl

Re: Embperl compile on AIX4.3.3.

2001-01-15 Thread Jens-Uwe Mager
> > ld: 0711-317 ERROR: Undefined symbol: .ap_palloc These are symbols from the Apache core, there is an export file missing on the linker line. I believe using this export file was added in later mod_perl versions. > > aix-4.3.3 > > apache-1.3.12 > > mod_perl-1.24 Use at least mod_perl-1.24_1,

Re: Setting %udat Cookie expiry time

2001-01-15 Thread Gerald Richter
hi, > > I've been looking the man pages, and I couldn't find a way to make > those magic %udat cookies expire. I can empty them server-side, but, as > usual, it's better if the client does it for me ;) > > Just in case it's a new feature, I'm running a faily old > version: > > perl -MHTML:

Setting %udat Cookie expiry time

2001-01-15 Thread Martin Langhoff
hi, I've been looking the man pages, and I couldn't find a way to make those magic %udat cookies expire. I can empty them server-side, but, as usual, it's better if the client does it for me ;) Just in case it's a new feature, I'm running a faily old version: perl -MHTML::Embpe

Re: mod_gzip and embperl

2001-01-15 Thread Gerald Richter
> > mod_gzip lives here > > http://www.remotecommunications.com/apache/mod_gzip/ > I didn't have tried it out, but form the docs it looks like adding mod_gzip_item_include !perl-script should work. Let me know if it really works or not Gerald -