調用控制器方法 出現 no input file specified.
問題描述
剛接觸php 使用的是 phpstrom+phpstudy
index控制器 的index方法 可以訪問到
----url是:www.demo.coml
index控制器 的test1方法 訪問提示 :No input file specified.
----url是:www.demo.coml/test1
----url是:www.demo.coml/index/test1
以上兩個url都試過
訪問admin模塊下user控制器下的get方法時 出現:No input file specified.
----url是: www.demo.com/admin/user/get
剛開始學習php,請問一下各位大佬 這種情況是哪里的問題?
問題解答
回答1:統一回復
感謝個位的熱心回復
經大佬指點,問題解決了
處理方法如下:
.htaccess文件 更改為:
Options +FollowSymLinks -IndexesRewriteEngine OnRewriteCond %{HTTP:Authorization} .RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]RewriteCond %{REQUEST_FILENAME} !-dRewriteCond %{REQUEST_FILENAME} !-fRewriteRule ^ index.php [L]
問題解決
回答2:可能是偽靜態問題,如果沒有配置就要在域名后面加上index.php
www.demo.com/index.php/admin/user/get
回答3:一般是偽靜態的問題 .htaccess文件的配置看看
回答4:不會百度大兄弟
相關文章:
