摘要:
两者都是自定义排序,如果第一个参数小于等于或大于第二个参数,那么比较函数必须返回一个小于等于或大于 0 的整数。 例子: uksort($data,function ($a,$b){if ($a==$b) return 0;return ($a<$b)?-1:1;}); 升序 uksort($dat 阅读全文
摘要:
1、opcode 2、zend_compile_file 3、php_screw 1. Scanning (Lexing) ,将PHP代码转换为语言片段(Tokens)2. Parsing , 将Tokens转换成简单而有意义的表达式3. Compilation , 将表达式编译成Opocdes4. 阅读全文
摘要:
1、yum install epel-release //扩展包更新包 2、yum update //更新yum源 阅读全文
摘要:
1、mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup 2、wget http://mirrors.163.com/.help/CentOS7-Base-163.repo 3、yum clean 阅读全文
摘要:
1、php http://am1.php.net/get/php-7.1.4.tar.gz/from/this/mirror 2、nginx http://nginx.org/download/nginx-1.12.0.tar.gz 3、mysql http://mirrors.sohu.com/m 阅读全文
摘要:
一、前端 1、引入jquery.js,jquery.form.js,layer.js文件 2、html代码 3、css代码 3、隐藏表单 4、js基类upload.js 二、后端代码: 阅读全文
摘要:
nginx -V | tr ' ' '\n'|grep ssl 阅读全文
摘要:
地址:http://phpqrcode.sourceforge.net/ 阅读全文
摘要:
fastcgi_param SCRIPT_FILENAME /xxxx$fastcgi_script_name; 阅读全文
摘要:
/usr/local/php/sbin/php-fpm --fpm-config /usr/local/php/etc/php-fpm.2.conf 阅读全文