AW: AddOutputFilter EMBPERL ???

2003-01-01 Thread Jörg Kütemeier
Hi, I tried it out with this: SetHandler perl-script PerlHandler Embperl Options ExecCGI # Order allow,deny # Deny From all AddType application/x-httpd-php .php SetHandler perl-script PerlHandler Embperl Options ExecCGI AddType application/x-httpd-php .php A test

Re: Problem importing subs, please help..

2003-01-01 Thread Carlos Kassab
Thank you, it worked, i put the subs in other file. Carlos Kassab El mié, 01-01-2003 a las 13:43, Gerald Richter escribió: > If you are using Embper 1.3.x, the call to the sub must not be in the same > block as the import: > > > > > [- > > > > Execute ({inputfile => 'tables.epl', import=>1}); >

Re: Posting data when redirecting to a page

2003-01-01 Thread Hoenie Luk
Thanks for your response. Unfortunately, the $msg I wanted to pass is very long. If I use the GET method, the URL will look very messy and it may even not work because of the length. I did figure out I can do the same redirecting function with Execute: [- $msg = "WARNING: no ac

Re: relative path is not working to load files

2003-01-01 Thread Gerald Richter
> > I have tried using relative path but still does not work. > Relative path work. In case they don't you may put a ./ in front of your path e.g. ./../includes/sub.epl, but this shouldn't be necessary in normal cases. The paths you describe and the error messages, doesn't fit together. PLease de

Re: relative path is not working to load files

2003-01-01 Thread Gerald Richter
> > I have tried using relative path but still does not work. > Relative path work. In case they don't you may put a ./ in front of your path e.g. ./../includes/sub.epl, but this shouldn't be necessary in normal cases. The paths you describe and the error messages, doesn't fit together. PLease de

Re: Error in DBI->connect (Oracle)

2003-01-01 Thread Gerald Richter
>[Tue Dec 31 11:48:46 2002] [notice] child pid 6555 exit signal Segmentation Fault (11), possible coredump in /home/ederson/apachelocal This maybe because of some version mismatch of your libs. Maybe they are not compiled for the same Perl or with different compiler setting. Or mod_perl is compil

Re: Posting data when redirecting to a page

2003-01-01 Thread Gerald Richter
> > I have a beginner's question. > > I'm trying to redirect the program flow to another .htm page using > $http_headers_out{Location} but I also want to pass a message ($msg) to the > new page using POST method. > > [- > $msg = "Error saving data #53: really really long explanation"; > $http_h

Re: use and do

2003-01-01 Thread Gerald Richter
>If i use 'do' in [! !], always have overhead, If you use it inside of [! !] it will only executed the first time the page is executed > or i can use 'use' for get performance ? YOu can use use, but the used file should contain a package name, otherwise you will get trouble, see also http://pe

Re: Loading a file from a different directory tree usin execute

2003-01-01 Thread Gerald Richter
> > You can pass relative paths to Execute, like '../some/other/page.epl'. > If you are using EmbperlObject you can use the following directive in > your httpd.conf to add the directories you want to be searched: > > PerlSetEnv EMBPERL_OBJECT_ADDPATH path1;path2;path3 > You can use the path se

Re: AddOutputFilter EMBPERL ???

2003-01-01 Thread Gerald Richter
>How do I add Embperl as an Output Filter? The only way it works for now is calling your PHP page from Embperl, like [- Execute ({subreq => '/uri/path/to/foo.php'}) -] So you can use Embperl::Object: Embperl_Object_Base base.epl Embperl_Appname phpfilter and in base.epl you write [- $r = shi

Re: EMBPERL_COOKIE_EXPIRES

2003-01-01 Thread Gerald Richter
> I believe Gerald said it does not as of yet (The last Dev of v.2 didn't at > least)..You need to stick a date in there manually :-( > That's true, only absolute times works for now. I hopefully can implement relative times soon Gerald > Justin > > > -Original Message- > > From: Jaak

Re: subroutine not found in the same file...please help

2003-01-01 Thread Gerald Richter
> > and under this i have the subroutines: > 1.3.x requires you to have the sub's defined, before you call them. So move them to the top and it will work (in 2.0 it doesn't matter if where the subs are defined) Gerald - To unsu

Re: Problem importing subs, please help..

2003-01-01 Thread Gerald Richter
If you are using Embper 1.3.x, the call to the sub must not be in the same block as the import: > > [- > > Execute ({inputfile => 'tables.epl', import=>1}); > -] -[ > &loadthecolors; > > $r = shift ; > $option = $r -> {option} ; > > -] > Gerald ---