Re: [PHP4BETA] php directives don't work
| From: | Zeev Suraski | Date: | Wed, 02 Jun 1999 23:31:17 +0000 |
| Subject: | Re: [PHP4BETA] php directives don't work | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-1255@lists.php.net to get a copy of this message | ||
PHP 4.0's directives are now much more robust. It did require a complete change in naming, though.
Instead of
php3_include_path foobar
You need
php4_value include_path foobar
Instead of
php3_safe_mode On
You need
php4_flag safe_mode On
That allowed to make the PHP 4.0 module recognize only two Apache directives (php4_value and php4_flag), make the implementation much smaller and compact, and make each and every php.ini directive we'd ever add automatically supported in the Apache .conf/.htaccess files as well (in PHP 3.0, every php.ini entry had to be manually inserted into several places in mod_php3.c in order to be supported, which always caused the Apache directives to linger behind the php.ini directives - that simply can't happen anymore).
james@cryptocard.com wrote a script that converts PHP 3.0-style .htaccess's to PHP 4.0-style .htaccess's, but we need to improve it a bit so that it'll generate .htaccess files that work with both versions (right now the conversion is one-way).
Zeev
At 00:15 03/06/99 , Andrey Zmievski wrote:
Having php directives in .htaccess or httpd.conf file doesn't work for me. I get Internal server error and when I look in the error log I see: Wed Jun 2 17:13:05 1999] [alert] [client 206.131.196.190] /export/home/staff/andrey/www/php/.htaccess: Invalid command 'php4_include_path', perhaps mis-spelled or defined by a module not included in the server configuration And I tried php3_include_path, and php_include_path as well. -Andrey * Only 19,999 lines of C++ to my next ski trip... * -- PHP 4 Beta-- Zeev Suraski <zeev@zend.com> http://www.zend.com/ For a PGP public key, finger bourbon@netvision.net.il