perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerald Richter" <rich...@ecos.de>
Subject Re: Dynamic embperl search path
Date Tue, 29 Oct 2002 07:09:33 GMT


> I'm looking at the description for EMBPERL_OBJECT_ADDPATH. It is very
short,
> so I don't know if it can do what I want.
>
> The embperl pages of my application is located in
/usr/local/freemoney/pages
> which is aliased in apache to /fm/. But I want to allow for local
> extensions, so some of the pages could be placed under
> /usr/local/freemoney/domains/<domain1>/pages. <domain1> will be determined
> when the user logs into the system. I don't want to alias all possible
> domains in apache.
>
> Can I dynamically add (And remove) unixpaths to and from the search path
in
> embperl - With EMBPERL_OBJECT_ADDPATH - or otherwise?
>

You have access to the current search path of Embperl via

$pathref = $r -> config -> path ;
$r -> config -> path (\@newpath) ;

it returns an array ref to the current path and you can pass it an array ref
to set the new path.

I think this should do what you want

Gerald


-------------------------------------------------------------
Gerald Richter    ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
E-Mail:     richter@ecos.de         Voice:    +49 6133 925131
WWW:        http://www.ecos.de      Fax:      +49 6133 925152
-------------------------------------------------------------



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


Mime
View raw message