摘要: 1、安装swoole cd /usr/local/src wget https://github.com/swoole/swoole-src/archive/v1.9.1-stable.tar.gz tar zxvf v1.9.1-stable.tar.gz cd swoole-src-1.9.1- 阅读全文
posted @ 2018-03-15 12:25 zhw15 阅读(252) 评论(2) 推荐(0)
摘要: yum -y install php-devel 然后 /usr/bin/phpize 阅读全文
posted @ 2018-03-15 10:35 zhw15 阅读(677) 评论(0) 推荐(0)
摘要: 安装make:yum -y install gcc automake autoconf libtool make 安装g++:yum install gcc gcc-c++cd /usr/local/src 安装pcrewget ftp://ftp.csx.cam.ac.uk/pub/softwar 阅读全文
posted @ 2018-03-15 10:14 zhw15 阅读(155) 评论(0) 推荐(0)
摘要: ./configure \--prefix=/usr/local/php \--with-config-file-path=/etc \--enable-fpm \--enable-inline-optimization \--disable-debug \--disable-rpath \--en 阅读全文
posted @ 2018-03-14 17:57 zhw15 阅读(199) 评论(0) 推荐(0)
摘要: 1 $num = 10.4567; 2 3 //第一种:利用round()对浮点数进行四舍五入 4 echo round($num,2); //10.46 5 6 //第二种:利用sprintf格式化字符串 7 $format_num = sprintf("%.2f",$num); 8 echo $forma... 阅读全文
posted @ 2018-03-13 20:29 zhw15 阅读(222) 评论(0) 推荐(0)
摘要: $_GET >get传送方式 $_POST >post传送方式 $_REQUEST >可以接收到get和post两种方式的值 $GLOBALS >所有的变量都放在里面 $_FILE >上传文件使用 $_SERVER >系统环境变量 $_SESSION >会话控制的时候会用到 $_COOKIE >会话 阅读全文
posted @ 2018-03-09 10:45 zhw15 阅读(171) 评论(0) 推荐(1)
摘要: require->require是无条件包含也就是如果一个流程里加入require,无论条件成立与否都会先执行 require include->include有返回值,而require没有(可能因为如此require的速度比include快) 注意:包含文件不存在或者语法错误的时候require是 阅读全文
posted @ 2018-03-09 10:25 zhw15 阅读(2033) 评论(0) 推荐(0)
摘要: 1 file_get_contents get 1.2 file_get_contents post 2 使用curl,get获取数据 2.2 使用curl。post获取数据 阅读全文
posted @ 2018-03-08 16:49 zhw15 阅读(222) 评论(0) 推荐(0)
摘要: 获取前一天的时间: 获取三天前的时间: 获取前一个月的时间: 获取前3个月的时间: 获取前一个小时的时间: 获取前一年的时间: 获取前一个季的时间: 获取前半年的时间: 阅读全文
posted @ 2018-03-08 16:43 zhw15 阅读(2923) 评论(0) 推荐(0)
摘要: String(字符串) Hash(哈希) List(列表) Set(集合) zset(sorted set:有序集合) 阅读全文
posted @ 2018-03-08 16:34 zhw15 阅读(92) 评论(0) 推荐(0)