摘要:
一、安装 添加镜像,加速下载 ./composer.phar config -g repo.packagist composer https://packagist.phpcomposer.com CodeSniffer composer.phar global require "squizlabs 阅读全文
阅读排行榜
给php添加ssl证书
2016-02-22 14:48 by 斌哥tobin, 5232 阅读, 收藏,
摘要:
composer下载时报错: The "https://packagist.org/packages.json" file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages: error 阅读全文
Linux脚本实现“按任意键继续/Press any key to continue”效果
2013-10-25 16:12 by 斌哥tobin, 4461 阅读, 收藏,
摘要:
此代码来自lnmp一键安装包,用于实现“按任意键继续/Press any key to continue”效果:get_char() { SAVEDSTTY=`stty -g`#隐藏终端输入显示 stty -echo stty cbreak#dd等待用户按键 bs(block size)块大小=1,count总数=1,作用只取一个字符, 2> /dev/null不显示任何信息 dd if=/dev/tty bs=1 count=1 2> /dev/null stty -raw#恢复终端显示 stty echo stty $SAVEDSTTY } echo "" 阅读全文
configure: error: C++ compiler cannot create executables
2013-12-19 19:18 by 斌哥tobin, 4405 阅读, 收藏,
摘要:
今天装虚拟机LNMP环境安装报错:configure: error: C++ compiler cannot create executables这是因为 gcc 组件不完整,执行安装yum install gcc gcc-c++这样就可以解决了查看gcc安装情况rpm -qa | grep gcc结果显示:libgcc-4.1.2-54.el5libgcc-4.1.2-54.el5gcc-4.1.2-54.el5gcc-c++-4.1.2-54.el5这样就是安装正确了 阅读全文
使用 bcompiler 给PHP代码加密编译
2013-01-04 17:07 by 斌哥tobin, 4197 阅读, 收藏,
摘要:
PHP代码的加密,您开始想到的一定是Zend Encode,Zend官方出品当然值得信赖,但它是商业化产品,是收费的,网上找到的破解版也不尽人意。通过搜索,我找到了一个免费开源的加密工具 bcompiler,感谢作者开发出这么好的工具。bcompiler全名是 PHP bytecode Compiler,即字节码编译。源码目前托管在PECL,网址:http://pecl.php.net/package/bcompilerbcompiler是以PHP扩展的方式实现,用PHP函数的方式调用,十分方便PHPCoder们自行加密自己的代码。下面具体说一下安装和使用的方法。关于安装Linux安装bcom 阅读全文
浙公网安备 33010602011771号