phpmyadmin升级
1 2 3 4 5 |
sudo apt-get install software-properties-common #添加PPA源 sudo add-apt-repository ppa:nijel/phpmyadmin sudo apt-get update sudo apt-get upgrade |
参考:https://www.exvs.or […]
人生没有原因,闯出一路精彩
1 2 3 4 5 |
sudo apt-get install software-properties-common #添加PPA源 sudo add-apt-repository ppa:nijel/phpmyadmin sudo apt-get update sudo apt-get upgrade |
参考:https://www.exvs.or […]
PHP中实现页面跳转有一下几种方式,看了几个人写的不是很条理,自己整理一下 在PHP脚本代码中实现   […]
查看/var/log/nginx/error.log, 报错:Call to undefined functi […]
参考:http://blog.csdn.net/anda0109/article/details/466553 […]
参考阅读: http://www.01happy.com/php-post-request-get-json- […]
安装php7 目前为止,rasbian上的php还是5版本, 想用上性能X2的7版本,需要在/etc/apt/ […]
https://www.digitalocean.com/community/tutorials/how-to […]
1 |
vi /etc/php5/apache2/php.ini |
find the “upload […]
https://github.com/PHPMailer/PHPMailer
怀着对鸟哥大神的滔滔敬仰,从他的发布的信息知道12月初php7就正式公布了,做为小白的支持,这个周未空出时间来 […]
1 2 3 4 5 6 7 8 9 10 11 12 |
// 创建 $arr = array(); $arr = array("abc","def","kkk");// 省略了key,默认为整数键,从0开始,以1递增 $arr = array("allen"=>"abc", "peter"=>"def","keven"=>"kkk");//带key, 可用$arr["allen"]取值 // 判断 in_array($value, $arr); // 是否包含指定值,最慢 array_key_exists($key, $arr); // 是否包含指定key, 快 isset($arr[$key]);//是否存在, 最快 // 计算数组中的元素数目或对象中的属性个数 count($arr); |
3个判断函数的性能参考:http://mae […]
1 2 3 4 5 6 7 |
$today = date("Y-m-d");//今天 $firstDay = date("Y-m-01", strtotime($today));//本月第一天 $lastDay = date("Y-m-t", strtotime($today));//本月最后一天 $last = strtotime("-1 month", time());//上个月的今天 $lastFirstDay = date("Y-m-01", strtotime($last));//上个月第一天 $lastLastDay = date("Y-m-t", strtotime($last));//上个月最后一天 |
这里计算本月最后一天,用的”t& […]