摘要: <?php/*Promise of the Learn StartupInstead of building our startups according to mythsWe can guide them with facts and knowledgeWe won't waste our time building things that nobody wants.Manifesto for Agile Software Dev1.working software over comprehensive document2.Individuals and * 阅读全文
posted @ 2012-09-29 15:52 sgsheg 阅读(154) 评论(0) 推荐(0) 编辑
摘要: <?php//memory_get_usage/* memory_get_usage:查看内存使用情况memory_get_usage---Returns the amount of memory allocated to PHPinformation:int memory_get_usage([bool | $real_usage=false])Returns the amount of memory ,in bytes ,that's currently being allocated to your PHP script.返回内存量,以字节为单位,即当前被分配到你的PHP脚 阅读全文
posted @ 2012-09-29 15:51 sgsheg 阅读(256) 评论(0) 推荐(0) 编辑
摘要: <?php/*//@time 9:26//file_get_contents和curl的区别/+-------------------------------------------------------------------------------+file_get_contents其实是内置的文件操作的函数的合并版本,比如file_exists,fopen,fread,fcose,专门给懒人提供的.而他主要是对付本地文件的,同时又加入了对网络文件的支持curl是专门用来进行网络交互的库,提供了一堆自定义选项,用来对应不同的环境.稳定性大于file_get_contents+--- 阅读全文
posted @ 2012-09-29 15:50 sgsheg 阅读(1238) 评论(0) 推荐(0) 编辑
摘要: <?php// 本文地址--->http://www.zhurouyoudu.com/index.php/archives/126/http://www.zhurouyoudu.com/index.php/archives/126/I/*curl通信cUrl是一个利用URL语法来传输文件和数据的工具.支持很多协议,例如HTTP,FTP,TELENT等.最爽的是,PHP也支持cURL库.为什么要用cURL?大部分时候对于php我们获取网页内容:$content=file_get_contents("http://www.sgsheg.com");//or$line 阅读全文
posted @ 2012-09-29 15:49 sgsheg 阅读(307) 评论(0) 推荐(0) 编辑