本文介绍了Codeigniter - 未指定输入文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好我是Codeigniter的初学者,我看到一个CI教程,只是想做一个简单的事情。我下载了CI,并将此文件添加到控制器目录,但它不工作。

Hi I am a beginner in Codeigniter and I saw a CI tutorial and was just trying to do a simple thing. I downloaded the CI and added this file to controller directory, but it won't work.

<?php

class site extends CI_Controller
{

        public function index()
        {
                echo "Hello World";
        }

        function dosomething()
        {
                echo "Do Something";
        }

}

?>

当我尝试使用我得到输出...没有输入文件指定....顺便说一句,我命名的文件site.php

When I try to access it using http://..../index.php/site I get the output ... "no input file specified" .... by the way, I named the file site.php

推荐答案

我发现这里问题的答案.....问题是托管服务器...我感谢所有尝试....希望这将帮助别人

I found the answer to this question here..... The problem was hosting server... I thank all who tried .... Hope this will help others

这篇关于Codeigniter - 未指定输入文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-28 07:29