摘要: PHP截取两位小数点,不四舍五入 number_format() 函数通过千位分组来格式化数字。 阅读全文
posted @ 2017-09-14 09:39 青柚 阅读(1567) 评论(0) 推荐(1)
摘要: error: The following untracked working tree files would be overwritten by merge: access_token.php jsapi_ticket.php Please move or remove them before y 阅读全文
posted @ 2017-08-23 15:03 青柚 阅读(2078) 评论(0) 推荐(0)
摘要: 当你配置apache 访问网页一直在加载,似乎被挂起. 转圈需要3分钟多钟, 最终显示无法访问. 或者超时. 错误日志中有如下提示: [Thu May 30 10:33:31.148293 2013] [mpm_winnt:warn] [pid 8072:tid 1756] (OS 64)指定的网络 阅读全文
posted @ 2017-08-23 11:34 青柚 阅读(235) 评论(0) 推荐(0)
摘要: 本地环境 本地机:win10 虚拟机:centOS 7 64位 软件:VMware Workstation Pro 连接步骤 虚拟机连接网络已桥接方式连接 更改虚拟机的文件 以拥有root权限的账号进行修改 切换账号 [su root ] 进入 [cd /etc/sysconfig/network 阅读全文
posted @ 2017-08-13 13:07 青柚 阅读(184) 评论(0) 推荐(0)
摘要: PHP重整数组 服务器返回的数组时经过unset()之后的数组 经过json_encode后返回客户端 在客户端利用JQ进行 遍历循环会出现错误 不是标准的数组 无法遍历和获取长度 解决办法:在服务器端将数据进行array_values();后再返回给客户端 阅读全文
posted @ 2017-07-08 17:08 青柚 阅读(326) 评论(0) 推荐(0)
摘要: centos7 开启端口 开启端口 firewall cmd zone=public add port=80/tcp permanent 命令含义: zone 作用域 add port=80/tcp 添加端口,格式为:端口/通讯协议 permanent 永久生效,没有此参数重启后失效 开启之后需要重 阅读全文
posted @ 2017-06-24 16:11 青柚 阅读(174) 评论(0) 推荐(0)
摘要: ___ 1,检查是否安装 telnet server和xinetd rpm qa telnet server rpm qa xinetd ___ 2,如果没有安装过就安装 查找yum yum list |grep telnet yum list |grep xinetd ___ 3,执行安装语句 y 阅读全文
posted @ 2017-06-24 13:48 青柚 阅读(1224) 评论(0) 推荐(0)
摘要: 代码 "; //循环打印数据 while ($row = mysqli_fetch_assoc($result)) { echo "{$row['id']}{$row['name']}"; } echo ""; mysqli_free_result($result); mysqli_close($c 阅读全文
posted @ 2017-06-11 16:26 青柚 阅读(191) 评论(0) 推荐(0)
摘要: Git的使用 git pull 出现如下错误: There is no tracking information for the current branch. Please specify which branch you want to merge with. If you wish to se 阅读全文
posted @ 2017-06-02 21:51 青柚 阅读(4531) 评论(0) 推荐(0)
摘要: PHP MYSQL 数据库连接 例: 阅读全文
posted @ 2017-05-25 21:23 青柚 阅读(145) 评论(0) 推荐(0)