摘要: 将扩展编译到php内部的方式会提高php运行扩展的效率,但是每次需要新添加扩展时都需要把php以及之前添加的所有扩展重新编译一边,非常麻烦。 独立编译扩展,php外部调用扩展的方式虽然会牺牲一点点的性能,但是却提供了灵活性 用pecl安装 # cd /usr/local/php/bin 1.先查看p 阅读全文
posted @ 2016-10-24 16:21 MysticGrrrr 阅读(441) 评论(0) 推荐(0) 编辑
摘要: 按照composer官网的指导,运行下列命令:curl -sS https://getcomposer.org/installer | php长时间无反应。手动安装1.下载installer# wget https://getcomposer.org/installer2.修改文件权限# chmod 阅读全文
posted @ 2016-10-24 15:52 MysticGrrrr 阅读(137) 评论(0) 推荐(0) 编辑
摘要: 以下是教训 1.安装bcmath扩展 --enable-bcmath 2.在项目根目录创建composer.json: 3.# composer install 执行composer install 之后仍然提示bcmath扩展没有在系统中 在phpinfo中查看到bcmath已经成功加载,并编写了 阅读全文
posted @ 2016-10-24 12:41 MysticGrrrr 阅读(1412) 评论(0) 推荐(0) 编辑