You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by Carlos Kassab <ck...@glin.com.mx> on 2002/12/29 16:54:28 UTC

Loading a file from a different directory tree usin execute

Hi:


Do you know how to load a file with execute from a different directory
tree?

i have a folder modules/Recommend/recommend.epl

and other folder includes/subs.epl

folders subs and modules are at the same level.


if i try to load subs.epl from recommend.epl

I get the message :


[2507]ERR: 30: recommend.epl(20): Not found includes/subs.epl

Do you know how can i load the file subs.epl without copy it to
modules/Recommend?


Thank you in advance for your help.

Carlos Kassab


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


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

Posted by Gerald Richter <ri...@ecos.de>.
> 
> 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 search also without EMbperlObject, by setting

PerlSetEnv EMBPERL_PATH path1;path2;path3

Gerald


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


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

Posted by "Luiz Fernando B. Ribeiro" <lu...@engenhosolucoes.com.br>.
Em 29 Dec 2002 09:54:28 -0600
Carlos Kassab <ck...@glin.com.mx> escreveu:

> Hi:
> 
> 
> Do you know how to load a file with execute from a different directory
> tree?
> 
> i have a folder modules/Recommend/recommend.epl
> 
> and other folder includes/subs.epl
> 
> folders subs and modules are at the same level.
> 
> 
> if i try to load subs.epl from recommend.epl
> 
> I get the message :
> 
> 
> [2507]ERR: 30: recommend.epl(20): Not found includes/subs.epl
> 
> Do you know how can i load the file subs.epl without copy it to
> modules/Recommend?

Hi,

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

Regards,

Luiz Fernando B. Ribeiro
Engenho Soluções para a Internet



---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org