摘要:
http://getcomposer.org/doc/00-intro.md#using-composer$ brew install josegonzalez/php/composer出现错误:composer: Missing PHP53, PHP54 or PHP55 from homebrew-php. Please install one of them before continuingcomposer安装提示:Note: If you receive an error saying PHP53 or higher is missing use this command to in 阅读全文
阅读排行榜
mac 下安装 mariadb
2014-05-15 13:47 by 萧 云, 1193 阅读, 收藏,
摘要:
通过brew 安装:brew install mariadb初始化数据库cd /usr/local/Cellar/mariadb/10.0.10/scriptsmysql_install_db --user=`root` --basedir="$(brew --prefix mariadb)" --... 阅读全文
CodeIgniter + smarty 实现widget功能
2014-02-25 13:09 by 萧 云, 931 阅读, 收藏,
摘要:
在开发过程中,经常需要widget功能,一可以隔离页面逻辑,二可以重用代码。结合smarty的plugin功能,可以方便的实现该功能。譬如,我们的页面中可以这样写:{{extends file='_layout.html'}} {{block name='content'}} {{widgets path='widgets/carousel'}} {{widgets path='widgets/news'}} {{widgets path='widgets/hots'}} {{widgets path='w 阅读全文
mac 下安装mcrypt 扩展
2014-01-19 18:04 by 萧 云, 818 阅读, 收藏,
摘要:
参考:http://coolestguidesontheplanet.com/how-to-install-mcrypt-for-php-on-mac-osx-lion-10-7-development-server/版本稍有不同,比较麻烦。还是直接用brew安装吧。brew install php54-mcrypt 阅读全文
ubuntu下安装 nginx + php + memcached + mariadb
2014-05-12 15:19 by 萧 云, 730 阅读, 收藏,
摘要:
一,apt-get 安装1,安装nginxsudo apt-get install nginx所有的配置文件都在/etc/nginx下,虚拟主机配置在/etc/nginx/sites-available下程序文件在/usr/sbin/nginx日志放在了/var/log/nginx中并已经在/etc... 阅读全文
浙公网安备 33010602011771号