04 2016 档案

摘要:display(); } function do_login(){ //获取用户名和密码信息,和数据库中比对 // echo 111111111; // dump($_POST); // dump($_SESSION); $username... 阅读全文
posted @ 2016-04-29 19:45 czcb 阅读(168) 评论(0) 推荐(0) 编辑
摘要:display(); } function do_login(){ //获取用户名和密码信息,和数据库中比对 // echo 111111111; // dump($_POST); // dump($_SESSION); $username... 阅读全文
posted @ 2016-04-29 19:45 czcb 阅读(120) 评论(0) 推荐(0) 编辑
摘要:## ThinkPHP 3.1.2 URL本节课大纲:一、URL规则 1、默认是区分大小写的 2、如果我们不想区分大小写可以改配置文件 'URL_CASE_INSENSITIVE'=>true,//url不区分大小写 3、如果模块名为 UserGroupAction 那么url找模块就必... 阅读全文
posted @ 2016-04-29 16:35 czcb 阅读(123) 评论(0) 推荐(0) 编辑
摘要:## ThinkPHP 3.1.2 URL本节课大纲:一、URL规则 1、默认是区分大小写的 2、如果我们不想区分大小写可以改配置文件 'URL_CASE_INSENSITIVE'=>true,//url不区分大小写 3、如果模块名为 UserGroupAction 那么url找模块就必... 阅读全文
posted @ 2016-04-29 16:35 czcb 阅读(181) 评论(0) 推荐(0) 编辑
摘要:public function search_ip(){ $where['ip'] = $_GET['ip']; $Machine = M('Machine_info'); $arr = $Machine->where($where)->select(); echo json_encode($... 阅读全文
posted @ 2016-04-29 15:16 czcb 阅读(154) 评论(0) 推荐(0) 编辑
摘要:public function search_ip(){ $where['ip'] = $_GET['ip']; $Machine = M('Machine_info'); $arr = $Machine->where($where)->select(); echo json_encode($... 阅读全文
posted @ 2016-04-29 15:16 czcb 阅读(118) 评论(0) 推荐(0) 编辑
摘要:else{ $hash{$phone}="没有找到需要的验证码信息"; $c->render(json => \%hash ); 阅读全文
posted @ 2016-04-29 14:51 czcb 阅读(165) 评论(0) 推荐(0) 编辑
摘要:redirect('Login/index'); } } public function index(){ $city=M('city'); //返回Model实例 //返回数组 $arr=$city->select(); //dump($arr); $this->assig... 阅读全文
posted @ 2016-04-29 09:56 czcb 阅读(471) 评论(0) 推荐(0) 编辑
摘要:redirect('Login/index'); } } public function index(){ $city=M('city'); //返回Model实例 //返回数组 $arr=$city->select(); //dump($arr); $this->assig... 阅读全文
posted @ 2016-04-29 09:56 czcb 阅读(576) 评论(0) 推荐(0) 编辑
摘要:activemq:redis01:/root# cp apache-activemq-5.13.2-bin.tar.gz /usr/local/安装目录:redis01:/usr/local/apache-activemq-5.13.2# pwd/usr/local/apache-activem... 阅读全文
posted @ 2016-04-29 09:26 czcb 阅读(143) 评论(0) 推荐(0) 编辑
摘要:activemq:redis01:/root# cp apache-activemq-5.13.2-bin.tar.gz /usr/local/安装目录:redis01:/usr/local/apache-activemq-5.13.2# pwd/usr/local/apache-activem... 阅读全文
posted @ 2016-04-29 09:26 czcb 阅读(118) 评论(0) 推荐(0) 编辑
摘要:#本节课大纲:一、空模块和空操作 1、空操作 function _empty($name){ $this->show("$name 不存在 返回首页"); } 2.空模块 class EmptyAction extends Action{ function index(){ $ci... 阅读全文
posted @ 2016-04-28 17:28 czcb 阅读(223) 评论(0) 推荐(0) 编辑
摘要:#本节课大纲:一、空模块和空操作 1、空操作 function _empty($name){ $this->show("$name 不存在 返回首页"); } 2.空模块 class EmptyAction extends Action{ function index(){ $ci... 阅读全文
posted @ 2016-04-28 17:28 czcb 阅读(512) 评论(0) 推荐(0) 编辑
摘要:本节课大纲:一、空模块和空操作 1、空操作 function _empty($name){ $this->show("$name 不存在 返回首页"); } 2.空模块 class EmptyAction extends Action{ function index(){ $cit... 阅读全文
posted @ 2016-04-28 15:16 czcb 阅读(118) 评论(0) 推荐(0) 编辑
摘要:本节课大纲:一、空模块和空操作 1、空操作 function _empty($name){ $this->show("$name 不存在 返回首页"); } 2.空模块 class EmptyAction extends Action{ function index(){ $cit... 阅读全文
posted @ 2016-04-28 15:16 czcb 阅读(322) 评论(0) 推荐(0) 编辑
摘要:HTML::Entities 编码或解码 HTML 实体的字符串 use HTML::Entities; $a = "Våre norske tegn bør æres"; decode_entities($a); encode_entities($a, "\200-\377"); 比如, ... 阅读全文
posted @ 2016-04-28 10:19 czcb 阅读(473) 评论(0) 推荐(0) 编辑
摘要:[root@dr-mysql01 ~]# cat a1.pl use Encode; use JSON; use URI::Escape; use LWP::Simple; my $host = "http://192.168.32.101:3000/api/getcode?env=z... 阅读全文
posted @ 2016-04-27 13:23 czcb 阅读(494) 评论(0) 推荐(0) 编辑
摘要:[root@dr-mysql01 ~]# cat a1.pl use Encode; use JSON; use URI::Escape; use LWP::Simple; my $host = "http://192.168.32.101:3000/api/getcode?env=z... 阅读全文
posted @ 2016-04-27 13:23 czcb 阅读(172) 评论(0) 推荐(0) 编辑
摘要:一、限制访问IP和端口MongoDB可以限制只允许某一特定IP来访问,只要在启动时加一个参数bind_ip即可,或者在/etc/mongodb.conf中添加bind_ip配置,如下:# 方法一mongod --bind_ip 127.0.0.1,10.0.133.14# 方法二在/etc/mo... 阅读全文
posted @ 2016-04-26 17:42 czcb 阅读(2707) 评论(0) 推荐(0) 编辑
摘要:一、限制访问IP和端口MongoDB可以限制只允许某一特定IP来访问,只要在启动时加一个参数bind_ip即可,或者在/etc/mongodb.conf中添加bind_ip配置,如下:# 方法一mongod --bind_ip 127.0.0.1,10.0.133.14# 方法二在/etc/mo... 阅读全文
posted @ 2016-04-26 17:42 czcb 阅读(849) 评论(0) 推荐(0) 编辑
摘要:## acl zjdev_7_req hdr_beg(host) -i www.zjdev.com# use_backend appserver_8001 ... 阅读全文
posted @ 2016-04-26 12:44 czcb 阅读(129) 评论(0) 推荐(0) 编辑
摘要:## acl zjdev_7_req hdr_beg(host) -i www.zjdev.com# use_backend appserver_8001 ... 阅读全文
posted @ 2016-04-26 12:44 czcb 阅读(136) 评论(0) 推荐(0) 编辑
摘要:docker run -itd -v /data/:/data1 centos bash // -v 用来指定挂载目录,:前面的/data为本地目录,:后面的/data1 为容器里的目录:docker:/root# docker run -itd --name zjtest8_frontend... 阅读全文
posted @ 2016-04-26 10:54 czcb 阅读(1763) 评论(0) 推荐(0) 编辑
摘要:docker run -itd -v /data/:/data1 centos bash // -v 用来指定挂载目录,:前面的/data为本地目录,:后面的/data1 为容器里的目录:docker:/root# docker run -itd --name zjtest8_frontend... 阅读全文
posted @ 2016-04-26 10:54 czcb 阅读(456) 评论(0) 推荐(0) 编辑
摘要:encode_utf8等于 $octets = encode_utf8($string); 这个字符串 在$string 在Perl的内部格式,返回结果是作为一个顺序的字节。因为所有的可能的字符串在Perl是松散,不严格的 UTF-8表示decode_utf8 解码utf-8 阅读全文
posted @ 2016-04-25 13:08 czcb 阅读(336) 评论(0) 推荐(0) 编辑
摘要:if($msg->type eq "friend_message"){#接收到好友消息 $sender = $msg->sender; #获取到该好友对象 $friend=$sender->displayname; # print "我的好友... 阅读全文
posted @ 2016-04-24 13:52 czcb 阅读(153) 评论(0) 推荐(0) 编辑
摘要:if($msg->type eq "friend_message"){#接收到好友消息 $sender = $msg->sender; #获取到该好友对象 $friend=$sender->displayname; # print "我的好友... 阅读全文
posted @ 2016-04-24 13:52 czcb 阅读(181) 评论(0) 推荐(0) 编辑
摘要:AnyEvent::HTTP - simple but non-blocking HTTP/HTTPS client 一个简单的非堵塞的 HTTP/HTTPS 客户端:use AnyEvent::HTTP;http_get “http://www.nethype.de/“, su... 阅读全文
posted @ 2016-04-22 13:57 czcb 阅读(151) 评论(0) 推荐(0) 编辑
摘要:AnyEvent::HTTP - simple but non-blocking HTTP/HTTPS client 一个简单的非堵塞的 HTTP/HTTPS 客户端:use AnyEvent::HTTP;http_get “http://www.nethype.de/“, su... 阅读全文
posted @ 2016-04-22 13:57 czcb 阅读(338) 评论(0) 推荐(0) 编辑
摘要:异步超时设置:例子:Example: do a simple HTTP GET request for http://www.nethype.de/ and print the response body. http_request GET => "http://www.nethype.de... 阅读全文
posted @ 2016-04-22 09:55 czcb 阅读(720) 评论(0) 推荐(0) 编辑
摘要:异步超时设置:例子:Example: do a simple HTTP GET request for http://www.nethype.de/ and print the response body. http_request GET => "http://www.nethype.de... 阅读全文
posted @ 2016-04-22 09:55 czcb 阅读(327) 评论(0) 推荐(0) 编辑
摘要:Mongodb 配置用户密码:首先创建admin数据库的用户密码再创建pics的用户名密码> show databases;admin 0.203125GBlocal 0.078125GBpics 0.953125GBtest (empty)> use admin;switched to db ... 阅读全文
posted @ 2016-04-21 16:50 czcb 阅读(236) 评论(0) 推荐(0) 编辑
摘要:Mongodb 配置用户密码:首先创建admin数据库的用户密码再创建pics的用户名密码> show databases;admin 0.203125GBlocal 0.078125GBpics 0.953125GBtest (empty)> use admin;switched to db ... 阅读全文
posted @ 2016-04-21 16:50 czcb 阅读(214) 评论(0) 推荐(0) 编辑
摘要:第二部:创建用户定位到D:\Program Files \mongodb\bin,使用mongo.exe进入mongodb的命令行管理。键入命令:>use admin>db.addUser(“root”, “root”)现在我们为mongodb的admin数据库添加一个用户root,密码也是ro... 阅读全文
posted @ 2016-04-21 15:33 czcb 阅读(401) 评论(0) 推荐(0) 编辑
摘要:本节课大纲:一、模板包含 在模板中变量用[变量]接受 二、模板渲染 1、自动开启模板渲染 设置配置文件 'LAYOUT_ON'=>true,//开启模板渲染 准备一个模板渲染页面,在页面中使用{__CONTENT__}接受具体模板页面的内容 如果在摸一... 阅读全文
posted @ 2016-04-21 15:23 czcb 阅读(248) 评论(0) 推荐(0) 编辑
摘要:本节课大纲:一、模板包含 在模板中变量用[变量]接受 二、模板渲染 1、自动开启模板渲染 设置配置文件 'LAYOUT_ON'=>true,//开启模板渲染 准备一个模板渲染页面,在页面中使用{__CONTENT__}接受具体模板页面的内容 如果在摸一... 阅读全文
posted @ 2016-04-21 15:23 czcb 阅读(167) 评论(0) 推荐(0) 编辑
摘要:use Net::ZooKeeper qw(:node_flags :acls); my $zkh = Net::ZooKeeper->new('localhost:7000'); zjzc01:/zookeeper/server1# cd srczjzc01:/zookeeper/s... 阅读全文
posted @ 2016-04-21 13:13 czcb 阅读(148) 评论(0) 推荐(0) 编辑
摘要:use Net::ZooKeeper qw(:node_flags :acls); my $zkh = Net::ZooKeeper->new('localhost:7000'); zjzc01:/zookeeper/server1# cd srczjzc01:/zookeeper/s... 阅读全文
posted @ 2016-04-21 13:13 czcb 阅读(287) 评论(0) 推荐(0) 编辑
摘要:php 常用的数据库查询方式://根据where 条件查询,使用select()方法访问:http://localhost/thinkphp2/index.php/Machine/search_ip/?ip=192.168.32.101返回:array (size=2) 0 => ar... 阅读全文
posted @ 2016-04-20 15:54 czcb 阅读(177) 评论(0) 推荐(0) 编辑
摘要:php 常用的数据库查询方式://根据where 条件查询,使用select()方法访问:http://localhost/thinkphp2/index.php/Machine/search_ip/?ip=192.168.32.101返回:array (size=2) 0 => ar... 阅读全文
posted @ 2016-04-20 15:54 czcb 阅读(137) 评论(0) 推荐(0) 编辑
摘要:本节课大纲:一、导入CSS和JS文件 1、css link js scr 2.import //导入Public文件夹下面的Js目录中的test.js文件,import标签可以省略type属性,默认就是js的 //可以更改默认文件夹 设置basepath属... 阅读全文
posted @ 2016-04-20 14:41 czcb 阅读(123) 评论(0) 推荐(0) 编辑
摘要:本节课大纲:一、导入CSS和JS文件 1、css link js scr 2.import //导入Public文件夹下面的Js目录中的test.js文件,import标签可以省略type属性,默认就是js的 //可以更改默认文件夹 设置basepath属... 阅读全文
posted @ 2016-04-20 14:41 czcb 阅读(116) 评论(0) 推荐(0) 编辑
摘要:my $url='https://www.zjcap.cn/business/dispatch_post.do?action=submitAdminLogin'; my $res = $ua->post($url,{ 'userName'=>'xxx... 阅读全文
posted @ 2016-04-20 11:32 czcb 阅读(197) 评论(0) 推荐(0) 编辑
摘要:my $url='https://www.zjcap.cn/business/dispatch_post.do?action=submitAdminLogin'; my $res = $ua->post($url,{ 'userName'=>'xxx... 阅读全文
posted @ 2016-04-20 11:32 czcb 阅读(131) 评论(0) 推荐(0) 编辑
摘要:[root@Proxy01 init.d]# service tomcat8084 stopStopping Tomcat: su: cannot set user id: Resource temporarily unavailable[root@Proxy01 init.d]# id tom... 阅读全文
posted @ 2016-04-20 09:41 czcb 阅读(187) 评论(0) 推荐(0) 编辑
摘要:[root@Proxy01 init.d]# service tomcat8084 stopStopping Tomcat: su: cannot set user id: Resource temporarily unavailable[root@Proxy01 init.d]# id tom... 阅读全文
posted @ 2016-04-20 09:41 czcb 阅读(229) 评论(0) 推荐(0) 编辑
摘要:## ThinkPHP 3.1.2 模板中的基本语法一.传统的方式,导入CSS和JS文件 1、css link js scr 2.import //导入Public文件夹下面的Js目录中的test.js文件,import标签可以省略type属性,默认就是js的 ... 阅读全文
posted @ 2016-04-19 17:36 czcb 阅读(148) 评论(0) 推荐(0) 编辑
摘要:## ThinkPHP 3.1.2 模板中的基本语法一.传统的方式,导入CSS和JS文件 1、css link js scr 2.import //导入Public文件夹下面的Js目录中的test.js文件,import标签可以省略type属性,默认就是js的 ... 阅读全文
posted @ 2016-04-19 17:36 czcb 阅读(155) 评论(0) 推荐(0) 编辑
摘要:一、变量输出 (重点) 1.标量输出 2.数组输出 {$name[1]} {$name['k2']} {$name.k1} 3.对象输出 {$name:k} {$name->k}二、系统变量 {$Think.get.id}三、使用函数 {$n... 阅读全文
posted @ 2016-04-19 15:04 czcb 阅读(165) 评论(0) 推荐(0) 编辑
摘要:一、变量输出 (重点) 1.标量输出 2.数组输出 {$name[1]} {$name['k2']} {$name.k1} 3.对象输出 {$name:k} {$name->k}二、系统变量 {$Think.get.id}三、使用函数 {$n... 阅读全文
posted @ 2016-04-19 15:04 czcb 阅读(115) 评论(0) 推荐(0) 编辑
摘要:异步http:jrhmpt01:/root/async# cat a1.pl use LWP::UserAgent;use utf8;use DBI;use POSIX;use HTTP::Date qw(time2iso str2time time2iso time2isoz);use Da... 阅读全文
posted @ 2016-04-16 20:46 czcb 阅读(166) 评论(0) 推荐(0) 编辑
摘要:异步http:jrhmpt01:/root/async# cat a1.pl use LWP::UserAgent;use utf8;use DBI;use POSIX;use HTTP::Date qw(time2iso str2time time2iso time2isoz);use Da... 阅读全文
posted @ 2016-04-16 20:46 czcb 阅读(294) 评论(0) 推荐(0) 编辑
摘要:jrhmpt01:/root/async# cat a2.pl use LWP::UserAgent;use utf8;use DBI;use POSIX;use HTTP::Date qw(time2iso str2time time2iso time2isoz);my $ua = LWP:... 阅读全文
posted @ 2016-04-16 20:10 czcb 阅读(116) 评论(0) 推荐(0) 编辑
摘要:jrhmpt01:/root/async# cat a2.pl use LWP::UserAgent;use utf8;use DBI;use POSIX;use HTTP::Date qw(time2iso str2time time2iso time2isoz);my $ua = LWP:... 阅读全文
posted @ 2016-04-16 20:10 czcb 阅读(219) 评论(0) 推荐(0) 编辑
摘要:jrhmpt01:/root/async# cat a2.pl use LWP::UserAgent;use utf8;use DBI;use POSIX;use HTTP::Date qw(time2iso str2time time2iso time2isoz);my $ua = LWP:... 阅读全文
posted @ 2016-04-16 19:36 czcb 阅读(163) 评论(0) 推荐(0) 编辑
摘要:jrhmpt01:/root/async# cat a2.pl use LWP::UserAgent;use utf8;use DBI;use POSIX;use HTTP::Date qw(time2iso str2time time2iso time2isoz);my $ua = LWP:... 阅读全文
posted @ 2016-04-16 19:36 czcb 阅读(158) 评论(0) 推荐(0) 编辑
摘要:lwp 超时问题:jrhmpt01:/root/async# cat a1.pl use LWP::UserAgent;use utf8;use DBI;use POSIX;use Data::Dumper;use HTML::TreeBuilder; use HTML::TreeBuild... 阅读全文
posted @ 2016-04-16 18:15 czcb 阅读(169) 评论(0) 推荐(0) 编辑
摘要:lwp 超时问题:jrhmpt01:/root/async# cat a1.pl use LWP::UserAgent;use utf8;use DBI;use POSIX;use Data::Dumper;use HTML::TreeBuilder; use HTML::TreeBuild... 阅读全文
posted @ 2016-04-16 18:15 czcb 阅读(159) 评论(0) 推荐(0) 编辑
摘要:一、模板的使用 (重点) a、规则 模板文件夹下[TPL]/[分组文件夹/][模板主题文件夹/]和模块名同名的文件夹[Index]/和方法名同名的文件[index].html(.tpl) 更换模板文件的后缀名(修改配置文件) 'TMPL_TEMPLATE_SUFFIX'=>'... 阅读全文
posted @ 2016-04-15 16:02 czcb 阅读(210) 评论(0) 推荐(0) 编辑
摘要:一、模板的使用 (重点) a、规则 模板文件夹下[TPL]/[分组文件夹/][模板主题文件夹/]和模块名同名的文件夹[Index]/和方法名同名的文件[index].html(.tpl) 更换模板文件的后缀名(修改配置文件) 'TMPL_TEMPLATE_SUFFIX'=>'... 阅读全文
posted @ 2016-04-15 16:02 czcb 阅读(120) 评论(0) 推荐(0) 编辑
摘要://登录页面:V层前端模板:Administrator@QCEE61NZ66FEX2D /cygdrive/c/wamp/www/thinkphp/Home/Tpl/Login$ lsindex.html Document Document ... 阅读全文
posted @ 2016-04-15 11:00 czcb 阅读(129) 评论(0) 推荐(0) 编辑
摘要://登录页面:V层前端模板:Administrator@QCEE61NZ66FEX2D /cygdrive/c/wamp/www/thinkphp/Home/Tpl/Login$ lsindex.html Document Document ... 阅读全文
posted @ 2016-04-15 11:00 czcb 阅读(164) 评论(0) 推荐(0) 编辑
摘要:一、模板的使用 (重点) a、规则 模板文件夹下[TPL]/[分组文件夹/][模板主题文件夹/]和模块名同名的文件夹[Index]/和方法名同名的文件[index].html(.tpl) 更换模板文件的后缀名(修改配置文件) 'TMPL_TEMPLATE_SUFFIX'=>'... 阅读全文
posted @ 2016-04-14 17:47 czcb 阅读(154) 评论(0) 推荐(0) 编辑
摘要:一、模板的使用 (重点) a、规则 模板文件夹下[TPL]/[分组文件夹/][模板主题文件夹/]和模块名同名的文件夹[Index]/和方法名同名的文件[index].html(.tpl) 更换模板文件的后缀名(修改配置文件) 'TMPL_TEMPLATE_SUFFIX'=>'... 阅读全文
posted @ 2016-04-14 17:47 czcb 阅读(122) 评论(0) 推荐(0) 编辑
摘要:一、模板的使用 (重点) a、规则 模板文件夹下[TPL]/[分组文件夹/][模板主题文件夹/]和模块名同名的文件夹[Index]/和方法名同名的文件[index].html(.tpl) 更换模板文件的后缀名(修改配置文件) 'TMPL_TEMPLATE_SUFFIX'=>'... 阅读全文
posted @ 2016-04-14 14:08 czcb 阅读(132) 评论(0) 推荐(0) 编辑
摘要:一、模板的使用 (重点) a、规则 模板文件夹下[TPL]/[分组文件夹/][模板主题文件夹/]和模块名同名的文件夹[Index]/和方法名同名的文件[index].html(.tpl) 更换模板文件的后缀名(修改配置文件) 'TMPL_TEMPLATE_SUFFIX'=>'... 阅读全文
posted @ 2016-04-14 14:08 czcb 阅读(104) 评论(0) 推荐(0) 编辑
摘要:timeout connect 5000 timeout client 50000 timeout server 50000 timeout check 5s stats refresh 30sApr 13 17:... 阅读全文
posted @ 2016-04-13 17:55 czcb 阅读(434) 评论(0) 推荐(0) 编辑
摘要:timeout connect 5000 timeout client 50000 timeout server 50000 timeout check 5s stats refresh 30sApr 13 17:... 阅读全文
posted @ 2016-04-13 17:55 czcb 阅读(186) 评论(0) 推荐(0) 编辑
摘要:option redispatch option redispatch 是否允许重新分配在session 失败后 option abortonclose 丢弃由于客户端等待时间过长而关闭连接但仍在haproxy等待队列中的请求 option abortonclose #当服务... 阅读全文
posted @ 2016-04-13 17:09 czcb 阅读(1013) 评论(0) 推荐(0) 编辑
摘要:[root@dr-mysql01 ~]# cat x5.pluse Encode;use JSON; use URI::Escape;use LWP::Simple;my $host = "http://ip.taobao.com/service/getIpInfo.php?ip=202.101... 阅读全文
posted @ 2016-04-12 16:08 czcb 阅读(206) 评论(0) 推荐(0) 编辑
摘要:[root@dr-mysql01 ~]# cat x5.pluse Encode;use JSON; use URI::Escape;use LWP::Simple;my $host = "http://ip.taobao.com/service/getIpInfo.php?ip=202.101... 阅读全文
posted @ 2016-04-12 16:08 czcb 阅读(303) 评论(0) 推荐(0) 编辑
摘要:use LWP::UserAgent;use HTTP::Cookies;use HTTP::Headers;use HTTP::Response;use Encode;use File::Temp qw/tempfile/;my $ua = LWP::UserAgent->new( ssl_o... 阅读全文
posted @ 2016-04-12 14:38 czcb 阅读(269) 评论(0) 推荐(0) 编辑
摘要:use LWP::UserAgent;use HTTP::Cookies;use HTTP::Headers;use HTTP::Response;use Encode;use File::Temp qw/tempfile/;my $ua = LWP::UserAgent->new( ssl_o... 阅读全文
posted @ 2016-04-12 14:38 czcb 阅读(176) 评论(0) 推荐(0) 编辑
摘要:关闭自动提交:autocommit=0;SESSION A:Database changedmysql> select * from ProductQuota;+-----------+-------------+| productSn | frozenQuota |+-----------+-... 阅读全文
posted @ 2016-04-12 12:25 czcb 阅读(128) 评论(0) 推荐(0) 编辑
摘要:关闭自动提交:autocommit=0;SESSION A:Database changedmysql> select * from ProductQuota;+-----------+-------------+| productSn | frozenQuota |+-----------+-... 阅读全文
posted @ 2016-04-12 12:25 czcb 阅读(155) 评论(0) 推荐(0) 编辑
摘要:use LWP::UserAgent;use HTTP::Cookies;use HTTP::Headers;use HTTP::Response;use Encode;use File::Temp qw/tempfile/;my $ua = LWP::UserAgent->new;$ua->t... 阅读全文
posted @ 2016-04-08 23:58 czcb 阅读(144) 评论(0) 推荐(0) 编辑
摘要:use LWP::UserAgent;use HTTP::Cookies;use HTTP::Headers;use HTTP::Response;use Encode;use File::Temp qw/tempfile/;my $ua = LWP::UserAgent->new;$ua->t... 阅读全文
posted @ 2016-04-08 23:58 czcb 阅读(134) 评论(0) 推荐(0) 编辑
摘要://select id1> and id2where($data)->select(); var_dump($arr); $this->assign('data',$arr); $this->display();//select id1> and id2where($data)->sele... 阅读全文
posted @ 2016-04-08 14:50 czcb 阅读(101) 评论(0) 推荐(0) 编辑
摘要://select id1> and id2where($data)->select(); var_dump($arr); $this->assign('data',$arr); $this->display();//select id1> and id2where($data)->sele... 阅读全文
posted @ 2016-04-08 14:50 czcb 阅读(153) 评论(0) 推荐(0) 编辑
摘要:public function show(){ echo "访问了index模块下的show方法!!"; echo "欢迎你".$_GET['name'].'你的年龄是'.$_GET['age']; $m=M('user'); $id=$_GET['id']; $arr=$... 阅读全文
posted @ 2016-04-08 10:57 czcb 阅读(170) 评论(0) 推荐(0) 编辑
摘要:public function show(){ echo "访问了index模块下的show方法!!"; echo "欢迎你".$_GET['name'].'你的年龄是'.$_GET['age']; $m=M('user'); $id=$_GET['id']; $arr=$... 阅读全文
posted @ 2016-04-08 10:57 czcb 阅读(133) 评论(0) 推荐(0) 编辑
摘要:public function show(){ echo "访问了index模块下的show方法!!"; echo "欢迎你".$_GET['name'].'你的年龄是'.$_GET['age']; $m=M('user'); $id=$_GET['id']; $arr=$... 阅读全文
posted @ 2016-04-07 15:32 czcb 阅读(433) 评论(0) 推荐(0) 编辑
摘要:public function show(){ echo "访问了index模块下的show方法!!"; echo "欢迎你".$_GET['name'].'你的年龄是'.$_GET['age']; $m=M('user'); $id=$_GET['id']; $arr=$... 阅读全文
posted @ 2016-04-07 15:32 czcb 阅读(179) 评论(0) 推荐(0) 编辑
摘要:public function modify(){ $id=$_GET['id']; $m=M('user'); $arr=$m->find($id); //var_dump($arr); $this->assign('data',$arr); $t... 阅读全文
posted @ 2016-04-07 14:44 czcb 阅读(132) 评论(0) 推荐(0) 编辑
摘要:public function modify(){ $id=$_GET['id']; $m=M('user'); $arr=$m->find($id); //var_dump($arr); $this->assign('data',$arr); $t... 阅读全文
posted @ 2016-04-07 14:44 czcb 阅读(119) 评论(0) 推荐(0) 编辑
摘要:本节课大纲:一、ThinkPHP 3 的CURD介绍 (了解)二、ThinkPHP 3 读取数据 (重点) 对数据的读取 Read $m=new Model('User'); $m=M('User'); select $m->select();//获取所有数据,以数组形式返回 find ... 阅读全文
posted @ 2016-04-06 10:21 czcb 阅读(129) 评论(0) 推荐(0) 编辑
摘要:本节课大纲:一、ThinkPHP 3 的CURD介绍 (了解)二、ThinkPHP 3 读取数据 (重点) 对数据的读取 Read $m=new Model('User'); $m=M('User'); select $m->select();//获取所有数据,以数组形式返回 find ... 阅读全文
posted @ 2016-04-06 10:21 czcb 阅读(136) 评论(0) 推荐(0) 编辑
摘要:mysql> create table test( sn int, -> `createdTime` datetime NOT NULL COMMENT '创建时间', -> `updatedTime` datetime DEFAULT NULL);ERROR 2006 ... 阅读全文
posted @ 2016-04-06 09:30 czcb 阅读(140) 评论(0) 推荐(0) 编辑
摘要:mysql> create table test( sn int, -> `createdTime` datetime NOT NULL COMMENT '创建时间', -> `updatedTime` datetime DEFAULT NULL);ERROR 2006 ... 阅读全文
posted @ 2016-04-06 09:30 czcb 阅读(198) 评论(0) 推荐(0) 编辑
摘要:一、ThinkPHP 3 的输出 (重点) a、通过 echo 等PHP原生的输出方式在页面中输出 b、通过display方法输出 想分配变量可以使用assign方法 c、修改左右定界符 休要修改配置文件中的配置项 'TMPL_L_DELIM'=>''}>', //修改右定界符二... 阅读全文
posted @ 2016-04-05 15:44 czcb 阅读(114) 评论(0) 推荐(0) 编辑
摘要:一、ThinkPHP 3 的输出 (重点) a、通过 echo 等PHP原生的输出方式在页面中输出 b、通过display方法输出 想分配变量可以使用assign方法 c、修改左右定界符 休要修改配置文件中的配置项 'TMPL_L_DELIM'=>''}>', //修改右定界符二... 阅读全文
posted @ 2016-04-05 15:44 czcb 阅读(123) 评论(0) 推荐(0) 编辑
摘要:一、ThinkPHP 3 的输出 (重点) a、通过 echo 等PHP原生的输出方式在页面中输出 b、通过display方法输出 想分配变量可以使用assign方法 c、修改左右定界符 休要修改配置文件中的配置项 'TMPL_L_DELIM'=>''}>', //修改右定界符定... 阅读全文
posted @ 2016-04-05 13:48 czcb 阅读(156) 评论(0) 推荐(0) 编辑
摘要:一、ThinkPHP 3 的输出 (重点) a、通过 echo 等PHP原生的输出方式在页面中输出 b、通过display方法输出 想分配变量可以使用assign方法 c、修改左右定界符 休要修改配置文件中的配置项 'TMPL_L_DELIM'=>''}>', //修改右定界符定... 阅读全文
posted @ 2016-04-05 13:48 czcb 阅读(124) 评论(0) 推荐(0) 编辑
摘要:问题二:开发没有足够机器,一台机子上是否装三个zookeeper服务器集群。问题解答:这种安装模式只能说是一种伪集群模式。三个zookeeper服务器都安装在同一个服务器(platform)上,需保证clientPort不相同。将zookeeper安装包分别解压在三个目录server1,serv... 阅读全文
posted @ 2016-04-05 11:22 czcb 阅读(228) 评论(0) 推荐(0) 编辑
摘要:cd zookeeper-3.4.8cp -r * /zookeeper/server1/cp -r * /zookeeper/server2/cp -r * /zookeeper/server3/伪集群模式所谓伪集群, 是指在单台机器中启动多个zookeeper进程, 并组成一个集群. 以启动... 阅读全文
posted @ 2016-04-05 11:16 czcb 阅读(139) 评论(0) 推荐(0) 编辑
摘要:一、什么是MVC //了解 M -Model 编写model类 对数据进行操作 使用Model类 来操作数据 V -View 编写html文件,页面呈现 C -Controller 编写类文件(UserAction.class.php) 二、ThinkPHP的M... 阅读全文
posted @ 2016-04-04 22:00 czcb 阅读(313) 评论(0) 推荐(0) 编辑
摘要:一、ThinkPHP的介绍 //了解 MVC M - Model 模型 工作:负责数据的操作 V - View 视图(模板) 工作:负责前台页面显示 编写html代码 C - Controller 控制器(模块) 工作:... 阅读全文
posted @ 2016-04-04 21:03 czcb 阅读(138) 评论(0) 推荐(0) 编辑
摘要:一、ThinkPHP的介绍 //了解 MVC M - Model 模型 工作:负责数据的操作 V - View 视图(模板) 工作:负责前台页面显示 编写html代码 C - Controller 控制器(模块) 工作:... 阅读全文
posted @ 2016-04-04 21:03 czcb 阅读(151) 评论(0) 推荐(0) 编辑
摘要:jrhmpt01:/root/lwp# cat data.html 首页上一页111212/12 首页上一页111212/12 jrhmpt01:/root/lwp# cat c1.pl use ... 阅读全文
posted @ 2016-04-02 08:08 czcb 阅读(159) 评论(0) 推荐(0) 编辑
摘要:jrhmpt01:/root/lwp# cat data.html 首页上一页111212/12 首页上一页111212/12 jrhmpt01:/root/lwp# cat c1.pl use ... 阅读全文
posted @ 2016-04-02 08:08 czcb 阅读(175) 评论(0) 推荐(0) 编辑
摘要:use LWP::UserAgent;use utf8;use DBI; use POSIX;use Data::Dumper;use HTML::TreeBuilder; use HTML::TreeBuilder::XPath;my $ua = LWP::UserAgent->new;... 阅读全文
posted @ 2016-04-01 22:28 czcb 阅读(151) 评论(0) 推荐(0) 编辑
摘要:gbk编码:jrhmpt01:/root/lwp# cat x2.pl use LWP::UserAgent;use DBI;$user="root";$passwd='R00t,uHagt.0511';$dbh="";$dbh = DBI->connect("dbi:mysql:databa... 阅读全文
posted @ 2016-04-01 18:10 czcb 阅读(109) 评论(0) 推荐(0) 编辑
摘要:gbk编码:jrhmpt01:/root/lwp# cat x2.pl use LWP::UserAgent;use DBI;$user="root";$passwd='R00t,uHagt.0511';$dbh="";$dbh = DBI->connect("dbi:mysql:databa... 阅读全文
posted @ 2016-04-01 18:10 czcb 阅读(220) 评论(0) 推荐(0) 编辑
摘要:use LWP::UserAgent;use utf8;use DBI; $user="root"; $passwd='xxx'; $dbh=""; $dbh = DBI->connect("dbi:mysql:database=zjzc_vote;host=14.5.5.57;por... 阅读全文
posted @ 2016-04-01 15:36 czcb 阅读(375) 评论(0) 推荐(0) 编辑
摘要:use LWP::UserAgent;use utf8;use DBI; $user="root"; $passwd='xxx'; $dbh=""; $dbh = DBI->connect("dbi:mysql:database=zjzc_vote;host=14.5.5.57;por... 阅读全文
posted @ 2016-04-01 15:36 czcb 阅读(287) 评论(0) 推荐(0) 编辑
摘要:php 接口示例: public function dev(){ $m=new Model('machine_info'); $ip=$_GET['ip']; echo $ip; //$arr=$m->select(); $arr=$m->find($ip); var_d... 阅读全文
posted @ 2016-04-01 13:05 czcb 阅读(144) 评论(0) 推荐(0) 编辑
摘要:php 接口示例: public function dev(){ $m=new Model('machine_info'); $ip=$_GET['ip']; echo $ip; //$arr=$m->select(); $arr=$m->find($ip); var_d... 阅读全文
posted @ 2016-04-01 13:05 czcb 阅读(167) 评论(0) 推荐(0) 编辑
摘要:Document helloworld ----- 'TMPL_L_DELIM'=>''}>', //配置右定界符 public function env(){ $m=new Model('machine_info'); $arr=$m->selec... 阅读全文
posted @ 2016-04-01 10:10 czcb 阅读(254) 评论(0) 推荐(0) 编辑
摘要:Document helloworld ----- 'TMPL_L_DELIM'=>''}>', //配置右定界符 public function env(){ $m=new Model('machine_info'); $arr=$m->selec... 阅读全文
posted @ 2016-04-01 10:10 czcb 阅读(221) 评论(0) 推荐(0) 编辑
摘要:''}>', //配置右定界符'DB_TYPE'=>'mysql','DB_HOST'=>'192.168.32.79','DB_NAME'=>'devops','DB_USER'=>'root','DB_PWD'=>'1234567','DB_port'=>'3306','DB_PREF... 阅读全文
posted @ 2016-04-01 09:38 czcb 阅读(100) 评论(0) 推荐(0) 编辑
摘要:''}>', //配置右定界符'DB_TYPE'=>'mysql','DB_HOST'=>'192.168.32.79','DB_NAME'=>'devops','DB_USER'=>'root','DB_PWD'=>'1234567','DB_port'=>'3306','DB_PREF... 阅读全文
posted @ 2016-04-01 09:38 czcb 阅读(113) 评论(0) 推荐(0) 编辑