上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 25 下一页
摘要: 首先tp5的访问目录指向到webroot/public文件夹中。 thinkphp的url访问:http://serverName/index.php(或者其它应用入口文件)/模块/控制器/操作/[参数名/参数值...],这个需要支持pathinfo,Apache默认支持,而Nginx不支持。 1. 阅读全文
posted @ 2018-05-31 11:47 zhuzhipeng 阅读(28109) 评论(0) 推荐(2) 编辑
摘要: Hello APP {{menu.title}} {{menu.title... 阅读全文
posted @ 2018-05-27 09:36 zhuzhipeng 阅读(251) 评论(0) 推荐(0) 编辑
摘要: 1、编辑器下载: 2、静态页面中加载 ckeditor.js 3、初始化并添加图片上传 4、上传代码 阅读全文
posted @ 2018-05-23 15:04 zhuzhipeng 阅读(1138) 评论(0) 推荐(0) 编辑
摘要: tomcat安装 1、下载JDK和Tomcat //通过wget下载 wget http://mirrors.tuna.tsinghua.edu.cn/apache/tomcat/tomcat-8/v8.5.4/bin/apache-tomcat-8.5.4.tar.gz wget http://download.oracle.com/otn-pub/java/jdk/8u131-b11/d5... 阅读全文
posted @ 2018-05-22 13:15 zhuzhipeng 阅读(224) 评论(0) 推荐(0) 编辑
摘要: 理论很简单,将字符串和变量组合在一起形成对另一个变量的操作.同样也可以是数组 例: $FFabcd = '组合变量'; $a = 'abcd'; $ay = array('FF','abcd'); echo ${'FF'.$a}; echo ${$ay[0].$ay[1]}; //同样,数组可以和字 阅读全文
posted @ 2018-05-21 11:03 zhuzhipeng 阅读(3518) 评论(0) 推荐(0) 编辑
摘要: 1、打开php.ini 通常该文件在 /usr/local/php/etc/php.ini vi /usr/local/php/etc/php.ini 找到 cgi.fix_pathinfo,默认为0,修改为1,保存退出; 2、打开nginx.conf配置文件 通常该文件在 /usr/local/n 阅读全文
posted @ 2018-05-15 16:33 zhuzhipeng 阅读(431) 评论(0) 推荐(0) 编辑
摘要: 应用服务器client.php 代理服务器server.php 普通授权获取用户信息 静默授权 阅读全文
posted @ 2018-05-14 17:30 zhuzhipeng 阅读(4977) 评论(0) 推荐(0) 编辑
摘要: 通用写法 其实应该使用更简单的方法,fastcgi模块自带了一个fastcgi_split_path_info指令专门用来解决此类问题的, 该指令会根据给定的正则表达式来分隔URL,从而提取出脚本名和path info信息,使用这个指令可以避免使用if语句,配置更简单。另外判断文件是否存在也有更简单 阅读全文
posted @ 2018-05-14 09:35 zhuzhipeng 阅读(12384) 评论(0) 推荐(0) 编辑
摘要: //无限极分类 展示 function getree($arr,$pid,$step){ global $tree; foreach ($arr as $key => $value) { if ($value['pid']==$pid) { $temp=str_repeat('└―', $step); $value['name']=$temp.$value['name'];... 阅读全文
posted @ 2018-05-10 17:40 zhuzhipeng 阅读(221) 评论(0) 推荐(0) 编辑
摘要: private $db; private $content_model; public function __construct() { parent::__construct (); $this->content_model = pc_base::load_model('content_model'); $this->siteid = 1; } public function add... 阅读全文
posted @ 2018-05-10 17:02 zhuzhipeng 阅读(207) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 25 下一页