Deprecated: Non-static method adsensem::filter_ads() should not be called statically in /home/araki/blog.ceed.jp/wp-includes/plugin.php on line 192
Deprecated: Non-static method adsensem::filter_ad_callback() should not be called statically in /home/araki/blog.ceed.jp/wp-content/plugins/adsense-manager/adsense-manager.php on line 198
Deprecated: Non-static method adsensem::filter_ad_callback() should not be called statically in /home/araki/blog.ceed.jp/wp-content/plugins/adsense-manager/adsense-manager.php on line 201
Warning: Use of undefined constant user_level - assumed 'user_level' (this will throw an Error in a future version of PHP) in /home/araki/blog.ceed.jp/wp-content/plugins/ultimate_ga_1.6.0/ultimate_ga_1.6.0.php on line 524
最近phpでssiを使うことがあったのだが、httpd.confの書き方で挙動が違うことを経験したので覚書。
通常、SSIを通場合、AddType text/html .shtml などと書くが、この記述がPHPのAddTypeより後に書かれているとPHPとして実行されない(PHPコードがそのまま出力される)ということがおきるようです。ちょっと悩んだ結果試しに記述位置を入れ替えてみたら、SSI、PHPともに実行されたので一旦OK。
どうしてそうなるのか、細かく調べたいところだけど、一旦OKとしましょう(汗)
AddType text/html .shtml .html .php AddOutputFilter INCLUDES .shtml .html .php AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps