Re: require and embperl

2001-12-19 Thread Angus Lees
On Wed, Dec 19, 2001 at 08:44:21PM +0200, Jaak wrote: > When I use > [- require "test.pl"; -] > > test.pl => > $lang{'test'} = "testing..."; 1; > > appeares only once when using [+ $lang{'test'} +] > When realoading page $lang{'test'} seems to be empty. > > What am I doing wrong? 1. using re

public and private code branch

2001-12-19 Thread Lihn, Horng-Twu
Does anyone have an example how to set up httpd.conf so that there is a separation between public and private code: .../epl/ public/ index.html private/ my private .epl code The DocumentRoot will be .../epl/public/ Yet in index.html I can Execute stuff in private/ T

2.0b5 error: Nested tags handled incorrectly?

2001-12-19 Thread Neil Gunton
I have the following code snippet, which is being migrated from 1.3.4 to 2.0b5: [- $prev_page_id = 0 -] [$ while $figure = $query->fetchrow_hashref() $] [$ if $figure->{page_id} != $prev_page_id $] [$ if $prev_page_id $] <-- ERROR LINE [$ endi

require and embperl

2001-12-19 Thread Jaak
Hi! When I use [- require "test.pl"; -] test.pl => $lang{'test'} = "testing..."; 1; appeares only once when using [+ $lang{'test'} +] When realoading page $lang{'test'} seems to be empty. What am I doing wrong? - To unsubs

Re: embperl after a rewrite

2001-12-19 Thread Gerald Richter
> Yeah, unfortunately [PT] seems also seems to prepend DocumentRoot to the > beginning of a URL which therefore makes it impossible to Rewrite to > something outside this directory. > > The weird and wonderful world of mod_rewrite eh?! > Yes. On the other side when you are already inside of a Yo

RE: embperl after a rewrite

2001-12-19 Thread Michael Smith
Whoops - I messed up. What I meant was RewriteRule ^/foo /docroot/filename.epl so that asking for http://servername/filename.epl would give what we want but asking for http://servername/foo gives us the raw code. I've since narrowed it down to EMBPERL_FILESMATCH - so it all seems to work unles

RE: embperl after a rewrite

2001-12-19 Thread Michael Smith
Yeah, unfortunately [PT] seems also seems to prepend DocumentRoot to the beginning of a URL which therefore makes it impossible to Rewrite to something outside this directory. The weird and wonderful world of mod_rewrite eh?! Mike -Original Message- From: Gerald Richter [mailto:[EMAI

Re: embperl after a rewrite

2001-12-19 Thread Gerald Richter
> > But if I put a rewrite rule like this in > > RewriteEngine on > RewriteRule ^/foo$ http://servername/foo [L] > are you sure you mean ^/foo$ ? There is no .epl extension, so you FilesMatch can't work. Gerald - Gerald Richtereco

Re: embperl after a rewrite

2001-12-19 Thread Gerald Richter
> > What I meant was > > RewriteRule ^/foo /docroot/filename.epl > > so that asking for http://servername/filename.epl would give what we want > but asking for http://servername/foo gives us the raw code. > > I've since narrowed it down to EMBPERL_FILESMATCH - so it all seems to work > unless I ha

Re: cgi and sessions

2001-12-19 Thread Gerald Richter
Hi! > > When using Apache::Session > PerlSetEnv EMBPERL_SESSION_ARGS "DataSource=dbi:mysql:test UserName=root > Password=" > > worked ok. > > When I use Apache::SessionX it uses only the values that I entered when > doing Makefile.PL. > > How to modify those default values? > EMBPERL_SESSION_ARGS

embperl after a rewrite

2001-12-19 Thread Michael Smith
Dear All, I'm having some trouble configuring apache to recongnise embperl files that are executed after a rewrite. I've got this working with some configs but not others - but haven't been able to work out what the difference is. The standard way to configure does work, in that if I have this