上一页 1 ··· 4 5 6 7 8
  2017年6月6日
摘要: function getRealIpAddr() { if (!empty($_SERVER['HTTP_CLIENT_IP'])) { $ip = $_SERVER['HTTP_CLIENT_IP']; } elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) { //to check ip is pass from pro... 阅读全文
posted @ 2017-06-06 17:21 泪滴 阅读(98) 评论(0) 推荐(0) 编辑
摘要: function display_sourcecode($url) { $lines = file($url); $output = ""; foreach ($lines as $line_num => $line) { // loop thru each line and prepend line numbers $output .= "Line #{$line_... 阅读全文
posted @ 2017-06-06 17:20 泪滴 阅读(180) 评论(0) 推荐(0) 编辑
摘要: function detect_city($ip) { $default = 'UNKNOWN'; $curlopt_useragent = 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6 (.NET CLR 3.5.30729)'; $url = 'ht... 阅读全文
posted @ 2017-06-06 17:19 泪滴 阅读(105) 评论(0) 推荐(0) 编辑
摘要: function clean($input) { if (is_array($input)) { foreach ($input as $key => $val) { $output[$key] = clean($val); // $output[$key] = $this->clean($val); } } else { $output ... 阅读全文
posted @ 2017-06-06 17:17 泪滴 阅读(111) 评论(0) 推荐(0) 编辑
  2017年6月5日
摘要: du -sh /文件夹 统计某个问件的大小 cat 文件 读取文件内容并显示 -n 从第一行开始对问价编号 -b 忽略对空白行的编号 -s 两行空白行合并为一行 chmod 更改文件的权限 +为某个文件添加权限 -为减少权限 -R 以递归的方式更改 r可读 w可写 x可执行 阅读全文
posted @ 2017-06-05 16:36 泪滴 阅读(81) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8