十月GG 发表于 2011-8-4 17:48:28

关于index.php中一句话的疑问

// Set the current directory correctly for CLI requests
if (defined ( 'STDIN' )) {
chdir ( dirname ( __FILE__ ) );
}

请问上面这段的作用是干什么的?

jeongee 发表于 2011-8-4 17:51:19

这行不是注释么
Set the current directory correctly for CLI requests
如果是从命令行执行CI的话,设置当前路径的。
页: [1]
查看完整版本: 关于index.php中一句话的疑问