<?php header("content-type:text/html;charset=utf-8"); // $a = 1; // echo $GLOBALS; // echo $_SERVER; // echo $_ENV; // var_dump($_REQUEST); var_dump($ ...
分类:
Web程序 时间:
2021-01-12 10:31:53
阅读次数:
0
<?php //使用session //设置session // session_start(); // $_SESSION['a'] = 'admin'; //设置cookie,如果有cookie,说明用户已经登陆或者cookie在过期时间内,可以进行页面跳转,直接跳转到首页 if($_COOKI ...
分类:
Web程序 时间:
2021-01-12 10:30:28
阅读次数:
0
china-data-dictionary 刚发现一个生成数据字典比较不错的工具china-data-dictionary https://www.oschina.net/p/china-data-dictionary 使用步骤 修改 index.php 文件里 app_init()将其中定义的如下 ...
分类:
其他好文 时间:
2021-01-12 10:28:48
阅读次数:
0
1、initscr()函数: 1 initscr()用于初始化ncurses数据结构并读取正确的terminfo文件。内存将被分配。 2 3 如果发生错误,initscr将返回ERR,否则将返回指针。 4 5 此外,屏幕将被删除并初始化。 2、getyx() 函数: getyx() 函数可以用来取得 ...
分类:
其他好文 时间:
2021-01-11 11:24:57
阅读次数:
0
一、案例: 1、明确需求: 在访问日志中,统计独立ip数量TOP10 2、查看数据结构: ip:是时间戳Http Method Url..... 3、明确编码步骤: 3.1 取出ip,生成一个只有ip的数据集 3.2简单清晰 3.3统计ip出现的次数 3.4排序按照ip出现的次数 3.5取出前十 4 ...
分类:
其他好文 时间:
2021-01-11 11:19:54
阅读次数:
0
#include <iostream> #include <vector> #include <string> using namespace std; struct Node { int data; Node * next; }; Node * reverseList(Node * head) { ...
分类:
其他好文 时间:
2021-01-11 11:11:15
阅读次数:
0
当传参data为二维数组,Content-Type: application/x-www-form-urlencoded时, $a = array('a','b','c'); $a['d'] = array('e','f','g'); 传参为二维数组时 $a['d'] = json_encode($ ...
分类:
Web程序 时间:
2021-01-11 11:10:40
阅读次数:
0
Content-Type(内容类型),一般是指网页中存在的 Content-Type,用于定义网络文件的类型和网页的编码,决定浏览器将以什么形式、什么编码读取这个文件,这就是经常看到一些 PHP 网页点击的结果却是下载一个文件或一张图片的原因。 Content-Type 标头告诉客户端实际返回的内容 ...
分类:
Web程序 时间:
2021-01-11 11:08:14
阅读次数:
0
?自定义排序格式 ///对 num [1,n+1)区间进行自定义排序 Arrays.sort(num,1,n+1,new Comparator<Integer>() { public int compare(Integer o1,Integer o2) { return o1-o2;///o1-o2 ...
分类:
编程语言 时间:
2021-01-11 10:56:15
阅读次数:
0
ltrim() 删除字符串开头的空白字符(或其他字符)。 string ltrim ( string $str[, string $character_mask]) 参数描述str 输入的字符串。 character_mask 通过参数 character_mask,你也可以指定想要删除的字符,简单 ...
分类:
Web程序 时间:
2021-01-11 10:54:31
阅读次数:
0