Re: php engine, safe mode and per directory settings
| From: | Cynic | Date: | Fri, 08 Dec 2000 15:04:26 +0000 |
| Subject: | Re: php engine, safe mode and per directory settings | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-29355@lists.php.net to get a copy of this message | ||
They haven't moved, if you want to set PHP stuff on a
per-directory basis, httpd.conf is still your only option.
However, the option names have changed.
The manual might be somewhat confusing, as it states that
"With PHP 3.0, there are Apache directives that correspond
to each configuration setting in the php3.ini name, except
the name is prefixed by "php3_".
With PHP 4.0, there are just a few Apache directives that
allow you to change the PHP configuration settings."
In fact, this is just a not-very-well-worded, in reality
you can put all of PHP settings into httpd.conf through
FOUR directives:
php_flag
php_value
php_admin_flag
php_admin_value
which take two arguments each: the first is the name of the
PHP configuration directive, the latter is it's value.
E. g.:
php_flag engine on
php_value error_reporting "E_ALL & ~E_NOTICE"
; not sure about this one, maybe it requires numeric value
php_admin_flag register_globals off
; cannot be overwritten in a .htaccess file
At 15:49 8.12. 2000, Robert Mena wrote the following:
--------------------------------------------------------------
>Hi,
>I've been using php3 for a whiile and decided to
>switch to php4. I've discovred the hard way that most
>of the previous php3_xxxx settings that I could set in
>my httpd.conf were moved to php.ini.
>I'd like to know how can I switch the php_engine and
>safe_mode (for example) in php.ini for different
>directories ?
>
>for example turn off the engine for /home/somedir
>while enabling /home/httpd/html.
>
>thanks
>
>__________________________________________________
>Do You Yahoo!?
>Yahoo! Shopping - Thousands of Stores. Millions of Products.
>http://shopping.yahoo.com/
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
>For additional commands, e-mail: php-general-help@lists.php.net
>To contact the list administrators, e-mail: php-list-admin@lists.php.net
------end of quote------
____________________________________________________________
Cynic:
A member of a group of ancient Greek philosophers who taught
that virtue constitutes happiness and that self control is
the essential part of virtue.
cynic@mail.cz
ICQ: 2808 2505