摘要: 反序列化:对单一的已序列化的变量进行操作,将其转换回 PHP 的值(zval)。 PHP序列化方式 PHP在序列化的时候会将相应的变量以对应的键值进行储存。 将一个类序列化的话,处理代码主要的 文件:ext/standard/var.c 中,如下。 php_var_serialize_class() 阅读全文
posted @ 2016-12-17 18:12 3002059249 阅读(1822) 评论(0) 推荐(0) 编辑
摘要: <?php/*** Formats a JSON string for pretty printing** @param string $json The JSON to make pretty* @param bool $html Insert nonbreaking spaces and <br 阅读全文
posted @ 2016-12-17 17:06 3002059249 阅读(732) 评论(0) 推荐(0) 编辑
摘要: WebServer(可以认为特指apache)的缓冲区.在apache module的sapi下, flush会通过调用sapi_module的flush成员函数指针,间接的调用apache的api: ap_rflush刷新apache的输出缓冲区, 当然手册中也说了, 有一些apache的其他模块 阅读全文
posted @ 2016-12-17 17:02 3002059249 阅读(309) 评论(0) 推荐(0) 编辑
摘要: fetch('https://mywebsite.com/endpoint/', { method: 'POST',headers: {'Accept': 'application/json','Content-Type': 'application/json',},body: JSON.strin 阅读全文
posted @ 2016-12-17 17:01 3002059249 阅读(440) 评论(0) 推荐(0) 编辑
摘要: 第一步 安装git:可以通过命令的方式快速安装,不同的linux的安装方法可能不一样,我的是采用的yum方法。ubuntu可以用apt-get命令。sudo yum install git 第二步 添加git用户,因为git服务器只限定来做项目代码交流的,专门开出一个用户来访问git服务器,比较好管 阅读全文
posted @ 2016-12-17 16:57 3002059249 阅读(151) 评论(0) 推荐(0) 编辑
摘要: function getIp(){if (getenv("HTTP_CLIENT_IP") && strcasecmp(getenv("HTTP_CLIENT_IP"), "unknown"))$ip = getenv("HTTP_CLIENT_IP");else if (getenv("HTTP_ 阅读全文
posted @ 2016-12-17 16:48 3002059249 阅读(240) 评论(0) 推荐(0) 编辑
摘要: 1)定义一个字符串变量,里面保存要加载的文件列表。然后foreach加载。 $a = '/a.class.php;/Util/b.class.php;/Util/c.class.php'; $b = '/d.php;/e.class.php;/f.class.php;/g.class.php'; / 阅读全文
posted @ 2016-12-17 16:41 3002059249 阅读(2138) 评论(0) 推荐(0) 编辑