摘要: linux下的mongodb相对比较简单, 无需编译安装, 也无需配置首先将mongodb解压, mongodb下载地址:http://fastdl.mongodb.org/linux/mongodb-linux-i686-1.8.0.tgz再将解压后的文件拷贝到/usr/local/mongodb下, 一般是放在这个目录, 也可以是其它目录切换到/usr/local/mongodb目录下, 创建data目录, 和log文件, 用于存放数据库文件和数据库日志启动mongodb, mongodb默认端口号是:27017 --dbpath是指定数据库文件的存放目录, --logpath是日志文件的 阅读全文
posted @ 2013-08-23 14:46 、包小包 阅读(595) 评论(0) 推荐(0) 编辑
摘要: JAVA版:class More{ public static void main(String args[]) { char a = 'a'; int i = 0; System.out.println("打印26个大小写字母:"); for (; i int main(){ char a = 'a'; int i = 0; printf("打印大小写字母:\n"); for (; i < 26; i++) { printf("%c", a + i); } printf("\n&quo 阅读全文
posted @ 2013-08-16 11:04 、包小包 阅读(381) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2013-08-14 17:54 、包小包 阅读(574) 评论(0) 推荐(0) 编辑
摘要: 'captcha_bg1.jpg', 2 =>'captcha_bg2.jpg', 3 =>'captcha_bg3.jpg', 4 =>'captcha_bg4.jpg', 5 =>'captcha_bg5.jpg', ); protected $img_gif = array( 1 =>'captcha_bg1.jpg', 2 =>'captcha_bg2.jpg', ... 阅读全文
posted @ 2013-08-12 17:46 、包小包 阅读(253) 评论(0) 推荐(0) 编辑
摘要: array('function' => '_var'), //普通一维数组 'include' => array('function' => '_include'), //css文件引入 'insert' => array('function' => '_insert'), //js文件引入 'foreach' => array('level' => 3, 'function' 阅读全文
posted @ 2013-08-12 17:45 、包小包 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 首先准备需要多写几套皮肤,也就CSS样式,然后每次点击换肤时,将整个网页的CSS样式换成另一种样式,网页换肤,原理就这么简单 阅读全文
posted @ 2013-08-12 09:04 、包小包 阅读(137) 评论(0) 推荐(0) 编辑
摘要: 本人利用业余时间,自己在开发项目,框架还在搭建中,完全写完估计要两到三个月。先分享一下刚写完的mysql类,因为代码比较多,相关配置常量就不贴出来了。只贴出MYSQL核心代码。欢迎BUG指正,见议提出start_time = time(); $this->dbhost = $dbhost; $this->dbuser = $dbuser; $this->dbpwd = $dbpwd; $this->dbname ... 阅读全文
posted @ 2013-08-02 22:39 、包小包 阅读(297) 评论(0) 推荐(0) 编辑
摘要: 用PHP来构造一个单例类<?php class Single { private static $self; final protected function __construct() { } final public static function get_self() { if (Single::$self instanceof Single) return Single::$self; Single::$self = new Single(); return Single::$self; } function __clone() { trigger_e... 阅读全文
posted @ 2013-07-29 17:26 、包小包 阅读(85) 评论(0) 推荐(0) 编辑
摘要: 在编译软件之前请先保证linux上已经安装了gcc和gcc-c++编译器执行rpm -qa | grep gcc(如果没有安装,请先使用rpm -ivh安装编译软件,或者使用yum安装)安装之前请添加mysql用户组和mysql用户groupadd mysqluseradd -g mysql mysql将mysql源码包解压,进入解压目录./configure --prefix=/usr/local/mysql \ #mysql安装目录--with-charset=utf8 \--with-extra-charsets=all\ #我一般只配置这两项回车执行上面操作配置完成后 如果看到这... 阅读全文
posted @ 2013-07-29 16:48 、包小包 阅读(77) 评论(0) 推荐(1) 编辑
摘要: 已兼容IE6、7、8, Firefox, Chrome,Opera,360浏览器HTML部分代码: New Document 首页 Red Hat /root的个人博客 个人博客 Red Hat /root的个人博客... 阅读全文
posted @ 2013-07-26 17:05 、包小包 阅读(201) 评论(0) 推荐(0) 编辑