外気が効率よく取り込めないパソコンケース:AD-FDB2の温度は急上昇。Pentiun側はmpegのエンコード処理を行うとCPUの稼働率は80%程度、CPUの温度はいつも65℃ほど。片やCeleron側はエンコードの負荷がかかるとCPUの稼働率が100%となり、CPUの温度は70℃を超えることもある。CPUクーラーのファンはブンブン音を立ててフル稼働状態。騒々しいファンをなんとかすべく、水冷(液令)化を図ることとした。
php短縮型タグが使えない
事象
phpの短縮型タグが使えない。
phpでphpコードを埋め込むタグは4種類ほどあるが、一般的には次のような記述が用いられる。
<?php echo $hensu; ?>
html上に多数の変数の値を埋め込む場合、ソースの見やすさを考慮して短縮型のタグを使用することもできる。
<?= $hensu ?>
原因
短縮型タグが使用できるか否かはphp.ini(/etc/php.ini)で定義されているshort_open_tagパラメータによって決められる。(Offだと使用できない)
[root@example root]# cat /etc/php.ini ~省略~ ; Allow the <? tag. Otherwise, only <?php and <script> tags are recognized. ; NOTE: Using short tags should be avoided when developing applications or ; libraries that are meant for redistribution, or deployment on PHP ; servers which are not under your control, because short tags may not ; be supported on the target server. For portable, redistributable code, ; be sure not to use short tags. short_open_tag = Off
対処
php.iniを修正し、apacheを再起動する。
..短縮型タグは推奨はされていないようだけど。



