#17234 [Com]: setting short_open_tag in .htaccess does nothing

From: Date: Thu, 05 Sep 2002 16:35:09 +0000
Subject: #17234 [Com]: setting short_open_tag in .htaccess does nothing
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-18500@lists.php.net to get a copy of this message
ID: 17234 Comment by: gbenson@redhat.com Reported By: php@rawhide.cjb.net Status: Open Bug Type: Apache2 related Operating System: Windows XP PHP Version: 4.2.1 New Comment: I'm seeing this problem too, and it only seems to effect short_open_tag. In my setup, /etc/php.ini says: register_globals = Off short_open_tag = Off and I have the following in a file which is included by httpd.conf: <Directory /foo/bar/baz> php_value register_globals 1 php_value short_open_tag 1 </Directory> A phpinfo() in /foo/bar/baz/phpinfo.php says: Directive Local value Global value register_globals On Off short_open_tag Off Off ie, php_value worked for register_globals but not for short_open_tag. Previous Comments: ------------------------------------------------------------------------ [2002-05-17 03:45:39] jwoolley@php.net That last problem you mentioned ("Invalid command 'php_flag'") is fixed in CVS, just so you know. ------------------------------------------------------------------------ [2002-05-15 19:28:19] php@rawhide.cjb.net Error message: <directory>/.htaccess: Invalid command 'php_flag', perhaps mis-spelled or defined by a module not included in the server configuration. This isn't bogus yet. ------------------------------------------------------------------------ [2002-05-15 14:41:15] sander@php.net You need php_flag for on/off settings: php_flag short_open_tag off ------------------------------------------------------------------------ [2002-05-15 00:39:18] php@rawhide.cjb.net Sorry, module. I've tried other values such as display_errors and that changes fine. ------------------------------------------------------------------------ [2002-05-15 00:32:23] rasmus@php.net CGI or Apache module? The CGI version of PHP does not read .htaccess. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/17234 -- Edit this bug report at http://bugs.php.net/?id=17234&edit=1

« previous php.bugs (#18500) next »