上一页 1 2 3 4 5 6 7 8 ··· 16 下一页

2014年4月23日

简单应用控制器的时序图

摘要: 阅读全文

posted @ 2014-04-23 02:32 左小兵 阅读(220) 评论(0) 推荐(0) 编辑

2014年4月21日

SPL迭代器的工作和代理模式OuterIterator

摘要: 1.迭代器通过foreach语言结构来实现迭代,没有实现迭代器接口(Iterator)的普通对象使用foreach结构会遍历公共属性.2.OuterIterator用于做为实际迭代器的代理(即代理模式)3.OuterIterator有RecursiveIteratorIterator(平面化多维结构... 阅读全文

posted @ 2014-04-21 02:50 左小兵 阅读(323) 评论(0) 推荐(0) 编辑

递归遍历目录的迭代器方式

摘要: getDepth()); if ($file->isDir()) { echo DIRECTORY_SEPARATOR; } echo $file->getBasename(); if ($file->isFile()) { echo " (" .$file->getSize()... 阅读全文

posted @ 2014-04-21 02:07 左小兵 阅读(328) 评论(0) 推荐(0) 编辑

2014年4月18日

递归遍历多维数组(树数据结构)的超级简单方式,并且可以递归超过200层,摘自<<PHP精粹:编写高效PHP代码>>

摘要: $value) { echo "Depth: " . $recursiveIteratorIterator->getDepth() . PHP_EOL; echo "Key: " . $key . PHP_EOL; echo "Value: " .$value . PHP_EOL;}?> 阅读全文

posted @ 2014-04-18 12:36 左小兵 阅读(645) 评论(0) 推荐(0) 编辑

http协议传输二进制数据以及对输入流(php://input)和http请求的理解

摘要: 1.index.php array( 'method' => 'POST', 'header' => "Content-type: application/x-www-form-urlencoded\r\n" ... 阅读全文

posted @ 2014-04-18 12:10 左小兵 阅读(581) 评论(0) 推荐(0) 编辑

一个非常简单的RPC服务

摘要: 1.servicefunctions.phpView Code2.index.phpView Code 阅读全文

posted @ 2014-04-18 03:46 左小兵 阅读(146) 评论(0) 推荐(0) 编辑

php://input 打开的数据流只能读取一次,即读取一次之后读取的值为空

摘要: 如题 阅读全文

posted @ 2014-04-18 00:03 左小兵 阅读(409) 评论(0) 推荐(0) 编辑

2014年4月15日

soap的简单实现(PHP)

摘要: 1.非wsdl模式(1)函数文件testphp/ServiceFunctions.class.phpView Code(2)服务端文件testphp/soapserver.php'http://localhost');$server=new SoapServer(null,$options);$se... 阅读全文

posted @ 2014-04-15 23:36 左小兵 阅读(387) 评论(0) 推荐(0) 编辑

使用PHP的curl扩展实现跨域post请求,以及file_get_contents()百度短网址例子

摘要: 'http://www.cnblogs.com/zuoxiaobing/');curl_setopt($ch,CURLOPT_POSTFIELDS,$data);$strRes=curl_exec($ch);curl_close($ch);$arrResponse=json_decode($strR... 阅读全文

posted @ 2014-04-15 16:58 左小兵 阅读(1662) 评论(0) 推荐(0) 编辑

jquery选取iframe

摘要: $(window).load(function(){ $('iframe').contents().find('form'); }) 阅读全文

posted @ 2014-04-15 16:19 左小兵 阅读(181) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 8 ··· 16 下一页

导航