2017年2月28日

摘要: <?phpheader("Content-Type: text/html; charset=UTF-8");$arr=array('春','夏','秋','冬');//1 数组遍历的常规方法 // 该方法只能对索引数组(下标为数字的)好使,对于关联数字(字符串下标)不能用echo '一:<h2>PH 阅读全文
posted @ 2017-02-28 17:42 echoshao 阅读(125) 评论(0) 推荐(0) 编辑
 
摘要: http://files.cnblogs.com/lh460795/cQRCode.zip 用法: require 'cQRCode.php'; $qr = new cQRCode($node_url, ECL_H); $qr->getQRImg()->save($qrimage_path, 90) 阅读全文
posted @ 2017-02-28 16:02 echoshao 阅读(61) 评论(0) 推荐(0) 编辑
 
摘要: <?php session_start(); //登录验证码function GetVerify($length) { $strings = Array('3','4','5','6','7','a','b','c','d','e','f','h','i','j','k','m','n','p',' 阅读全文
posted @ 2017-02-28 15:52 echoshao 阅读(123) 评论(0) 推荐(0) 编辑
 
摘要: public function getipinfo($ip) { $res = '其他'; $url = "http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=js&ip=".$ip; $ch = curl_init(); $SSL = 阅读全文
posted @ 2017-02-28 15:35 echoshao 阅读(99) 评论(0) 推荐(0) 编辑
 
摘要: private function getip(){ //用户ip // $user_ip = ''; $user_agent = ''; $ip = ''; if (getenv('HTTP_CLIENT_IP')) { $ip = getenv('HTTP_CLIENT_IP'); } elsei 阅读全文
posted @ 2017-02-28 15:34 echoshao 阅读(119) 评论(0) 推荐(0) 编辑
 
摘要: function http($url, $method, $postfields = NULL){ $this->http_info = array(); $ci = curl_init(); /* Curl settings */ curl_setopt($ci, CURLOPT_HTTP_VER 阅读全文
posted @ 2017-02-28 15:28 echoshao 阅读(168) 评论(0) 推荐(0) 编辑
 
摘要: 1. 函数说明 调用回调函数。原型: mixed call_user_func ( callable callback[,mixedparameter [, mixed $… ]] )。 第一个参数 callback 是被调用的回调函数,其余参数是回调函数的参数。参数可以有多个,也可以是数组。 参数 阅读全文
posted @ 2017-02-28 15:13 echoshao 阅读(114) 评论(0) 推荐(0) 编辑
 
摘要: 1.修改sshd_config 1.修改sshd_config #cd /etc/ssh 进入该目录下,#vi sshd_config文件中添加以下内容: KexAlgorithms diffie-hellman-group1-sha1,diffie-hellman-group-exchange-s 阅读全文
posted @ 2017-02-28 11:23 echoshao 阅读(1033) 评论(0) 推荐(0) 编辑