Re: [PHP4BETA] php_ directives
| From: | Zeev Suraski | Date: | Fri, 21 Apr 2000 16:16:15 +0000 |
| Subject: | Re: [PHP4BETA] php_ directives | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-13896@lists.php.net to get a copy of this message | ||
There are only four Apache directives in PHP 4 - php_value, php_flag,
php_admin_value and php_admin_flag.
The syntax is
php_value directive_name value
php_flag directive_name [On|Off]
(the syntax for the php_admin_value and php_admin_flag is identical,
except they may only appear in the server-wide httpd.conf file, and
control things such as safe_mode, which users aren't supposed to change).
So, for instance,
php3_magic_quotes_gpc Off
would change to
php_flag magic_quotes_gpc Off
in PHP 4.0.
Zeev
On Fri, 21 Apr 2000, henry wrote:
> Hi
>
> Some assistance with this would be appreciated. I'm obviously missing something stupid.
>
> My old PHP3 directives in the httpd.conf file don't work anymore. For example, for each
> VirtualHost I used to be able to use
> "php3_engine off" and "php3_safe_mode on", etc. These lines now cause a
> problem during httpd startup.
>
> I've tried php_* php4_* without success. Any pointers?
>
> The error message during httpd startup is:
>
> Invalid command 'php4_safe_mode', perhaps mis-spelled or defined by a module not
> included in the server configuration.
>
> PHP4 is compiled as a module and included with the LoadModule line in conf/httpd.conf. PHP4
> appears to be working fine
> otherwise though (ie, if I comment out the offending lines).
>
> Thanks
> Henry
>
>
>
>
>
--
Zeev Suraski <zeev@zend.com>
http://www.zend.com/