|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2013-10-13 21:40 UTC] martynas@php.net
-Status: Open
+Status: Duplicate
[2013-10-13 21:40 UTC] martynas@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Dec 14 19:00:01 2025 UTC |
Description: ------------ I'm using htscanner in order to change php_value through .htaccess but from unknown reason FilesMatch directive does not work as expected. auto_prepend_file is included globally in all php script, not only for .css files <FilesMatch "\.css$"> SetHandler fcgid-script FcgidWrapper /home/test/fcgi-bin/php5.fcgi .css php_value auto_prepend_file "/home/test/public_html/gzip-css.php" </FilesMatch> Test script: --------------- .htaccess <FilesMatch "\.css$"> SetHandler fcgid-script FcgidWrapper /home/test/fcgi-bin/php5.fcgi .css php_value auto_prepend_file "/home/test/public_html/gzip-css.php" </FilesMatch> style.css body { margin: 0; } gzip-css.php <?php echo 1; ?> test.php <?php echo 2; ?> Expected result: ---------------- style.css 1body{ margin: 0; } test.php 2 Actual result: -------------- style.css 1body{ margin: 0; } test.php 12