
php
zsl10
这个作者很懒,什么都没留下…
展开
-
Warning: phpinfo() [function.phpinfo]: It is not safe to rely on the system's timezone settings.
问题如下: 解决办法: 配置php.ini的时区: date.timezone =asia/shanghai 重启服务器后问题解决:原创 2016-07-03 10:39:56 · 530 阅读 · 0 评论 -
编译安装libiconv报错:./stdio.h:1010:1: error: 'gets' undeclared here (not in a function)
错误如下: In file included from progname.c:26:0: ./stdio.h:1010:1: error: ‘gets’ undeclared here (not in a function) _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); ^原创 2016-08-07 17:31:09 · 14432 阅读 · 6 评论 -
修改php.ini配置文件无效的解决办法
1、确定修改的php.ini文件是否是加载的文件,使用命令:php -i | grep "php.ini"2、php-fpm.conf文件的配置可以覆盖php.ini文件的配置。 例如在php.ini文件修改配置display_errors=On,若php-fpm.conf文件下的配置:php_flag[display_errors] = off则配置不生效。 3、记得重启nginx和php-f原创 2017-08-09 18:08:13 · 3397 阅读 · 0 评论 -
WARNING: Nothing matches the include pattern '/usr/local/php7/etc/php-fpm.d/*.conf'
源码编译安装php7出现如下错误: 解决方法:# cd /usr/local/php/etc/php-fpm.d/# cp www.conf.default www.conf# /usr/local/php/sbin/php-fpm -t[12-Oct-2017 08:33:29] NOTICE: configuration file /usr/local/php/etc/php-fpm原创 2017-10-15 14:48:11 · 10501 阅读 · 0 评论 -
centos6.5编译安装LNMP环境
安装编译工具及库文件yum install -y apr* autoconf automake bison bzip2 bzip2* cloog-ppl compat* cpp curl curl-devel fontconfig fontconfig-devel freetype freetype* freetype-devel gcc gcc-c++ gtk+-devel gd gettext原创 2017-07-29 14:44:11 · 1692 阅读 · 0 评论 -
php7安装kafka扩展
一、安装librdkafka# cd /usr/local/src/# git clone https://github.com/edenhill/librdkafka.git# cd librdkafka# ./configure# make# make install# ln -s /usr/local/lib/librdkafka.so.1 /usr/lib/二、安装php-rdk原创 2017-12-07 16:55:31 · 4489 阅读 · 0 评论 -
yii2.0依赖注入DI代码实例
场景用户评论成功后可以灵活配置选用GMAIL、qq或其他邮箱发送邮件。文件功能EmailSenderInterface.php 邮件服务定义接口GmailSender.php gmail类实现EmailSenderInterfaceQqSender.php qq类实现EmailSenderInterfaceComment.php 评论类DiController.php...原创 2018-02-23 16:39:46 · 334 阅读 · 0 评论 -
使用php soap client自定义请求获取webservice封装的数据
github地址soapClient-php场景公司业务需要调外部公司使用.net webservice封装的接口,因此使用php(版本:5.6)创建soap client调取接口。外部公司规定的传输数据格式<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapen原创 2018-03-06 15:18:14 · 3397 阅读 · 0 评论 -
yii2自定义组件支持PHPStorm代码提示和跳转
具体实现项目根目录新建_ide_helper.php,具体内容如下:<?phpclass Yii{ /** * @var MyApplication */ public static $app;}/** * @property \common\components\Order $order */class MyApplicatio...原创 2018-03-26 17:46:56 · 2768 阅读 · 0 评论