摘要: 1 #启动mysql服务 net start mysql 2 #连接mysql服务器 3 mysql -uroot -h127.0.0.1 -ppassword 4 #退出 5 quit; 6 #停止mysql服务器 7 net stop mysql 8 mysqladmin -uroot shutdown -proot 9 10 #创建数据库 11 CREATE DATAB... 阅读全文
posted @ 2016-12-01 18:44 被时光移动的城市 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 1 类文件加载机制。 2 按需加载。 3 也叫自动加载机制。 4 5 不同模块下同时使用同一个类文件 会出现多次加载。 6 7 统一把类文件加载到一个文件中 但是 会出现不使用的类文件 8 9 这个时候php内部出现了自动加载机制。 10 11 自动加载机制的要求是: 12 当需要某... 阅读全文
posted @ 2016-12-01 18:03 被时光移动的城市 阅读(744) 评论(0) 推荐(0) 编辑
摘要: 1 name=$name; 23 $this->num=$num; 24 $this->price=$price; 25 } 26 } 27 28 29 30 class book extends goods{ 31 public $author; 32 public $pub... 阅读全文
posted @ 2016-12-01 18:02 被时光移动的城市 阅读(1209) 评论(0) 推荐(0) 编辑
摘要: 1 initServer($config); 21 22 //连接数据库操作 23 $this->connectServer(); 24 25 //设置字符集 26 $this->setCharset(); 27 28 //设置数据库 29 $t... 阅读全文
posted @ 2016-12-01 18:00 被时光移动的城市 阅读(299) 评论(0) 推荐(0) 编辑