![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
php
廿一小天
这个作者很懒,什么都没留下…
展开
-
PHPExcel_Writer_Excel5
// PHPExcel_Writer_Excel5public function excelEmail($data = array(), $excel_header = array(), $expansion= array()) { $output_info = array('file_name' => null, 'file_real_path' => nu...原创 2018-09-19 13:42:31 · 2711 阅读 · 0 评论 -
php yaml 安装
环境centons7 , php7.1yaml版本 : yaml-2.0.4 (下载地址:https://pecl.php.net/package/yaml)libyaml版本 : yaml-0.2.2 (下载地址:https://pyyaml.org/download/libyaml/)注 : 如果权限不够,记得 sudolibyaml installtar -zxvf y...原创 2019-07-23 18:24:52 · 2101 阅读 · 0 评论 -
centOS7.4 套件安装php7.2,nignx,oci8,amqp,redis
PHP72yum install -y wget epel-releaseyum install -y http://rpms.remirepo.net/enterprise/remi-release-7.rpm#centos6,则#yum install -y http://rpms.remirepo.net/enterprise/remi-release-6.rpmyum i...原创 2019-03-27 17:29:17 · 850 阅读 · 0 评论 -
php 提取字符串中的数字
function findNum($str=''){ $str=trim($str); if(empty($str)){return '';} $reg='/(\d{3}(\.\d+)?)/is';//匹配数字的正则表达式 preg_match_all($reg,$str,$result); if(is_array($result)&&!em...转载 2019-02-13 10:10:11 · 3126 阅读 · 0 评论 -
php7.1.6 安装amqp
wget https://github.com/alanxz/rabbitmq-c/releases/download/v0.7.1/rabbitmq-c-0.7.1.tar.gz tar -xzvf rabbitmq-c-0.7.1.tar.gz cd rabbitmq-c-0.7.1 ./configure --prefix=/usr/local/rabbitmq-c-0.7.1 ma...原创 2019-01-08 16:33:06 · 719 阅读 · 0 评论 -
php header设置
//定义编码header( 'Content-Type:text/html;charset=utf-8 '); //Atomheader('Content-type: application/atom+xml'); //CSSheader('Content-type: text/css'); //Javascriptheader('Content-type: text/java...原创 2019-01-11 13:36:04 · 1622 阅读 · 0 评论 -
php的闭包实现递归
eg已知字符串的数组值转化对应的键值字符串已知数组键值转化数组值字符串function getBrandEmailList(){ return [ 1=>[ 'index'=>1, 'name' => 'test1', 'email' => '111111@qq.com' ],...原创 2018-10-10 16:07:16 · 793 阅读 · 0 评论 -
php+nginx设置上传大小
PHPphp.inifile_uploads : 是否允许通过HTTP上传文件的开关。默认为ON.upload_tmp_dir : 文件上传至服务器上存储临时文件的地方,如果没指定就会用系统默认的临时文件夹.upload_max_filesize : 允许上传文件大小的最大值。默认为2M.post_max_size : 指通过表单POST给PHP的所能接收的最大值,包括表单里的所有...原创 2018-10-09 13:39:24 · 457 阅读 · 0 评论 -
Centos rpm oci8
安装之前准备下载 :oracle-instantclient12.1-basic-12.1.0.2.0-1.x86_64.rpmoracle-instantclient12.1-sqlplus-12.1.0.2.0-1.x86_64.rpmoracle-instantclient12.1-devel-12.1.0.2.0-1.x86_64.rpm#查看 是否存在rpm -qa ...原创 2018-09-20 11:36:38 · 277 阅读 · 0 评论 -
php swiftemil
if (!defined('SWEMAIL_ROOT')) { define('SWEMAIL_ROOT', dirname(__FILE__) . '/'); require(SWEMAIL_ROOT . 'swiftmailer/swift_required.php');}class SWemail{ public $swift; public $ema...原创 2018-09-19 17:31:51 · 182 阅读 · 0 评论 -
php linux 安装yaml
1,下载yaml包 http://pyyaml.org/download/libyaml/yaml-0.2.2.tar.gztar -zxvf yaml-0.2.2.tar.gzcd yaml-0.2.2/./configuremakemake install2,下载php的yaml扩展包 https://pecl.php.net/package/yamltar -zv...原创 2019-08-29 16:23:11 · 924 阅读 · 0 评论