CMS, 原创

解决Codeigniter的No input file specified错误Codeigniter(CI) error No input file specified

解决方法:

在网站根目录中找到php5.ini文件(如果没有就自己建一个),在文件中添加以下内容:

cgi.fix_pathinfo = 1

解释:出现No input file specified错误的原因是php没有识别出pathinfo导致的,这是因为很多虚拟主机比如godaddy的,使用的是cgi模式(估计是为了同时兼容php4和php5)来运行php,因此会出现一些奇怪的问题。可以查看phpinfo看到“Server API: CGI/FastCGI”确认这一点。solution:

At your website root directory edit php5.ini(If no this file,add one), and in this file add this: “cgi.fix_pathinfo = 1”

why No input file specified?

the reason is that php cannot distinguish pathinfo from it. many virtual machines ,like godaddy, use the mode of cgi,(perhaps to Compatible with php4 and php5) to run php. you will found that “Server API: CGI/FastCGI”” in phpinfo.

(819)

Related Post