网站技术分析

一点一滴的积累,一点一滴的沉淀!

tp5.1 上传图片 生成缩略图 方法

ThinkPHP在 Nginx 服务器下去除 index.php(伪静态)方法

找到环境配置文件如图:打开后 加代码:location / {     if (!-e $request_filename){          rewrite  ^(.*)$  /index.php?s=$1  last;   break;     

tp5 获取URL信息

如果要获取当前的请求信息,可以使用\think\Request类,除了下文中的$request = Request::instance();也可以使用助手函数$request = request();例如:获取URL信息$request = Request::instance();      // 获取当前域名 echo 'domain: '&nbsp

Powered By Z-BlogPHP 1.5.2 Zero

蜀ICP备18016898;版权:2016 @陸仴 

Music