PHP速学教程(入门到精通)
PHP怎么学习?PHP怎么入门?PHP在哪学?PHP怎么学才快?不用担心,这里为大家提供了PHP速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!
Nginx配置PATHINFO隐藏index.php
Nginx配置文件里放入这段代码<code class="prettyprint linenums lang-php">server { <br>
listen 80;<br>
default_type text/plain;<br>
root /var/www/html;<br>
index index.php index.htm index.html;<br><br>
#隐藏index.php<br>
location / {<br>
if (!-e $request_filename) {<br>
#一级目录<br>
# rewrite ^/(.*)$ /index.php/$1 last;<br>
#二级目录<br>
rewrite ^/MYAPP/(.*)$ /MYAPP/index.php/$1 last;<br>
} <br>
}<br><br>
#pathinfo设置<br>
location ~ \.php($|/) {<br>
fastcgi_pass 127.0.0.1:9000;<br>
fastcgi_index index.php;<br>
fastcgi_split_path_info ^(.+\.php)(.*)$;<br>
fastcgi_param PATH_INFO $fastcgi_path_info;<br>
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;<br>
include fastcgi_params;<br>
}<br>
}
AD:真正免费,域名+虚机+企业邮箱=0元
php免费学习视频:立即学习
踏上前端学习之旅,开启通往精通之路!从前端基础到项目实战,循序渐进,一步一个脚印,迈向巅峰!
已抢7215个
抢已抢94862个
抢已抢14828个
抢已抢52097个
抢已抢194768个
抢已抢87281个
抢