随笔分类 -  PHP

摘要:I have installed Apache, PHP, and MySQL on Mac OS X since Leopard. Each time doing so by hand. Each version of Mac OS X having some minor difference. This post serves as much for my own record as to outline how to install Apache, MySQL, and PHP for a local development environment on Mac OS X Mountai 阅读全文
posted @ 2013-12-06 00:16 lei1016cn 阅读(809) 评论(0) 推荐(0)
摘要:最近有个项目接触到CodeIgniter,让我很是惊叹它的精巧,于是决定用它来做下一个项目。果然,蜜月期过了,毛病就出来了,具体的就是Session的问题。CodeIgniter的Session有两种方式,默认的Session是用Cookie来存储的,也可以切换到数据库存储,但是无论哪种Session都会有些很致命的问题,就是丢失数据。比如 Controller a.php 1: <?php if (! defined('BASEPATH')) exit('No direct script access allowed'); 2: 3: class A e 阅读全文
posted @ 2012-10-10 21:29 lei1016cn 阅读(3201) 评论(2) 推荐(2)
摘要:You might have direct access to your MySQL database from the command line. Usually this is done by sitting at your server, connecting directly to your server via SSH, or using the MySQL client on your... 阅读全文
posted @ 2010-10-11 00:50 lei1016cn 阅读(300) 评论(0) 推荐(0)