You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by "Gary C. New" <ga...@yahoo.com> on 2004/02/07 09:36:19 UTC

perl module to access php_value include_path objects

I am in the middle of a project that requires me to dynamically update 
certain default paths within the Apache Server environment.

I currently am able to update document_root on the fly and now need to 
be able to update php_value include_path in the same manor.

Is there an existing perl module that will allow me to access this 
object dynamically per request?  I have done some cursory search and 
have come up empty handed.

Thank you for your assistance.

Respectfully,


Gary



-- 
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html


Re: perl module to access php_value include_path objects

Posted by "Philippe M. Chiasson" <go...@cpan.org>.
On Sat, 2004-02-07 at 01:36 -0700, Gary C. New wrote:
> I am in the middle of a project that requires me to dynamically update 
> certain default paths within the Apache Server environment.
> 
> I currently am able to update document_root on the fly and now need to 
> be able to update php_value include_path in the same manor.
> 
> Is there an existing perl module that will allow me to access this 
> object dynamically per request?  I have done some cursory search and 
> have come up empty handed.

php_value include_path is a mod_php directive that internally pushes
configuration to a Zend hash-table.

So, the answer to your question is , no, it's not possible to directly
alter those values from within mod_perl.

It might just be possible to write a Perl/XS extension that hooks to
mod_php and enables something like this, but it would be hardly worth
the effort.

You are probably better off looking at way to achieve what you are
seeking directly with PHP (for the php stuff).

> Thank you for your assistance.
> 
> Respectfully,
> 
> 
> Gary
> 
> 
> 
> -- 
> Reporting bugs: http://perl.apache.org/bugs/
> Mail list info: http://perl.apache.org/maillist/modperl.html
> List etiquette: http://perl.apache.org/maillist/email-etiquette.html
-- 
--------------------------------------------------------------------------------
Philippe M. Chiasson /gozer\@(cpan|ectoplasm)\.org/ 88C3A5A5 (122FF51B/C634E37B)
http://gozer.ectoplasm.org/    F9BF E0C2 480E 7680 1AE5 3631 CB32 A107 88C3 A5A5
Q: It is impossible to make anything foolproof because fools are so ingenious.
perl -e'$$=\${gozer};{$_=unpack(P7,pack(L,$$));/^JAm_pH\n$/&&print||$$++&&redo}'