關於php在httpd裡面的設定問題 - BBS

Table of Contents

有一段是
<IfModule mod_dir.c>
<IfModule mod_php3.c>
<IfModule mod_php4.c>
DirectoryIndex index.htm index.html index.php index.php3 index.pht
ml
</IfModule>
<IfModule !mod_php4.c>
DirectoryIndex index.htm index.html index.php3
</IfModule>
</IfModule>
<IfModule !mod_php3.c>
<IfModule mod_php4.c>
DirectoryIndex index.htm index.html index.php
</IfModule>
<IfModule !mod_php4.c>
DirectoryIndex index.htm index.html
</IfModule>
</IfModule>
</IfModule>

類似這樣的區段
我看他的意思是 如果有php3 又有php4 => section 1
php3 但無php4 => section 2
無php3 但有php4 => section 3
無php3 且無php4 => section 4
所以 分成 php3(Y/N) 跟php4(Y/N) 所以有四個IfModule

那如果裝了php5啟不是要改成2*2*2=8種嗎
這樣會不會有點多呀@@?

--

All Comments