當(dāng)前位置:
首頁 >
PHP5.6版本“No input file specified”问题
發(fā)布時間:2025/4/16
41
豆豆
生活随笔
收集整理的這篇文章主要介紹了
PHP5.6版本“No input file specified”问题
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
原因在于使用的PHP5.6是fast_cgi模式,而在某些情況下,不能正確識別path_info所造成的錯誤
默認(rèn)的.htaccess里面的規(guī)則:
<IfModule mod_rewrite.c>Options +FollowSymlinksRewriteEngine OnRewriteCond %{REQUEST_FILENAME} !-dRewriteCond %{REQUEST_FILENAME} !-fRewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
</IfModule>
“No input file specified”是沒有得到有效的文件路徑造成的。
修改后的偽靜態(tài)規(guī)則:
<IfModule mod_rewrite.c>Options +FollowSymlinksRewriteEngine OnRewriteCond %{REQUEST_FILENAME} !-dRewriteCond %{REQUEST_FILENAME} !-fRewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L]
</IfModule>
?
轉(zhuǎn)載于:https://www.cnblogs.com/zhangxiangdong/p/9877527.html
《新程序員》:云原生和全面數(shù)字化實(shí)踐50位技術(shù)專家共同創(chuàng)作,文字、視頻、音頻交互閱讀總結(jié)
以上是生活随笔為你收集整理的PHP5.6版本“No input file specified”问题的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: vue实现原理初探
- 下一篇: php jsonp实例 mip无限滚动组