摘要: 对一php://input介绍,PHP官方手册文档有一段话对它进行了很明确地概述。“php://input allows you to read raw POST data. It is a less memory intensive alternative to $HTTP_RAW_POST_DA... 阅读全文
posted @ 2015-06-06 18:11 scu_2008_hike 阅读(198) 评论(0) 推荐(0) 编辑
摘要: yield特性一般跟生成器generator紧密联系在一起GeneratorimplementsIterator{/* Methods */publicmixedcurrent(void)publicmixedkey(void)publicvoidnext(void)publicvoidrewind... 阅读全文
posted @ 2015-06-06 13:18 scu_2008_hike 阅读(819) 评论(0) 推荐(0) 编辑
摘要: http2:链接地址:http://http2.github.io/http2-spec/index.htmlhttp1.1:采用文本协议,虽然支持连接复用,但是在返回的时候仍然是顺序串行话的,导致很多网站采用多个域名同时建立多个链接来提升性能,造成冗长和重复,导致不必要的网络io及tcp消耗htt... 阅读全文
posted @ 2015-06-03 15:41 scu_2008_hike 阅读(319) 评论(0) 推荐(0) 编辑
摘要: https:链接地址:http://op.baidu.com/2015/04/https-s01a01/ http://op.baidu.com/2015/04/https-s01a02/https = http+tls目前常用的 HTTP 协议是 HTTP1.1,常用的 TLS 协议版本有如下几个... 阅读全文
posted @ 2015-06-02 00:14 scu_2008_hike 阅读(241) 评论(0) 推荐(0) 编辑
摘要: js使用公钥对信息进行加密传输,php使用私钥解密获取信息js rsa相关信息:js使用16进制公钥进行加密,生成16进制加密数据,hex_stringhttp://www-cs-students.stanford.edu/~tjw/jsbn/注意:js需要先对数据做url编码处理,如 encode... 阅读全文
posted @ 2015-05-20 17:39 scu_2008_hike 阅读(640) 评论(0) 推荐(0) 编辑
摘要: 大型网站核心要素:1、性能 2、可用性 3、伸缩性 4、可扩展性 5、安全性网站的性能优化:web前端 1、减少http请求 2、使用浏览器缓存 3、启用压缩 4、css放最上面、js放最下面 5、CDN加速 6、反向代理(squid、varianish)7、DNS动态解析服务器 1、分布式缓存 2... 阅读全文
posted @ 2014-12-14 22:30 scu_2008_hike 阅读(130) 评论(0) 推荐(0) 编辑
摘要: php的内存管理由zend引擎处理分为三个层次接口层-》heap层-》存储层(malloc)PHP底层对内存的管理, 围绕着大块内存列表(free_buckets)、 小块内存列表(large_free_buckets)和 剩余内存列表(rest_buckets)三个列表来分层进行的。 ZendMM... 阅读全文
posted @ 2014-12-14 12:42 scu_2008_hike 阅读(299) 评论(0) 推荐(0) 编辑
摘要: php类的内部结构struct _zend_class_entry {char type; // 类型:ZEND_INTERNAL_CLASS / ZEND_USER_CLASSchar *name;// 类名称zend_uint name_length; // 即sizeof(name) - 1s... 阅读全文
posted @ 2014-12-14 00:43 scu_2008_hike 阅读(305) 评论(0) 推荐(0) 编辑
摘要: php函数分为:用户自定义函数、内置函数(c扩展)、伪函数(语言结构)用户自定义函数:typedef union _zend_function {zend_uchar type; /* 如用户自定义则为 #define ZEND_USER_FUNCTION 2MUST be the first el... 阅读全文
posted @ 2014-12-13 23:47 scu_2008_hike 阅读(215) 评论(0) 推荐(0) 编辑
摘要: php的变量是由zval结构体表示包含zvalue、type、is_ref_gc、refcount_gc构成有八种类型构成boolean、interger、float、string、array、object、resource、nullphp的常量:typedef struct _zend_const... 阅读全文
posted @ 2014-12-13 22:55 scu_2008_hike 阅读(126) 评论(0) 推荐(0) 编辑