06 2020 档案
摘要:下面/usr/local/php5是php的安装目录 安装imagickcd /usr/local/srcwget http://pecl.php.net/get/imagick-3.0.1.tgz #下载imagicktar zxvf imagick-3.0.1.tgzcd imagick-3.0
阅读全文
摘要:在php7版本的时候,mysql_connect已经不再被支持了,本文将讲述在代码层面实现php7兼容mysql系列,mysql_connect等操作。 PHP7不再兼容mysql系列函数,入mysql_connect等操作,强行操作报错:Uncaught Error: Call to undefi
阅读全文
摘要:命令: linux设置开机服务自动启动/关闭自动启动命令 [root@localhost ~]# chkconfig --list 显示开机可以自动启动的服务 [root@localhost ~]# chkconfig --add *** 添加开机自动启动***服务 [root@localhost
阅读全文
摘要:在php扩展memcached中执行./configure --with-php-config=/usr/local/php/bin/php-config 报错: error: memcached support requires libmemcached. Use --with-lib memca
阅读全文
摘要:libmcrypt是什么?? 是加密算法扩展库 支持DES, 3DES, RIJNDAEL, Twofish, IDEA, GOST, CAST-256, ARCFOUR, SERPENT, SAFER+等算法 在安装时候出现如下错误: 出现该情况是由于c++编译器的相关package没有安装,以r
阅读全文
摘要:Deprecated: __autoload() is deprecated, use spl_autoload_register() 解决:可能原因PHP版本过高,亲测discuz3.4版本使用php7.2.10会出现此bug,更换到php7.1以下就可以
阅读全文
摘要:在上线新功能的时候,需要将服务器停掉,防止在更新过程中有用户进行操作额外的数据。 1:查看nginx主进程: ps -ef | grep nginx 这里root 后面的数字表示:主进程号nginx后面的数字表示:子进程号然后停止nginx服务的时候第一: systemctl stop nginx
阅读全文
摘要:可以使用encodeURIComponent():函数可把字符串作为 URI 组件进行编码。 可以使用decodeURIComponent():函数可把字符串作为 URI 组件进行解码。
阅读全文
摘要:https://www.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/data-retrieval-and-manipulation.html#api $conn = $this->getDoctrine()->get
阅读全文
摘要:1. 数组,没有键名 但只查询出第一个结果 $conn = $this->getDoctrine()->getConnection(); $data = $conn->fetchArray('SELECT * FROM user where id < 3'); // 或者 // $data = $c
阅读全文
摘要:1、mysql workbench 菜单file=>add model(添加模型) 点击上面的add diagram(添加新的图解),就会在右边多出一个新的图解模型 2,mysql workbench 菜单database=>reverse engineer mysql workbench 连接数据
阅读全文
摘要:可以参考官方文档给出来的解决办法 http://symfonychina.com/doc/current/bundles/SensioGeneratorBundle/commands/generate_bundle.html
阅读全文
摘要:git撤销某个文件的修改,分为两种情况:1.在工作区修改,但并未提交到暂存区(即并没有add)。对于单个文件的撤销修改而言,使用下面方法。 git checkout -- 文件名 若想撤销工作区中所有文件的修改,则 git checkout . 注意:git chekcout 是让文件回到最近一次该
阅读全文
摘要:一、 启动1、使用 service 启动:service mysql start2、使用 mysqld 脚本启动:/etc/inint.d/mysql start3、使用 safe_mysqld 启动:safe_mysql&二、停止1、使用 service 启动:service mysql stop
阅读全文
摘要:命令 locate my.cnf 产生以上错误 此时执行 # updatedb 更新下数据库即可
阅读全文
摘要:一、拥有原来的myql的root的密码 方法一: 在mysql系统外,使用mysqladmin mysqladmin -u root -p password "test123" 方法二: 通过登录mysql系统 mysql -uroot -p Enter password: 【输入原来的密码】 my
阅读全文
摘要:mysql 新版本出现group by 语句不兼容问题 [Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column’information_sche
阅读全文
摘要:1. 功能请求失效: 可能是链接为http请求,导致出现问题 2.浏览器网址左边出现黄色感叹号: 这是由于网页中存在http的图片链接,需要根据实际情况修改; 3.将网页内的http请求变为https: 一个办法是在 html代码 <head> 中 加入 <meta http-equiv="Cont
阅读全文
摘要:1. 使用url('route_a_b_c') 这种方式会是全路径 : http://www.test.com/a/b/c 2. 使用path('route_a_b_c') 这种方式只是路径: /a/b/c
阅读全文
摘要:问题原因:HTTPS页面里动态的引入HTTP资源,比如引入一个js文件,会被直接block掉的.在HTTPS页面里通过AJAX的方式请求HTTP资源,也会被直接block掉的。 解决方案: <meta http-equiv="Content-Security-Policy" content="upg
阅读全文
摘要:列出标签 # 默认按字母排序显示 $ git tag # 模糊匹配查找标签 $ git tag -l "v2.8.5*" 创建标签 # 创建附注标签 $ git tag -a v1.4 -m "my version 1.4" $ git show v1.4 tag v1.4 给某个提交创建标签 $
阅读全文
摘要:展示两个版本之间改动细节 git diff sdafsfsfgf4 sdfsfdhkllg 展示两个版本之间改动文件列表名,不展示细节 git diff --name-status sdafsfsfgf4 sdfsfdhkllg Git 对比两个版本间某一个文件的变化 先列出两个版本间发生更改的文件
阅读全文