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
---
>
> 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
> 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
>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
>
> 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
>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
>
> 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
>[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
>
> 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
>
> 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
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
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});
>
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
13 matches
Mail list logo