perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerald Richter" <>
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
> so I don't know if it can do what I want.
> The embperl pages of my application is located in
> 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
> 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 Richter    ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
E-Mail:         Voice:    +49 6133 925131
WWW:      Fax:      +49 6133 925152

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message