2015年4月16日

php单例模式连接数据 并查询完整类

摘要: '127.0.0.1', 'user'=>'root', 'password'=>'', 'database'=>'cms' ); private function _construct(){ } static public func... 阅读全文

posted @ 2015-04-16 16:28 < Angus > 阅读(122) 评论(0) 推荐(0) 编辑

linux定时任务

摘要: 如何设置定时任务常用命令crontab -e //编写 * * * * * /usr/bin/php /data/www/12.phpcrontab -l //查看 l列出详细crontab -t //删除没有分钟 小时 日 月 星期 命令*/1每分钟php案... 阅读全文

posted @ 2015-04-16 14:58 < Angus > 阅读(179) 评论(0) 推荐(0) 编辑

php缓存技术 静态缓存 memcache缓存 redis缓存

摘要: php操作缓存生成获取删除 1 class file{ 2 private $_dir; 3 const EXT='.txt'; 4 public function __consruct(){ 5 $this->_dir dirname(__FILE___)... 阅读全文

posted @ 2015-04-16 14:09 < Angus > 阅读(666) 评论(0) 推荐(0) 编辑

php 封装json xml通讯数据方法 php开发APP接口

摘要: //php开发APP接口class Response{ const JSON="json"; public static function show($code,$message,$data=array(),$type=self::JSON){ if(!is_numeric($code)... 阅读全文

posted @ 2015-04-16 13:42 < Angus > 阅读(503) 评论(0) 推荐(0) 编辑

导航