导致URL不正常
- if(strpos($_SERVER['PHP_SELF'],$db_dir)!==false){
- $tmp=substr($_SERVER['PHP_SELF'],0,strpos($_SERVER['PHP_SELF'],$db_dir));
- }else{
- $tmp=$_SERVER['PHP_SELF'];
- }
会出现得到
index.php/index.php/index.php 的路径
phpwind正是用这个写法,所以在FastCGI模式下工作不正常
phpwind 开发者可自行在FastCGI环境下测试是否和我所说的一样
但是在 IIS 的 isapi 和 apache 的 module 方式下,该变量正常工作
[ 此贴被oopul在2007-10-13 05:43重新编辑 ]