調(diào)用控制器方法 出現(xiàn) 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方法時 出現(xiàn):No input file specified.
----url是: www.demo.com/admin/user/get
剛開始學習php,請問一下各位大佬 這種情況是哪里的問題?
問題解答
回答1:統(tǒng)一回復
感謝個位的熱心回復
經(jīng)大佬指點,問題解決了
處理方法如下:
.htaccess文件 更改為:
Options +FollowSymLinks -IndexesRewriteEngine OnRewriteCond %{HTTP:Authorization} .RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]RewriteCond %{REQUEST_FILENAME} !-dRewriteCond %{REQUEST_FILENAME} !-fRewriteRule ^ index.php [L]
問題解決
回答2:可能是偽靜態(tài)問題,如果沒有配置就要在域名后面加上index.php
www.demo.com/index.php/admin/user/get
回答3:一般是偽靜態(tài)的問題 .htaccess文件的配置看看
回答4:不會百度大兄弟
相關文章:
1. macos - mac下docker如何設置代理2. java - 請問在main方法中寫成對象名.屬性()并賦值,與直接參參數(shù)賦值輸錯誤是什么原因?3. MySQL數(shù)據(jù)庫中文亂碼的原因4. 關docker hub上有些鏡像的tag被標記““This image has vulnerabilities””5. docker不顯示端口映射呢?6. docker - 各位電腦上有多少個容器啊?容器一多,自己都搞混了,咋辦呢?7. android studio總是在processes running好久8. angular.js - 關于$apply()9. docker-compose 為何找不到配置文件?10. dockerfile - 我用docker build的時候出現(xiàn)下邊問題 麻煩幫我看一下
