You are here: Re: [PHP] auto_prepend_file in Apache Directory container « PHP « IT news, forums, messages
Re: [PHP] auto_prepend_file in Apache Directory container

Posted by Richard Lynch on 05/13/05 02:02

On Thu, May 12, 2005 12:48 pm, dan said:
> I'm trying to override the value of php.ini's 'auto_prepend_file'
> function, inside of an Apache Directory container. I'm not having much
> luck. In fact, no luck at all. This never happens.
>
> So I'm wondering now, are functions set by 'php_value' inside of an
> Apache config file only good for the entire VirtualHost in question, or
> can they be applied on a per-directory basis using Apache's Directory
> directive?

Certainly some php_value directives can be over-ridden in .htaccess,
regardless of whether they were set globally in httpd.conf or in a
VirtualHost or Directory block.

Equally certainly, some cannot be over-ridden.

I am almost 100% certain that php_value makes no distinction between
*where* in httpd.conf the setting comes from. I daresay php_value in
..htaccess can't even tell the difference from one part of httpd.conf to
the other.

http://php.net/ has a page devoted to describing exactly which php_value
settings can be over-ridden where. Check that.

It's also possible that once auto_prepend_file is set, it's set, and
that's it -- Regardless of where it is set, you're stuck with it at that
value.

So it's more of a 'define' for a constant that some kind of variable you
can change on a whim. Part of that could easily be to provide web host
administrators with a way to guarantee that some PHP code of theirs gets
run no matter what their clients may try to do... Which I could see might
be handy for some hosts, and they'd not want it over-ridden. These last
two paragraphs are pure speculation on my part. But it could be true, and
it wouldn't really fit into that nifty chart in the manual.

--
Like Music?
http://l-i-e.com/artists.htm

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация