<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet href='http://feed.yigle.net/styles/feedsky0.xsl' type='text/xsl' ?><!--这是一个由Feedsy提供技术支持的Feed，为了提高读者阅读的体验，以及满足用户美化自己Feed的需要，我们设计了多种精美的Feed模板，提供给大家选择，所有最终呈现出来的样式，皆由用户自愿选择使用，未经许可，任何团体和个人，请不要擅自修改样式或者盗用，这是对于用户选择权的尊重。--><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:fs="http://www.feedsky.com/namespace/feed" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><atom:link href="http://feed.yigle.net" type="application/rss+xml" rel="self"></atom:link><fs:self_link href="http://feed.feedsky.com/yigle" type="application/rss+xml"></fs:self_link><lastBuildDate>Sun, 07 Mar 2010 18:13:01 GMT</lastBuildDate><title>一阁</title><description>学习,生活,追求与梦想</description><link>http://www.yigle.net</link><sy:updatePeriod>hourly</sy:updatePeriod><sy:updateFrequency>1</sy:updateFrequency><language>en</language><pubDate>Sun, 07 Mar 2010 18:13:01 GMT</pubDate><item><title>[Dos]at &amp; shutdown 命令</title><link>http://www.yigle.net/2010/03/dos-at-shutdown-command.html</link><content:encoded>&lt;p&gt;AT：&lt;/p&gt;
&lt;p&gt;使用格式：&lt;/p&gt;
&lt;p&gt;at [\\IP] [[ID] [/delete] /delete [/yes]]&lt;/p&gt;
&lt;p&gt;at [\\computername] time [/interactive]  [/every:date[,...] /next:date[,...]] command&lt;/p&gt;
&lt;p&gt;使用说明：&lt;/p&gt;
&lt;p&gt;（1）如果在没有参数的情况下使用，则 at 列出已计划的命令。&lt;/p&gt;
&lt;p&gt;（2）\\IP：指定远程计算机，在此输入远程计划机的IP地址。如果省略该参数，命令将安 排在本地计算机。&lt;/p&gt;
&lt;p&gt;（3）ID：指定指派给已计划命令的识别码。&lt;/p&gt;
&lt;p&gt;（4）/delete：取消已计划的命令。如果省略了ID，计算机中已计划的命令将被全部取 消。&lt;/p&gt;
&lt;p&gt;/yes：当删除已计划的事件时，对系统的查询强制进行肯定的回答。&lt;/p&gt;
&lt;p&gt;（5）/time：指定运行命令的时间。将时间以 24 小时标记（00:00 [午夜] 到  23:59）的方式表示为小时：分钟。&lt;/p&gt;
&lt;p&gt;（6）/interactive：允许作业与在作业运行时登录用户的桌面进行交互。&lt;/p&gt;
&lt;p&gt;（7）/every:date[,...]：在每个星期或月的指定日期（例如，每个星期四， 或每月的第三天）运行命令。将 date 指定为星期的一天或多天 (M,T,W,Th,F,S,Su)，或月的一天或多天（使用 1 到 31  的数字）。用逗号分隔多个日期项。如果省略了 date，将假定为该月的当前日期。&lt;/p&gt;
&lt;p&gt;（8）/next:date[,...]：在重复出现下一天（例如，下个星期四）时，运行指 定命令将 date 指定为星期的一天或多天 (M,T,W,Th,F,S,Su)，或月的一天或多天（使用 1 到 31  的数字）。用逗号分隔多个日期项。如果省略了 date，将假定为该月的当前日期。&lt;/p&gt;
&lt;p&gt;（9）command：指定要运行的 Windows 2000 命令、程序（.exe 或  .com 文件）或批处理程序（.bat 或 .cmd  文件）。当命令需要路径作为参数时，请使用绝对路径，也就是从驱动器号开始的整个路径。如果命令在远程计算机上，请指定服务器和共享名的 UNC  符号，而不是远程驱动器号。如果命令不是可执行 (.exe) 文件，必须在命令前加上 cmd /c，例如： cmd /c dir &amp;gt;  c:\test.out&lt;/p&gt;
&lt;p&gt;Shutdown：&lt;/p&gt;
&lt;p&gt;shutdown [-i | -l | -s | -r | -a] [-f] [-m \\computername] [-t xx] [-c  &quot;comment&quot;] [-d up:xx:yy]&lt;/p&gt;
&lt;p&gt;使用说明：&lt;/p&gt;
&lt;p&gt;没有参数          显示此消息(与 ? 相同)&lt;br /&gt;
-i               显示 GUI 界面，必须是第一个选项&lt;br /&gt;
-l              注销(不能与选项 -m  一起使用)&lt;br /&gt;
-s              关闭此计算机&lt;br /&gt;
-r              关闭并重启动此计算机&lt;br /&gt;
-a              放弃系统关机&lt;br /&gt;
-m \\computername    远程计算机关机/重启动/放弃&lt;br /&gt;
-t xx            设置关闭的超时为 xx 秒&lt;br /&gt;
-c &amp;#8220;comment&amp;#8221;        关闭注释(最大  127 个字符)&lt;br /&gt;
-f              强制运行的应用程序关闭而没有警告&lt;br /&gt;
-d [p]:xx:yy       关闭原因代码&lt;br /&gt;
u 是用户代码&lt;br /&gt;
p  是一个计划的关闭代码&lt;br /&gt;
xx 是一个主要原因代码(小于 256 的正整数)&lt;br /&gt;
yy 是一个次要原因代码(小于 65536 的正整数)&lt;br /&gt;
-f：强行关闭应用程序&lt;br /&gt;
-m  ＼＼计算机名：控制远程计算机&lt;br /&gt;
-i：显示图形用户界面，但必须是Shutdown的第一个选项&lt;br /&gt;
-l：注销当前用户&lt;br /&gt;
-r：关机并重启&lt;br /&gt;
-t时间：设置关机倒计时&lt;br /&gt;
-c &amp;#8220;消息内容&amp;#8221;：输入关机对话框中的消息内容(不能超127个字符)&lt;/p&gt;
&lt;p&gt;例：&lt;/p&gt;
&lt;p&gt;at 0：00 shutdown /s ;0点定时关机&lt;/p&gt;
&lt;p&gt;at /delete ;取消&lt;/p&gt;
&lt;p&gt;shutdown /s /t 3600; 60分钟后关机&lt;/p&gt;
&lt;p&gt;shutdown /a ;取消&lt;/p&gt;
&lt;h3  class=&quot;related_post_title&quot;&gt;也许你会喜欢&lt;/h3&gt;&lt;ul class=&quot;related_post&quot;&gt;&lt;li&gt;&lt;a href=&quot;http://www.yigle.net/2009/04/blogbus-cmt.html&quot; title=&quot;blogbus Cmt博客大巴评论插件&quot;&gt;blogbus Cmt博客大巴评论插件&lt;/a&gt; (92)&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.yigle.net/2009/04/what-is-gravatar.html&quot; title=&quot;什么是Gravatar？&quot;&gt;什么是Gravatar？&lt;/a&gt; (12)&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.yigle.net/2008/11/blogbus_gravata.html&quot; title=&quot;让blogbus支持Gravatar&quot;&gt;让blogbus支持Gravatar&lt;/a&gt; (10)&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.yigle.net/2009/06/%e4%b8%80%e4%b8%aa%e5%9f%9f%e5%90%8d%ef%bc%8c%e4%b8%80%e4%b8%aa%e4%ba%92%e8%81%94%e7%bd%91%e7%9a%84id.html&quot; title=&quot;一个域名，一个互联网的ID&quot;&gt;一个域名，一个互联网的ID&lt;/a&gt; (8)&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.yigle.net/2009/08/mo-radio.html&quot; title=&quot;Mo Radio&quot;&gt;Mo Radio&lt;/a&gt; (4)&lt;/li&gt;&lt;/ul&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/339691557/yigle/feedsky/s.gif?r=http://www.yigle.net/2010/03/dos-at-shutdown-command.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/yigle/339691557/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/yigle/339691557/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</content:encoded><wfw:commentRss>http://www.yigle.net/2010/03/dos-at-shutdown-command.html/feed</wfw:commentRss><slash:comments>0</slash:comments><description>AT：
使用格式：
at [\\IP] [[ID] [/delete] /delete [/yes]]
at [\\computername] time [/interactive]  [/every:date[,...] /next:date[,...]] command&lt;img src=&quot;http://www1.feedsky.com/t1/339691557/yigle/feedsky/s.gif?r=http://www.yigle.net/2010/03/dos-at-shutdown-command.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/yigle/339691557/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/yigle/339691557/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><category>定时</category><category>计划任务</category><category>Web技术</category><category>关机</category><pubDate>Mon, 08 Mar 2010 02:13:01 +0800</pubDate><author>rong179</author><comments>http://www.yigle.net/2010/03/dos-at-shutdown-command.html#comments</comments><guid isPermaLink="false">http://www.yigle.net/?p=36955</guid><dc:creator>rong179</dc:creator><fs:srclink>http://www.yigle.net/2010/03/dos-at-shutdown-command.html</fs:srclink><fs:srcfeed>http://www.yigle.net/feed</fs:srcfeed><fs:itemid>feedsky/yigle/~7882683/339691557/5992322</fs:itemid></item><item><title>《镜》</title><link>http://www.yigle.net/2010/01/jing.html</link><content:encoded>&lt;p&gt;潮汐&lt;/p&gt;
&lt;p&gt;纵然是七海连天，也会干涸枯竭。&lt;br /&gt;
纵然是云荒万里，也会分崩离析。&lt;br /&gt;
这世间的种种生离死别来了又去，宛如潮汐。&lt;/p&gt;
&lt;p&gt;可是，所爱的人啊……&lt;br /&gt;
如果我曾真的爱过你，&lt;br /&gt;
那我就永远不会忘记。&lt;br /&gt;
但，请你原谅——&lt;br /&gt;
我还是得不动声色地走下去。&lt;/p&gt;
&lt;h3  class=&quot;related_post_title&quot;&gt;也许你会喜欢&lt;/h3&gt;&lt;ul class=&quot;related_post&quot;&gt;&lt;li&gt;&lt;a href=&quot;http://www.yigle.net/2008/05/%e5%a4%a7%e6%bc%a0%e8%8d%92%e9%a2%9c.html&quot; title=&quot;大漠荒颜&quot;&gt;大漠荒颜&lt;/a&gt; (0)&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.yigle.net/2008/04/%e4%b8%83%e6%9c%88%e9%9b%aa-%e6%b2%a7%e6%9c%88.html&quot; title=&quot;七月雪 沧月&quot;&gt;七月雪 沧月&lt;/a&gt; (0)&lt;/li&gt;&lt;/ul&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/339691558/yigle/feedsky/s.gif?r=http://www.yigle.net/2010/01/jing.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/yigle/339691558/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/yigle/339691558/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</content:encoded><wfw:commentRss>http://www.yigle.net/2010/01/jing.html/feed</wfw:commentRss><slash:comments>0</slash:comments><description>潮汐
纵然是七海连天，也会干涸枯竭。
纵然是云荒万里，也会分崩离析。
这世间的种种生离死别来了又去，宛如潮汐。&lt;img src=&quot;http://www1.feedsky.com/t1/339691558/yigle/feedsky/s.gif?r=http://www.yigle.net/2010/01/jing.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/yigle/339691558/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/yigle/339691558/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><category>沧月</category><category>读书</category><pubDate>Sat, 23 Jan 2010 23:25:19 +0800</pubDate><author>rong179</author><comments>http://www.yigle.net/2010/01/jing.html#comments</comments><guid isPermaLink="false">http://www.yigle.net/2010/01/jing.html</guid><dc:creator>rong179</dc:creator><fs:srclink>http://www.yigle.net/2010/01/jing.html</fs:srclink><fs:srcfeed>http://www.yigle.net/feed</fs:srcfeed><fs:itemid>feedsky/yigle/~7882683/339691558/5992322</fs:itemid></item><item><title>The thrilling potential of SixthSense technology</title><link>http://www.yigle.net/2010/01/the-thrilling-potential-of-sixthsense-technology.html</link><content:encoded>&lt;p&gt;&lt;object classid=&quot;clsid:d27cdb6e-ae6d-11cf-96b8-444553540000&quot; width=&quot;480&quot; height=&quot;400&quot; codebase=&quot;http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0&quot;&gt;&lt;param name=&quot;align&quot; value=&quot;middle&quot; /&gt;&lt;param name=&quot;src&quot; value=&quot;http://player.youku.com/player.php/sid/XMTQxNzY2MDUy/v.swf&quot; /&gt;&lt;param name=&quot;quality&quot; value=&quot;high&quot; /&gt;&lt;embed type=&quot;application/x-shockwave-flash&quot; width=&quot;480&quot; height=&quot;400&quot; src=&quot;http://player.youku.com/player.php/sid/XMTQxNzY2MDUy/v.swf&quot; quality=&quot;high&quot; align=&quot;middle&quot;&gt;&lt;/embed&gt;&lt;/object&gt;&lt;/p&gt;
&lt;p&gt;美国麻省理工学院媒体实验室的印度籍学生Prarnav  Mistry在&lt;a href=&quot;http://www.ted.com/&quot;&gt;TED&lt;/a&gt;上向世人展示的一个让电脑技术完美的融入到实体世界中去的伟大科技成果。&lt;/p&gt;
&lt;p&gt;我们之所以使用电脑不是因为我们对电脑感兴趣而是我们对取得的信息感兴趣，将数位世界与实体世界联通，不是如何将我们的实体世界更容易得走进虚拟世界，而是将虚拟的计算机内容投影至实体的世界。“把资讯融入日常用品当中，不只是能够消除数位世界的隔阂，除去实体与虚拟之间的距离，还将帮助我们保持原有的人性，与实体世界更加贴近，从而实际帮助我们避免成为坐在机器面前的机器”。这是一个逆向思考的过程！Pranav，展示了这一思考探索过程,展示了这一应用的巨大魅力！Amazing！believe it!&lt;/p&gt;
&lt;h3  class=&quot;related_post_title&quot;&gt;也许你会喜欢&lt;/h3&gt;&lt;ul class=&quot;related_post&quot;&gt;&lt;li&gt;&lt;a href=&quot;http://www.yigle.net/2009/04/blogbus-cmt.html&quot; title=&quot;blogbus Cmt博客大巴评论插件&quot;&gt;blogbus Cmt博客大巴评论插件&lt;/a&gt; (92)&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.yigle.net/2009/04/what-is-gravatar.html&quot; title=&quot;什么是Gravatar？&quot;&gt;什么是Gravatar？&lt;/a&gt; (12)&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.yigle.net/2008/11/blogbus_gravata.html&quot; title=&quot;让blogbus支持Gravatar&quot;&gt;让blogbus支持Gravatar&lt;/a&gt; (10)&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.yigle.net/2009/06/%e4%b8%80%e4%b8%aa%e5%9f%9f%e5%90%8d%ef%bc%8c%e4%b8%80%e4%b8%aa%e4%ba%92%e8%81%94%e7%bd%91%e7%9a%84id.html&quot; title=&quot;一个域名，一个互联网的ID&quot;&gt;一个域名，一个互联网的ID&lt;/a&gt; (8)&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.yigle.net/2009/08/mo-radio.html&quot; title=&quot;Mo Radio&quot;&gt;Mo Radio&lt;/a&gt; (4)&lt;/li&gt;&lt;/ul&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/339691559/yigle/feedsky/s.gif?r=http://www.yigle.net/2010/01/the-thrilling-potential-of-sixthsense-technology.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/yigle/339691559/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/yigle/339691559/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</content:encoded><wfw:commentRss>http://www.yigle.net/2010/01/the-thrilling-potential-of-sixthsense-technology.html/feed</wfw:commentRss><slash:comments>1</slash:comments><description>美国麻省理工学院媒体实验室的印度籍学生Prarnav  Mistry在TED上向世人展示的一个让电脑技术完美的融入到实体世界中去的伟大科技成果。
我们之所以使用电脑不是因为我们对电脑感兴趣而是我们对取得的信息感兴趣，将数位世界与实体世界联通，不是如何将我们的实体世界更容易得走进虚拟世界，而是将虚拟的计算机内容投影至实体的世界。“把资讯融入日常用品当中，不只是能够消除数位世界的隔阂，除去实体与虚拟之间的距离，还将帮助我们保持原有的人性，与实体世界更加贴近，从而实际帮助我们避免成为坐在机器面前的机器”。这是一个逆向思考的过程！Pranav，展示了这一思考探索过程,展示了这一应用的巨大魅力！Amazing！believe it!&lt;img src=&quot;http://www1.feedsky.com/t1/339691559/yigle/feedsky/s.gif?r=http://www.yigle.net/2010/01/the-thrilling-potential-of-sixthsense-technology.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/yigle/339691559/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/yigle/339691559/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><category>Web应用</category><pubDate>Tue, 12 Jan 2010 14:16:35 +0800</pubDate><author>rong179</author><comments>http://www.yigle.net/2010/01/the-thrilling-potential-of-sixthsense-technology.html#comments</comments><guid isPermaLink="false">http://www.yigle.net/?p=36930</guid><dc:creator>rong179</dc:creator><fs:srclink>http://www.yigle.net/2010/01/the-thrilling-potential-of-sixthsense-technology.html</fs:srclink><fs:srcfeed>http://www.yigle.net/feed</fs:srcfeed><fs:itemid>feedsky/yigle/~7882683/339691559/5992322</fs:itemid></item><item><title>同步</title><link>http://www.yigle.net/2010/01/synchronization.html</link><content:encoded>&lt;p&gt;相对于QQ，校内能有个开发平台已经很不错。研究了一天,感觉开发文档写的不仔细，而且和现在的人人页面不同步，开始时有点摸不到头脑。说说遇到的问题：&lt;/p&gt;
&lt;p&gt;用户添加人人应用时，会得到一个session_key，进一步请求api可完成相应的功能。人人对于canva应用，会在页面中给出session _key （比如iframe 的src），这样用户每次使用应用就可到相应的session_key；对于站外的应用，可以通过callback post 获得；对于人人联接的网站session_key在cookie中。但是session key一段时间后会过期，必须重新获得新的session key，我想隔断时间更新状态，必须保持session_key可用，对于站外应用如何能不须用户登入应用页面，而保持session_key一直有效呢？digu的应用滴神通过人人连接实现同步，但不知道具体怎样实现&lt;/p&gt;
&lt;p&gt;最后还是参考yegle 写的例子通过curl模拟登入实现同步，暂且这样吧。&lt;/p&gt;
&lt;p&gt;完成的同步：&lt;/p&gt;
&lt;p&gt;1.wp同步：（&lt;span style=&quot;text-decoration: line-through;&quot;&gt;校内日志&lt;/span&gt;，QQ空间）&lt;br /&gt;
2.twitter同步：（校内状态）&lt;/p&gt;
&lt;p&gt;以后有时间把豆瓣、digu、flickr写下&lt;/p&gt;
&lt;h3  class=&quot;related_post_title&quot;&gt;也许你会喜欢&lt;/h3&gt;&lt;ul class=&quot;related_post&quot;&gt;&lt;li&gt;&lt;a href=&quot;http://www.yigle.net/2009/04/blogbus-cmt.html&quot; title=&quot;blogbus Cmt博客大巴评论插件&quot;&gt;blogbus Cmt博客大巴评论插件&lt;/a&gt; (92)&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.yigle.net/2009/04/what-is-gravatar.html&quot; title=&quot;什么是Gravatar？&quot;&gt;什么是Gravatar？&lt;/a&gt; (12)&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.yigle.net/2008/11/blogbus_gravata.html&quot; title=&quot;让blogbus支持Gravatar&quot;&gt;让blogbus支持Gravatar&lt;/a&gt; (10)&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.yigle.net/2009/06/%e4%b8%80%e4%b8%aa%e5%9f%9f%e5%90%8d%ef%bc%8c%e4%b8%80%e4%b8%aa%e4%ba%92%e8%81%94%e7%bd%91%e7%9a%84id.html&quot; title=&quot;一个域名，一个互联网的ID&quot;&gt;一个域名，一个互联网的ID&lt;/a&gt; (8)&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.yigle.net/2009/08/mo-radio.html&quot; title=&quot;Mo Radio&quot;&gt;Mo Radio&lt;/a&gt; (4)&lt;/li&gt;&lt;/ul&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/339691560/yigle/feedsky/s.gif?r=http://www.yigle.net/2010/01/synchronization.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/yigle/339691560/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/yigle/339691560/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</content:encoded><wfw:commentRss>http://www.yigle.net/2010/01/synchronization.html/feed</wfw:commentRss><slash:comments>0</slash:comments><description>相对于QQ，校内能有个开发平台已经很不错。研究了一天,感觉开发文档写的不仔细，而且和现在的人人页面不同步，开始时有点摸不到头脑。说说遇到的问题：
用户添加人人应用时，会得到一个session_key，进一步请求api可完成相应的功能。人人对于canva应用，会在页面中给出session _key （比如iframe 的src），这样用户每次使用应用就可到相应的session_key；对于站外的应用，可以通过callback post 获得；对于人人联接的网站session_key在cookie中。但是session key一段时间后会过期，必须重新获得新的session key，我想隔断时间更新状态，必须保持session_key可用，对于站外应用如何能不须用户登入应用页面，而保持session_key一直有效呢？digu的应用滴神通过人人连接实现同步，但不知道具体怎样实现&lt;img src=&quot;http://www1.feedsky.com/t1/339691560/yigle/feedsky/s.gif?r=http://www.yigle.net/2010/01/synchronization.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/yigle/339691560/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/yigle/339691560/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><category>twitter</category><category>同步</category><category>QQ</category><category>api</category><category>杂七杂八</category><pubDate>Mon, 11 Jan 2010 01:22:13 +0800</pubDate><author>rong179</author><comments>http://www.yigle.net/2010/01/synchronization.html#comments</comments><guid isPermaLink="false">http://www.yigle.net/?p=36924</guid><dc:creator>rong179</dc:creator><fs:srclink>http://www.yigle.net/2010/01/synchronization.html</fs:srclink><fs:srcfeed>http://www.yigle.net/feed</fs:srcfeed><fs:itemid>feedsky/yigle/~7882683/339691560/5992322</fs:itemid></item><item><title>2010</title><link>http://www.yigle.net/2010/01/2010.html</link><content:encoded>&lt;p&gt;2010了，总想写点东西，却总懒的去写，懒的去回顾，就像书签里n多待整理的收藏一样，懒的去整理就暂不去整理了。总是感觉忙忙碌碌，却不知是不是真的忙碌，接触的事多了，要处理的事情也多。总之，无论2009如何还是过去了，2010 is here，自己还是自己!距放假还有一段时间，加油吧，回家-&gt;！&lt;br /&gt;
要祝福我的朋友们，送过祝福的、不曾联络的，2010顺利快乐！&lt;/p&gt;
&lt;p&gt;加油！&lt;br /&gt;
好了，写下这两天听的歌，睡觉吧。&lt;/p&gt;
&lt;p&gt;很难&amp;#8212;&amp;#8211;张震岳&lt;br /&gt;
越长大越孤单&amp;#8212;&amp;#8211;milk&amp;#038;coffee&lt;br /&gt;
甲乙丙丁&amp;#8212;&amp;#8212;-许志安&amp;#038;张学友&amp;#038;郑中基&lt;br /&gt;
你的微笑&amp;#8212;&amp;#8212;F.I.R&lt;br /&gt;
&amp;#8230;&lt;/p&gt;
&lt;h3  class=&quot;related_post_title&quot;&gt;也许你会喜欢&lt;/h3&gt;&lt;ul class=&quot;related_post&quot;&gt;&lt;li&gt;&lt;a href=&quot;http://www.yigle.net/2009/01/2008-%e6%88%91%e4%bb%ac%e7%9a%84%e6%97%a5%e5%ad%90.html&quot; title=&quot;2008 我们的日子&quot;&gt;2008 我们的日子&lt;/a&gt; (2)&lt;/li&gt;&lt;/ul&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/339691561/yigle/feedsky/s.gif?r=http://www.yigle.net/2010/01/2010.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/yigle/339691561/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/yigle/339691561/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</content:encoded><wfw:commentRss>http://www.yigle.net/2010/01/2010.html/feed</wfw:commentRss><slash:comments>4</slash:comments><description>2010了，总想写点东西，却总懒的去写，懒的去回顾，就像书签里n多待整理的收藏一样，懒的去整理就暂不去整理了。总是感觉忙忙碌碌，却不知是不是真的忙碌，接触的事多了，要处理的事情也多。总之，无论2009如何还是过去了，2010 is here，自己还是自己!距放假还有一段时间，加油吧，回家-&gt;！
要祝福我的朋友们，送过祝福的、不曾联络的，2010顺利快乐！
加油！
好了，写下这两天听的歌，睡觉吧。&lt;img src=&quot;http://www1.feedsky.com/t1/339691561/yigle/feedsky/s.gif?r=http://www.yigle.net/2010/01/2010.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/yigle/339691561/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/yigle/339691561/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><category>自己</category><category>元旦</category><pubDate>Fri, 01 Jan 2010 01:03:13 +0800</pubDate><author>rong179</author><comments>http://www.yigle.net/2010/01/2010.html#comments</comments><guid isPermaLink="false">http://www.yigle.net/?p=36908</guid><dc:creator>rong179</dc:creator><fs:srclink>http://www.yigle.net/2010/01/2010.html</fs:srclink><fs:srcfeed>http://www.yigle.net/feed</fs:srcfeed><fs:itemid>feedsky/yigle/~7882683/339691561/5992322</fs:itemid></item><item><title>行结束符\r\n？</title><link>http://www.yigle.net/2009/12/line-ending-character-r-n.html</link><content:encoded>&lt;p&gt;\r 0X0A 回车，return&lt;br /&gt;
\n 0X0D 换行，newline&lt;/p&gt;
&lt;p&gt;我们在平时使用电脑时，已经习惯了回车和换行一次搞定，敲一个回车键，即是回车，又是换行，但在早期的打字机上，要另起一行打字需要两个步骤，首先要发送命令&amp;#8221;\r”将打字头复位，即回车，然后再发送命令&amp;#8221;\n”让打字机走纸移到下一行，所以这个历史遗留问题导致了如今我们在DOS-Win的系统中用&amp;#8221;\r\n”作为“行结束符”，但在基于Unix的操作系统中使用&amp;#8221;\n”,mac中使用“\r”。&lt;/p&gt;
&lt;p&gt;win下，用UltraEdit打开文本查看，会看到换行处显示的是0&amp;#215;0D0A,0&amp;#215;0D即&amp;#8221;\r”，0&amp;#215;0A即&amp;#8221;\n”。  有时候在文本文件中出现■这样的符号，是因为没有&amp;#8221;\r\n&amp;#8221;连用，导致不能正确回车换行。&lt;/p&gt;
&lt;p&gt;在处理字符时可以将“行结束符”统一处理成“\n”，然后再进一步处理，如：&lt;/p&gt;
&lt;p&gt;php:&lt;/p&gt;
&lt;div class=&quot;geshi no php&quot;&gt;
&lt;ol&gt;
&lt;li class=&quot;li1&quot;&gt;
&lt;div class=&quot;de1&quot;&gt;&lt;span class=&quot;co1&quot;&gt;// cross-platform newlines&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;li1&quot;&gt;
&lt;div class=&quot;de1&quot;&gt;&lt;span class=&quot;re1&quot;&gt;$str&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;kw3&quot;&gt;str_replace&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;kw3&quot;&gt;array&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;&lt;span class=&quot;es0&quot;&gt;\r&lt;/span&gt;&lt;span class=&quot;es0&quot;&gt;\n&lt;/span&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;&lt;span class=&quot;es0&quot;&gt;\r&lt;/span&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;&lt;span class=&quot;es0&quot;&gt;\n&lt;/span&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;re1&quot;&gt;$str&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;p&gt;Javascript:&lt;/p&gt;
&lt;div class=&quot;geshi no javascript&quot;&gt;
&lt;ol&gt;
&lt;li class=&quot;li1&quot;&gt;
&lt;div class=&quot;de1&quot;&gt;&lt;span class=&quot;co1&quot;&gt;// cross-platform newlines&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;li1&quot;&gt;
&lt;div class=&quot;de1&quot;&gt;str.&lt;span class=&quot;me1&quot;&gt;replace&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;/\r\n?/g&lt;/span&gt;,&lt;span class=&quot;st0&quot;&gt;&amp;quot;&lt;span class=&quot;es0&quot;&gt;\n&lt;/span&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;;&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;p&gt;php读写文件时，fopen设置‘b’标志（强制二进制模式，不会做任何转换）。或者设置&amp;#8217;t'标志（文本模式，win 会将\n转换成\r\n，（只当让文件具有可读性时设置吧））。&lt;/p&gt;
&lt;h3  class=&quot;related_post_title&quot;&gt;也许你会喜欢&lt;/h3&gt;&lt;ul class=&quot;related_post&quot;&gt;&lt;li&gt;&lt;a href=&quot;http://www.yigle.net/2009/04/blogbus-cmt.html&quot; title=&quot;blogbus Cmt博客大巴评论插件&quot;&gt;blogbus Cmt博客大巴评论插件&lt;/a&gt; (92)&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.yigle.net/2009/04/what-is-gravatar.html&quot; title=&quot;什么是Gravatar？&quot;&gt;什么是Gravatar？&lt;/a&gt; (12)&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.yigle.net/2008/11/blogbus_gravata.html&quot; title=&quot;让blogbus支持Gravatar&quot;&gt;让blogbus支持Gravatar&lt;/a&gt; (10)&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.yigle.net/2009/06/%e4%b8%80%e4%b8%aa%e5%9f%9f%e5%90%8d%ef%bc%8c%e4%b8%80%e4%b8%aa%e4%ba%92%e8%81%94%e7%bd%91%e7%9a%84id.html&quot; title=&quot;一个域名，一个互联网的ID&quot;&gt;一个域名，一个互联网的ID&lt;/a&gt; (8)&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.yigle.net/2009/08/mo-radio.html&quot; title=&quot;Mo Radio&quot;&gt;Mo Radio&lt;/a&gt; (4)&lt;/li&gt;&lt;/ul&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/339691562/yigle/feedsky/s.gif?r=http://www.yigle.net/2009/12/line-ending-character-r-n.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/yigle/339691562/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/yigle/339691562/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</content:encoded><wfw:commentRss>http://www.yigle.net/2009/12/line-ending-character-r-n.html/feed</wfw:commentRss><slash:comments>2</slash:comments><description>\r 0X0A 回车，return
\n 0X0D 换行，newline
我们在平时使用电脑时，已经习惯了回车和换行一次搞定，敲一个回车键，即是回车，又是换行，但在早期的打字机上，要另起一行打字需要两个步骤，首先要发送命令&amp;#8221;\r”将打字头复位，即回车，然后再发送命令&amp;#8221;\n”让打字机走纸移到下一行，所以这个历史遗留问题导致了如今我们在DOS-Win的系统中用&amp;#8221;\r\n”作为“行结束符”，但在基于Unix的操作系统中使用&amp;#8221;\n”,mac中使用“\r”。
win下，用UltraEdit打开文本查看，会看到换行处显示的是0&amp;#215;0D0A,0&amp;#215;0D即&amp;#8221;\r”，0&amp;#215;0A即&amp;#8221;\n”。  有时候在文本文件中出现■这样的符号，是因为没有&amp;#8221;\r\n&amp;#8221;连用，导致不能正确回车换行。&lt;img src=&quot;http://www1.feedsky.com/t1/339691562/yigle/feedsky/s.gif?r=http://www.yigle.net/2009/12/line-ending-character-r-n.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/yigle/339691562/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/yigle/339691562/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><category>换行符</category><category>正则表达式</category><category>回车符</category><category>Web技术</category><pubDate>Sun, 13 Dec 2009 13:49:08 +0800</pubDate><author>rong179</author><comments>http://www.yigle.net/2009/12/line-ending-character-r-n.html#comments</comments><guid isPermaLink="false">http://www.yigle.net/?p=36868</guid><dc:creator>rong179</dc:creator><fs:srclink>http://www.yigle.net/2009/12/line-ending-character-r-n.html</fs:srclink><fs:srcfeed>http://www.yigle.net/feed</fs:srcfeed><fs:itemid>feedsky/yigle/~7882683/339691562/5992322</fs:itemid></item><item><title>PHP变量总结</title><link>http://www.yigle.net/2009/11/php-variables-summary.html</link><content:encoded>&lt;p&gt;php对变量类型要求不严，不强制变量必须先声明再使用，它会假设该变量为空。&lt;/p&gt;
&lt;h3&gt;作用域&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;常量，一旦被声明将可以在全局可见，也就是说，它们可以函数内外使用。&lt;/li&gt;
&lt;li&gt;内置超级全局变量，可以在脚本的任何地方使用和可见（如：$GOBALS、$_GETS）。&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;text-decoration: underline;&quot;&gt;全局变量在函数内不可见&lt;/span&gt;，函数内部变量默认使用局部变量，可以通过global声明使用全局变量。&lt;/li&gt;
&lt;li&gt;对象中private-protected-public 关键字&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;存在时间&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;text-decoration: line-through;&quot;&gt;函数内的变量，&lt;/span&gt;可用static声明变量为静态变量&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;传值|传址（引用）&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;默认是传值传递，可以通过&amp;amp;表示引用&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;变量替换&lt;/h3&gt;
&lt;p&gt;php会检查&lt;span style=&quot;text-decoration: underline;&quot;&gt;双引号&lt;/span&gt;（非单引号）内字符串，把$及紧随其后的字符（到空白符位置）解释成变量，并将变量替换。已引起混淆的可用{}界定&lt;/p&gt;
&lt;p&gt;注：include 和 require 引入的文件，会作为脚本一部分执行。&lt;br /&gt;
一些例子：&lt;a href=&quot;http://blog.csdn.net/xiezongchun/archive/2009/03/13/3983726.aspx&quot;&gt;http://blog.csdn.net/xiezongchun/archive/2009/03/13/3983726.aspx&lt;/a&gt;&lt;/p&gt;
&lt;div class=&quot;zemanta-pixie&quot;&gt;&lt;img class=&quot;zemanta-pixie-img&quot; src=&quot;http://img.zemanta.com/pixy.gif?x-id=313a4e18-ee20-8e1f-a6ed-131caaad9cda&quot; alt=&quot;&quot; /&gt;&lt;/div&gt;
&lt;h3  class=&quot;related_post_title&quot;&gt;也许你会喜欢&lt;/h3&gt;&lt;ul class=&quot;related_post&quot;&gt;&lt;li&gt;&lt;a href=&quot;http://www.yigle.net/2009/04/blogbus-cmt.html&quot; title=&quot;blogbus Cmt博客大巴评论插件&quot;&gt;blogbus Cmt博客大巴评论插件&lt;/a&gt; (92)&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.yigle.net/2009/04/what-is-gravatar.html&quot; title=&quot;什么是Gravatar？&quot;&gt;什么是Gravatar？&lt;/a&gt; (12)&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.yigle.net/2008/11/blogbus_gravata.html&quot; title=&quot;让blogbus支持Gravatar&quot;&gt;让blogbus支持Gravatar&lt;/a&gt; (10)&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.yigle.net/2009/06/%e4%b8%80%e4%b8%aa%e5%9f%9f%e5%90%8d%ef%bc%8c%e4%b8%80%e4%b8%aa%e4%ba%92%e8%81%94%e7%bd%91%e7%9a%84id.html&quot; title=&quot;一个域名，一个互联网的ID&quot;&gt;一个域名，一个互联网的ID&lt;/a&gt; (8)&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.yigle.net/2009/08/mo-radio.html&quot; title=&quot;Mo Radio&quot;&gt;Mo Radio&lt;/a&gt; (4)&lt;/li&gt;&lt;/ul&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/339691563/yigle/feedsky/s.gif?r=http://www.yigle.net/2009/11/php-variables-summary.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/yigle/339691563/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/yigle/339691563/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</content:encoded><wfw:commentRss>http://www.yigle.net/2009/11/php-variables-summary.html/feed</wfw:commentRss><slash:comments>0</slash:comments><description>php对变量类型要求不严，不强制变量必须先声明再使用，它会假设该变量为空。
作用域

常量，一旦被声明将可以在全局可见，也就是说，它们可以函数内外使用。&lt;img src=&quot;http://www1.feedsky.com/t1/339691563/yigle/feedsky/s.gif?r=http://www.yigle.net/2009/11/php-variables-summary.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/yigle/339691563/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/yigle/339691563/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><category>global</category><category>作用域</category><category>PHP</category><category>传址</category><category>static</category><category>变量</category><pubDate>Thu, 19 Nov 2009 13:38:32 +0800</pubDate><author>rong179</author><comments>http://www.yigle.net/2009/11/php-variables-summary.html#comments</comments><guid isPermaLink="false">http://www.yigle.net/2009/11/php-variables-summary.html</guid><dc:creator>rong179</dc:creator><fs:srclink>http://www.yigle.net/2009/11/php-variables-summary.html</fs:srclink><fs:srcfeed>http://www.yigle.net/feed</fs:srcfeed><fs:itemid>feedsky/yigle/~7882683/339691563/5992322</fs:itemid></item><item><title>win32下使用curl</title><link>http://www.yigle.net/2009/11/win32-curl.html</link><content:encoded>&lt;p&gt;在CURL官方下载带ssl的 win32版本文件&lt;a title=&quot;最新curl-win32-ssl&quot; href=&quot;http://curl.haxx.se/latest.cgi?curl=win32-ssl&quot;&gt;http://curl.haxx.se/latest.cgi?curl=win32-ssl&lt;/a&gt; 后，解压点击curl.exe时遇到以下问题：&lt;/p&gt;
&lt;p&gt;———————————————————————————————————————————&lt;br /&gt;
没有找到libssl32.dll，因此这个应用程序未能启动。重新安装应用程序可能会修复此问题。&lt;br /&gt;
———————————————————————————————————————————&lt;/p&gt;
&lt;p&gt;libssl32.dll为OpenSSL组件文件，不同版本的OpenSSL可能会出现以上提示，据说是openssl升级后更改文件名问题（libssl32.dll修改成了ssleay32.dll）&lt;/p&gt;
&lt;p&gt;总之，下载了libssl32.dll和libeay32.dll两个文件，放到curl文件目录，问题解决&lt;/p&gt;
&lt;p&gt;编译好的 dll文件可以在这里下载（bin文件下有这两个dll文件）&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://gnuwin32.sourceforge.net/packages/openssl.htm&quot;&gt;http://gnuwin32.sourceforge.net/packages/openssl.htm&lt;/a&gt;&lt;/p&gt;
&lt;h3  class=&quot;related_post_title&quot;&gt;也许你会喜欢&lt;/h3&gt;&lt;ul class=&quot;related_post&quot;&gt;&lt;li&gt;&lt;a href=&quot;http://www.yigle.net/2009/11/php-curl.html&quot; title=&quot;php curl详解&quot;&gt;php curl详解&lt;/a&gt; (0)&lt;/li&gt;&lt;/ul&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/339691564/yigle/feedsky/s.gif?r=http://www.yigle.net/2009/11/win32-curl.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/yigle/339691564/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/yigle/339691564/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</content:encoded><wfw:commentRss>http://www.yigle.net/2009/11/win32-curl.html/feed</wfw:commentRss><slash:comments>0</slash:comments><description>在CURL官方下载带ssl的 win32版本文件http://curl.haxx.se/latest.cgi?curl=win32-ssl 后，解压点击curl.exe时遇到以下问题：
———————————————————————————————————————————
没有找到libssl32.dll，因此这个应用程序未能启动。重新安装应用程序可能会修复此问题。
———————————————————————————————————————————&lt;img src=&quot;http://www1.feedsky.com/t1/339691564/yigle/feedsky/s.gif?r=http://www.yigle.net/2009/11/win32-curl.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/yigle/339691564/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/yigle/339691564/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><category>dll</category><category>win32</category><category>openssl</category><category>curl</category><category>Web技术</category><pubDate>Tue, 17 Nov 2009 21:25:36 +0800</pubDate><author>rong179</author><comments>http://www.yigle.net/2009/11/win32-curl.html#comments</comments><guid isPermaLink="false">http://www.yigle.net/?p=36849</guid><dc:creator>rong179</dc:creator><fs:srclink>http://www.yigle.net/2009/11/win32-curl.html</fs:srclink><fs:srcfeed>http://www.yigle.net/feed</fs:srcfeed><fs:itemid>feedsky/yigle/~7882683/339691564/5992322</fs:itemid></item><item><title>DOS切换目录CD命令</title><link>http://www.yigle.net/2009/11/dos-change-directory-cd-command.html</link><content:encoded>&lt;h3&gt;命令：cd&lt;/h3&gt;
&lt;p&gt;作用：转变当前目录&lt;br /&gt;
格式：cd 盘符\路径名\子目录名&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;使用说明：&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;如果省略路径和子目录名则表示在当前目录进行操作；&lt;/li&gt;
&lt;li&gt;如采取“cd\”格式，则退回到根目录；&lt;/li&gt;
&lt;li&gt;如采取“cd..”格式则退回到上一级目录。&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;strong&gt;实例：&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;进入到xubin子目录。&lt;br /&gt;
&lt;em&gt;C：\＞cd program\curl&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;从xubin子目录退回到ITCSO子目录。&lt;br /&gt;
&lt;em&gt;C：\＞program\curl＞cd..&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;返回到根目录。&lt;br /&gt;
&lt;em&gt;C：\＞program＞cd\&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;注：cd命令是切换目录作用，如果要转换盘符直接输入要转换的“盘符号:”回车即可（如d:）。&lt;/p&gt;
&lt;h3  class=&quot;related_post_title&quot;&gt;也许你会喜欢&lt;/h3&gt;&lt;ul class=&quot;related_post&quot;&gt;&lt;li&gt;&lt;a href=&quot;http://www.yigle.net/2009/04/blogbus-cmt.html&quot; title=&quot;blogbus Cmt博客大巴评论插件&quot;&gt;blogbus Cmt博客大巴评论插件&lt;/a&gt; (92)&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.yigle.net/2009/04/what-is-gravatar.html&quot; title=&quot;什么是Gravatar？&quot;&gt;什么是Gravatar？&lt;/a&gt; (12)&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.yigle.net/2008/11/blogbus_gravata.html&quot; title=&quot;让blogbus支持Gravatar&quot;&gt;让blogbus支持Gravatar&lt;/a&gt; (10)&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.yigle.net/2009/06/%e4%b8%80%e4%b8%aa%e5%9f%9f%e5%90%8d%ef%bc%8c%e4%b8%80%e4%b8%aa%e4%ba%92%e8%81%94%e7%bd%91%e7%9a%84id.html&quot; title=&quot;一个域名，一个互联网的ID&quot;&gt;一个域名，一个互联网的ID&lt;/a&gt; (8)&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.yigle.net/2009/08/mo-radio.html&quot; title=&quot;Mo Radio&quot;&gt;Mo Radio&lt;/a&gt; (4)&lt;/li&gt;&lt;/ul&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/339691565/yigle/feedsky/s.gif?r=http://www.yigle.net/2009/11/dos-change-directory-cd-command.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/yigle/339691565/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/yigle/339691565/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</content:encoded><wfw:commentRss>http://www.yigle.net/2009/11/dos-change-directory-cd-command.html/feed</wfw:commentRss><slash:comments>0</slash:comments><description>命令：cd
作用：转变当前目录
格式：cd 盘符\路径名\子目录名
使用说明：&lt;img src=&quot;http://www1.feedsky.com/t1/339691565/yigle/feedsky/s.gif?r=http://www.yigle.net/2009/11/dos-change-directory-cd-command.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/yigle/339691565/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/yigle/339691565/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><category>dos</category><category>Web技术</category><pubDate>Tue, 17 Nov 2009 20:53:48 +0800</pubDate><author>rong179</author><comments>http://www.yigle.net/2009/11/dos-change-directory-cd-command.html#comments</comments><guid isPermaLink="false">http://www.yigle.net/?p=36842</guid><dc:creator>rong179</dc:creator><fs:srclink>http://www.yigle.net/2009/11/dos-change-directory-cd-command.html</fs:srclink><fs:srcfeed>http://www.yigle.net/feed</fs:srcfeed><fs:itemid>feedsky/yigle/~7882683/339691565/5992322</fs:itemid></item><item><title>php curl详解</title><link>http://www.yigle.net/2009/11/php-curl.html</link><content:encoded>&lt;p&gt;目前为目最全的CURL中文说明了,采集用到，原出处不详&amp;#8230;&lt;/p&gt;
&lt;p&gt;PHP中的CURL函数库（Client URL Library Function）&lt;/p&gt;
&lt;p&gt;curl_close — 关闭一个curl会话&lt;br /&gt;
curl_copy_handle — 拷贝一个curl连接资源的所有内容和参数&lt;br /&gt;
curl_errno — 返回一个包含当前会话错误信息的数字编号&lt;br /&gt;
curl_error — 返回一个包含当前会话错误信息的字符串&lt;br /&gt;
curl_exec — 执行一个curl会话&lt;br /&gt;
curl_getinfo — 获取一个curl连接资源句柄的信息&lt;br /&gt;
curl_init — 初始化一个curl会话&lt;br /&gt;
curl_multi_add_handle — 向curl批处理会话中添加单独的curl句柄资源&lt;br /&gt;
curl_multi_close — 关闭一个批处理句柄资源&lt;br /&gt;
curl_multi_exec — 解析一个curl批处理句柄&lt;br /&gt;
curl_multi_getcontent — 返回获取的输出的文本流&lt;br /&gt;
curl_multi_info_read — 获取当前解析的curl的相关传输信息&lt;br /&gt;
curl_multi_init — 初始化一个curl批处理句柄资源&lt;br /&gt;
curl_multi_remove_handle — 移除curl批处理句柄资源中的某个句柄资源&lt;br /&gt;
curl_multi_select — Get all the sockets associated with the cURL extension, which can then be “selected”&lt;br /&gt;
curl_setopt_array — 以数组的形式为一个curl设置会话参数&lt;br /&gt;
curl_setopt — 为一个curl设置会话参数&lt;br /&gt;
curl_version — 获取curl相关的版本信息&lt;/p&gt;
&lt;p&gt;curl_init()函数的作用初始化一个curl会话，curl_init()函数唯一的一个参数是可选的，表示一个url地址。&lt;br /&gt;
curl_exec()函数的作用是执行一个curl会话，唯一的参数是curl_init()函数返回的句柄。&lt;br /&gt;
curl_close()函数的作用是关闭一个curl会话，唯一的参数是curl_init()函数返回的句柄。&lt;/p&gt;
&lt;div class=&quot;hl-surround&quot;&gt;
&lt;div class=&quot;hl-main&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: gray;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;$ch&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt; = &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;curl_init&lt;/span&gt;&lt;span style=&quot;color: olive;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;“&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;http://www.baidu.com/&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;“&lt;/span&gt;&lt;span style=&quot;color: olive;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;;&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;curl_exec&lt;/span&gt;&lt;span style=&quot;color: olive;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;$ch&lt;/span&gt;&lt;span style=&quot;color: olive;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;;&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;curl_close&lt;/span&gt;&lt;span style=&quot;color: olive;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;$ch&lt;/span&gt;&lt;span style=&quot;color: olive;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;;&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;curl_version()函数的作用是获取curl相关的版本信息，curl_version()函数有一个参数，不清楚是做什么的&lt;/p&gt;
&lt;div class=&quot;hl-surround&quot;&gt;
&lt;div class=&quot;hl-main&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: gray;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;print_r&lt;/span&gt;&lt;span style=&quot;color: olive;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;curl_version&lt;/span&gt;&lt;span style=&quot;color: olive;&quot;&gt;())&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;curl_getinfo()函数的作用是获取一个curl连接资源句柄的信息，curl_getinfo()函数有两个参数，第一个参数是curl的资源句柄，第二个参数是下面一些常量：&lt;/p&gt;
&lt;div class=&quot;hl-surround&quot;&gt;
&lt;div class=&quot;hl-main&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: gray;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;$ch&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt; = &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;curl_init&lt;/span&gt;&lt;span style=&quot;color: olive;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;“&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;http://www.baidu.com/&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;“&lt;/span&gt;&lt;span style=&quot;color: olive;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;;&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;print_r&lt;/span&gt;&lt;span style=&quot;color: olive;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;curl_getinfo&lt;/span&gt;&lt;span style=&quot;color: olive;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;$ch&lt;/span&gt;&lt;span style=&quot;color: olive;&quot;&gt;))&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;;&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;可选的常量包括：&lt;/p&gt;
&lt;p&gt;CURLINFO_EFFECTIVE_URL&lt;br /&gt;
最后一个有效的url地址&lt;/p&gt;
&lt;p&gt;CURLINFO_HTTP_CODE&lt;br /&gt;
最后一个收到的HTTP代码&lt;/p&gt;
&lt;p&gt;CURLINFO_FILETIME&lt;br /&gt;
远程获取文档的时间，如果无法获取，则返回值为“-1”&lt;/p&gt;
&lt;p&gt;CURLINFO_TOTAL_TIME&lt;br /&gt;
最后一次传输所消耗的时间&lt;/p&gt;
&lt;p&gt;CURLINFO_NAMELOOKUP_TIME&lt;br /&gt;
名称解析所消耗的时间&lt;/p&gt;
&lt;p&gt;CURLINFO_CONNECT_TIME&lt;br /&gt;
建立连接所消耗的时间&lt;/p&gt;
&lt;p&gt;CURLINFO_PRETRANSFER_TIME&lt;br /&gt;
从建立连接到准备传输所使用的时间&lt;/p&gt;
&lt;p&gt;CURLINFO_STARTTRANSFER_TIME&lt;br /&gt;
从建立连接到传输开始所使用的时间&lt;/p&gt;
&lt;p&gt;CURLINFO_REDIRECT_TIME&lt;br /&gt;
在事务传输开始前重定向所使用的时间&lt;/p&gt;
&lt;p&gt;CURLINFO_SIZE_UPLOAD&lt;br /&gt;
上传数据量的总值&lt;/p&gt;
&lt;p&gt;CURLINFO_SIZE_DOWNLOAD&lt;br /&gt;
下载数据量的总值&lt;/p&gt;
&lt;p&gt;CURLINFO_SPEED_DOWNLOAD&lt;br /&gt;
平均下载速度&lt;/p&gt;
&lt;p&gt;CURLINFO_SPEED_UPLOAD&lt;br /&gt;
平均上传速度&lt;/p&gt;
&lt;p&gt;CURLINFO_HEADER_SIZE&lt;br /&gt;
header部分的大小&lt;/p&gt;
&lt;p&gt;CURLINFO_HEADER_OUT&lt;br /&gt;
发送请求的字符串&lt;/p&gt;
&lt;p&gt;CURLINFO_REQUEST_SIZE&lt;br /&gt;
在HTTP请求中有问题的请求的大小&lt;/p&gt;
&lt;p&gt;CURLINFO_SSL_VERIFYRESULT&lt;br /&gt;
Result of SSL certification verification requested by setting CURLOPT_SSL_VERIFYPEER&lt;/p&gt;
&lt;p&gt;CURLINFO_CONTENT_LENGTH_DOWNLOAD&lt;br /&gt;
从Content-Length: field中读取的下载内容长度&lt;/p&gt;
&lt;p&gt;CURLINFO_CONTENT_LENGTH_UPLOAD&lt;br /&gt;
上传内容大小的说明&lt;/p&gt;
&lt;p&gt;CURLINFO_CONTENT_TYPE&lt;br /&gt;
下载内容的“Content-type”值，NULL表示服务器没有发送有效的“Content-Type: header”&lt;/p&gt;
&lt;p&gt;curl_setopt()函数的作用是为一个curl设置会话参数。curl_setopt_array()函数的作用是以数组的形式为一个curl设置会话参数。&lt;/p&gt;
&lt;div class=&quot;hl-surround&quot;&gt;
&lt;div class=&quot;hl-main&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: gray;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;$ch&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt; = &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;curl_init&lt;/span&gt;&lt;span style=&quot;color: olive;&quot;&gt;()&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;;&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;$fp&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt; = &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;fopen&lt;/span&gt;&lt;span style=&quot;color: olive;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;“&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;example_homepage.txt&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;“&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;“&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;w&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;“&lt;/span&gt;&lt;span style=&quot;color: olive;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;;&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;curl_setopt&lt;/span&gt;&lt;span style=&quot;color: olive;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;$ch&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;CURLOPT_FILE&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;$fp&lt;/span&gt;&lt;span style=&quot;color: olive;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;;&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;$options&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt; = &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;array&lt;/span&gt;&lt;span style=&quot;color: olive;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;CURLOPT_URL&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt; =&amp;gt; &lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;‘&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;http://www.baidu.com/&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;‘&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;,&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;CURLOPT_HEADER&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt; =&amp;gt; &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;false&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: olive;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;;&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;curl_setopt_array&lt;/span&gt;&lt;span style=&quot;color: olive;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;$ch&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;$options&lt;/span&gt;&lt;span style=&quot;color: olive;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;;&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;curl_exec&lt;/span&gt;&lt;span style=&quot;color: olive;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;$ch&lt;/span&gt;&lt;span style=&quot;color: olive;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;;&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;curl_close&lt;/span&gt;&lt;span style=&quot;color: olive;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;$ch&lt;/span&gt;&lt;span style=&quot;color: olive;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;;&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;fclose&lt;/span&gt;&lt;span style=&quot;color: olive;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;$fp&lt;/span&gt;&lt;span style=&quot;color: olive;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;;&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;可设置的参数有：&lt;/p&gt;
&lt;p&gt;CURLOPT_AUTOREFERER&lt;br /&gt;
自动设置header中的referer信息&lt;/p&gt;
&lt;p&gt;CURLOPT_BINARYTRANSFER&lt;br /&gt;
在启用CURLOPT_RETURNTRANSFER时候将获取数据返回&lt;/p&gt;
&lt;p&gt;CURLOPT_COOKIESESSION&lt;br /&gt;
启用时curl会仅仅传递一个session cookie，忽略其他的cookie，默认状况下curl会将所有的cookie返回给服务端。session cookie是指那些用来判断服务器端的session是否有效而存在的cookie。&lt;/p&gt;
&lt;p&gt;CURLOPT_CRLF&lt;br /&gt;
启用时将Unix的换行符转换成回车换行符。&lt;/p&gt;
&lt;p&gt;CURLOPT_DNS_USE_GLOBAL_CACHE&lt;br /&gt;
启用时会启用一个全局的DNS缓存，此项为线程安全的，并且默认为true。&lt;/p&gt;
&lt;p&gt;CURLOPT_FAILONERROR&lt;br /&gt;
显示HTTP状态码，默认行为是忽略编号小于等于400的HTTP信息&lt;/p&gt;
&lt;p&gt;CURLOPT_FILETIME&lt;br /&gt;
启用时会尝试修改远程文档中的信息。结果信息会通过curl_getinfo()函数的CURLINFO_FILETIME选项返回。&lt;/p&gt;
&lt;p&gt;CURLOPT_FOLLOWLOCATION&lt;br /&gt;
启用时会将服务器服务器返回的“Location:”放在header中递归的返回给服务器，使用CURLOPT_MAXREDIRS可以限定递归返回的数量。&lt;/p&gt;
&lt;p&gt;CURLOPT_FORBID_REUSE&lt;br /&gt;
在完成交互以后强迫断开连接，不能重用。&lt;/p&gt;
&lt;p&gt;CURLOPT_FRESH_CONNECT&lt;br /&gt;
强制获取一个新的连接，替代缓存中的连接。&lt;/p&gt;
&lt;p&gt;CURLOPT_FTP_USE_EPRT&lt;br /&gt;
TRUE to use EPRT (and LPRT) when doing active FTP downloads. Use FALSE to disable EPRT and LPRT and use PORT only.&lt;br /&gt;
Added in PHP 5.0.0.&lt;/p&gt;
&lt;p&gt;CURLOPT_FTP_USE_EPSV&lt;br /&gt;
TRUE to first try an EPSV command for FTP transfers before reverting back to PASV. Set to FALSE to disable EPSV.&lt;/p&gt;
&lt;p&gt;CURLOPT_FTPAPPEND&lt;br /&gt;
TRUE to append to the remote file instead of overwriting it.&lt;/p&gt;
&lt;p&gt;CURLOPT_FTPASCII&lt;br /&gt;
An alias of CURLOPT_TRANSFERTEXT. Use that instead.&lt;/p&gt;
&lt;p&gt;CURLOPT_FTPLISTONLY&lt;br /&gt;
TRUE to only list the names of an FTP directory.&lt;/p&gt;
&lt;p&gt;CURLOPT_HEADER&lt;br /&gt;
启用时会将头文件的信息作为数据流输出。&lt;/p&gt;
&lt;p&gt;CURLOPT_HTTPGET&lt;br /&gt;
启用时会设置HTTP的method为GET，因为GET是默认是，所以只在被修改的情况下使用。&lt;/p&gt;
&lt;p&gt;CURLOPT_HTTPPROXYTUNNEL&lt;br /&gt;
启用时会通过HTTP代理来传输。&lt;/p&gt;
&lt;p&gt;CURLOPT_MUTE&lt;br /&gt;
讲curl函数中所有修改过的参数恢复默认值。&lt;/p&gt;
&lt;p&gt;CURLOPT_NETRC&lt;br /&gt;
在连接建立以后，访问~/.netrc文件获取用户名和密码信息连接远程站点。&lt;/p&gt;
&lt;p&gt;CURLOPT_NOBODY&lt;br /&gt;
启用时将不对HTML中的body部分进行输出。&lt;/p&gt;
&lt;p&gt;CURLOPT_NOPROGRESS&lt;br /&gt;
启用时关闭curl传输的进度条，此项的默认设置为true&lt;/p&gt;
&lt;p&gt;CURLOPT_NOSIGNAL&lt;br /&gt;
启用时忽略所有的curl传递给php进行的信号。在SAPI多线程传输时此项被默认打开。&lt;/p&gt;
&lt;p&gt;CURLOPT_POST&lt;br /&gt;
启用时会发送一个常规的POST请求，类型为：application/x-www-form-urlencoded，就像表单提交的一样。&lt;/p&gt;
&lt;p&gt;CURLOPT_PUT&lt;br /&gt;
启用时允许HTTP发送文件，必须同时设置CURLOPT_INFILE和CURLOPT_INFILESIZE&lt;/p&gt;
&lt;p&gt;CURLOPT_RETURNTRANSFER&lt;br /&gt;
讲curl_exec()获取的信息以文件流的形式返回，而不是直接输出。&lt;/p&gt;
&lt;p&gt;CURLOPT_SSL_VERIFYPEER&lt;br /&gt;
FALSE to stop cURL from verifying the peer’s certificate. Alternate certificates to verify against can be specified with the CURLOPT_CAINFO option or a certificate directory can be specified with the CURLOPT_CAPATH option. CURLOPT_SSL_VERIFYHOST may also need to be TRUE or FALSE if CURLOPT_SSL_VERIFYPEER is disabled (it defaults to 2). TRUE by default as of cURL 7.10. Default bundle installed as of cURL 7.10.&lt;/p&gt;
&lt;p&gt;CURLOPT_TRANSFERTEXT&lt;br /&gt;
TRUE to use ASCII mode for FTP transfers. For LDAP, it retrieves data in plain text instead of HTML. On Windows systems, it will not set STDOUT to binary mode.&lt;/p&gt;
&lt;p&gt;CURLOPT_UNRESTRICTED_AUTH&lt;br /&gt;
在使用CURLOPT_FOLLOWLOCATION产生的header中的多个locations中持续追加用户名和密码信息，即使域名已发生改变。&lt;/p&gt;
&lt;p&gt;CURLOPT_UPLOAD&lt;br /&gt;
启用时允许文件传输&lt;/p&gt;
&lt;p&gt;CURLOPT_VERBOSE&lt;br /&gt;
启用时会汇报所有的信息，存放在STDERR或指定的CURLOPT_STDERR中&lt;/p&gt;
&lt;p&gt;CURLOPT_BUFFERSIZE&lt;br /&gt;
每次获取的数据中读入缓存的大小，这个值每次都会被填满。&lt;/p&gt;
&lt;p&gt;CURLOPT_CLOSEPOLICY&lt;br /&gt;
不是CURLCLOSEPOLICY_LEAST_RECENTLY_USED就是CURLCLOSEPOLICY_OLDEST，还存在另外三个，但是curl暂时还不支持。.&lt;/p&gt;
&lt;p&gt;CURLOPT_CONNECTTIMEOUT&lt;br /&gt;
在发起连接前等待的时间，如果设置为0，则不等待。&lt;/p&gt;
&lt;p&gt;CURLOPT_DNS_CACHE_TIMEOUT&lt;br /&gt;
设置在内存中保存DNS信息的时间，默认为120秒。&lt;/p&gt;
&lt;p&gt;CURLOPT_FTPSSLAUTH&lt;br /&gt;
The FTP authentication method (when is activated): CURLFTPAUTH_SSL (try SSL first), CURLFTPAUTH_TLS (try TLS first), or CURLFTPAUTH_DEFAULT (let cURL decide).&lt;/p&gt;
&lt;p&gt;CURLOPT_HTTP_VERSION&lt;br /&gt;
设置curl使用的HTTP协议，CURL_HTTP_VERSION_NONE（让curl自己判断），CURL_HTTP_VERSION_1_0（HTTP/1.0），CURL_HTTP_VERSION_1_1（HTTP/1.1）&lt;/p&gt;
&lt;p&gt;CURLOPT_HTTPAUTH&lt;br /&gt;
使用的HTTP验证方法，可选的值 有：CURLAUTH_BASIC，CURLAUTH_DIGEST，CURLAUTH_GSSNEGOTIATE，CURLAUTH_NTLM，CURLAUTH_ANY，CURLAUTH_ANYSAFE， 可以使用“|”操作符分隔多个值，curl让服务器选择一个支持最好的值，CURLAUTH_ANY等价于CURLAUTH_BASIC | CURLAUTH_DIGEST | CURLAUTH_GSSNEGOTIATE | CURLAUTH_NTLM，CURLAUTH_ANYSAFE等价于CURLAUTH_DIGEST | CURLAUTH_GSSNEGOTIATE | CURLAUTH_NTLM&lt;/p&gt;
&lt;p&gt;CURLOPT_INFILESIZE&lt;br /&gt;
设定上传文件的大小&lt;/p&gt;
&lt;p&gt;CURLOPT_LOW_SPEED_LIMIT&lt;br /&gt;
当传输速度小于CURLOPT_LOW_SPEED_LIMIT时，PHP会根据CURLOPT_LOW_SPEED_TIME来判断是否因太慢而取消传输。&lt;/p&gt;
&lt;p&gt;CURLOPT_LOW_SPEED_TIME&lt;br /&gt;
The number of seconds the transfer should be below CURLOPT_LOW_SPEED_LIMIT for PHP to consider the transfer too slow and abort.&lt;br /&gt;
当传输速度小于CURLOPT_LOW_SPEED_LIMIT时，PHP会根据CURLOPT_LOW_SPEED_TIME来判断是否因太慢而取消传输。&lt;/p&gt;
&lt;p&gt;CURLOPT_MAXCONNECTS&lt;br /&gt;
允许的最大连接数量，超过是会通过CURLOPT_CLOSEPOLICY决定应该停止哪些连接&lt;/p&gt;
&lt;p&gt;CURLOPT_MAXREDIRS&lt;br /&gt;
指定最多的HTTP重定向的数量，这个选项是和CURLOPT_FOLLOWLOCATION一起使用的。&lt;/p&gt;
&lt;p&gt;CURLOPT_PORT&lt;br /&gt;
一个可选的用来指定连接端口的量&lt;/p&gt;
&lt;p&gt;CURLOPT_PROXYAUTH&lt;br /&gt;
The HTTP authentication method(s) to use for the proxy connection. Use the same bitmasks as described in CURLOPT_HTTPAUTH. For proxy authentication, only CURLAUTH_BASIC and CURLAUTH_NTLM are currently supported.&lt;/p&gt;
&lt;p&gt;CURLOPT_PROXYPORT&lt;br /&gt;
The port number of the proxy to connect to. This port number can also be set in CURLOPT_PROXY.&lt;/p&gt;
&lt;p&gt;CURLOPT_PROXYTYPE&lt;br /&gt;
Either CURLPROXY_HTTP (default) or CURLPROXY_SOCKS5.&lt;/p&gt;
&lt;p&gt;CURLOPT_RESUME_FROM&lt;br /&gt;
在恢复传输时传递一个字节偏移量（用来断点续传）&lt;/p&gt;
&lt;p&gt;CURLOPT_SSL_VERIFYHOST&lt;br /&gt;
1 to check the existence of a common name in the SSL peer certificate.&lt;br /&gt;
2 to check the existence of a common name and also verify that it matches the hostname provided.&lt;/p&gt;
&lt;p&gt;CURLOPT_SSLVERSION&lt;br /&gt;
The SSL version (2 or 3) to use. By default PHP will try to determine this itself, although in some cases this must be set manually.&lt;/p&gt;
&lt;p&gt;CURLOPT_TIMECONDITION&lt;br /&gt;
如果在CURLOPT_TIMEVALUE指定的某个时间以后被编辑过，则使用CURL_TIMECOND_IFMODSINCE返回页面，如果没有被修 改过，并且CURLOPT_HEADER为true，则返回一个”304 Not Modified”的header，CURLOPT_HEADER为false，则使用CURL_TIMECOND_ISUNMODSINCE，默认值为 CURL_TIMECOND_IFMODSINCE&lt;/p&gt;
&lt;p&gt;CURLOPT_TIMEOUT&lt;br /&gt;
设置curl允许执行的最长秒数&lt;/p&gt;
&lt;p&gt;CURLOPT_TIMEVALUE&lt;br /&gt;
设置一个CURLOPT_TIMECONDITION使用的时间戳，在默认状态下使用的是CURL_TIMECOND_IFMODSINCE&lt;/p&gt;
&lt;p&gt;CURLOPT_CAINFO&lt;br /&gt;
The name of a file holding one or more certificates to verify the peer with. This only makes sense when used in combination with CURLOPT_SSL_VERIFYPEER.&lt;/p&gt;
&lt;p&gt;CURLOPT_CAPATH&lt;br /&gt;
A directory that holds multiple CA certificates. Use this option alongside CURLOPT_SSL_VERIFYPEER.&lt;/p&gt;
&lt;p&gt;CURLOPT_COOKIE&lt;br /&gt;
设定HTTP请求中“Set-Cookie:”部分的内容。&lt;/p&gt;
&lt;p&gt;CURLOPT_COOKIEFILE&lt;br /&gt;
包含cookie信息的文件名称，这个cookie文件可以是Netscape格式或者HTTP风格的header信息。&lt;/p&gt;
&lt;p&gt;CURLOPT_COOKIEJAR&lt;br /&gt;
连接关闭以后，存放cookie信息的文件名称&lt;/p&gt;
&lt;p&gt;CURLOPT_CUSTOMREQUEST&lt;br /&gt;
A custom request method to use instead of “GET” or “HEAD” when doing a HTTP request. This is useful for doing “DELETE” or other, more obscure HTTP requests. Valid values are things like “GET”, “POST”, “CONNECT” and so on; i.e. Do not enter a whole HTTP request line here. For instance, entering “GET /index.html HTTP/1.0\r\n\r\n” would be incorrect.&lt;br /&gt;
Note: Don’t do this without making sure the server supports the custom request method first.&lt;/p&gt;
&lt;p&gt;CURLOPT_EGBSOCKET&lt;br /&gt;
Like CURLOPT_RANDOM_FILE, except a filename to an Entropy Gathering Daemon socket.&lt;/p&gt;
&lt;p&gt;CURLOPT_ENCODING&lt;br /&gt;
header中“Accept-Encoding: ”部分的内容，支持的编码格式为：”identity”，”deflate”，”gzip”。如果设置为空字符串，则表示支持所有的编码格式&lt;/p&gt;
&lt;p&gt;CURLOPT_FTPPORT&lt;br /&gt;
The value which will be used to get the IP address to use for the FTP “POST” instruction. The “POST” instruction tells the remote server to connect to our specified IP address. The string may be a plain IP address, a hostname, a network interface name (under Unix), or just a plain ‘-’ to use the systems default IP address.&lt;/p&gt;
&lt;p&gt;CURLOPT_INTERFACE&lt;br /&gt;
在外部网络接口中使用的名称，可以是一个接口名，IP或者主机名。&lt;/p&gt;
&lt;p&gt;CURLOPT_KRB4LEVEL&lt;br /&gt;
KRB4(Kerberos 4)安全级别的设置，可以是一下几个值之一：”clear”，”safe”，”confidential”，”private”。默认的值 为”private”，设置为null的时候表示禁用KRB4，现在KRB4安全仅能在FTP传输中使用。&lt;/p&gt;
&lt;p&gt;CURLOPT_POSTFIELDS&lt;br /&gt;
在HTTP中的“POST”操作。如果要传送一个文件，需要一个@开头的文件名&lt;/p&gt;
&lt;p&gt;CURLOPT_PROXY&lt;br /&gt;
设置通过的HTTP代理服务器&lt;/p&gt;
&lt;p&gt;CURLOPT_PROXYUSERPWD&lt;br /&gt;
连接到代理服务器的，格式为“[username]:[password]”的用户名和密码。&lt;/p&gt;
&lt;p&gt;CURLOPT_RANDOM_FILE&lt;br /&gt;
设定存放SSL用到的随机数种子的文件名称&lt;/p&gt;
&lt;p&gt;CURLOPT_RANGE&lt;br /&gt;
设置HTTP传输范围，可以用“X-Y”的形式设置一个传输区间，如果有多个HTTP传输，则使用逗号分隔多个值，形如：”X-Y,N-M”。&lt;/p&gt;
&lt;p&gt;CURLOPT_REFERER&lt;br /&gt;
设置header中”Referer: ” 部分的值。&lt;/p&gt;
&lt;p&gt;CURLOPT_SSL_CIPHER_LIST&lt;br /&gt;
A list of ciphers to use for SSL. For example, RC4-SHA and TLSv1 are valid cipher lists.&lt;/p&gt;
&lt;p&gt;CURLOPT_SSLCERT&lt;br /&gt;
传递一个包含PEM格式证书的字符串。&lt;/p&gt;
&lt;p&gt;CURLOPT_SSLCERTPASSWD&lt;br /&gt;
传递一个包含使用CURLOPT_SSLCERT证书必需的密码。&lt;/p&gt;
&lt;p&gt;CURLOPT_SSLCERTTYPE&lt;br /&gt;
The format of the certificate. Supported formats are “PEM” (default), “DER”, and “ENG”.&lt;/p&gt;
&lt;p&gt;CURLOPT_SSLENGINE&lt;br /&gt;
The identifier for the crypto engine of the private SSL key specified in CURLOPT_SSLKEY.&lt;/p&gt;
&lt;p&gt;CURLOPT_SSLENGINE_DEFAULT&lt;br /&gt;
The identifier for the crypto engine used for asymmetric crypto operations.&lt;/p&gt;
&lt;p&gt;CURLOPT_SSLKEY&lt;br /&gt;
The name of a file containing a private SSL key.&lt;/p&gt;
&lt;p&gt;CURLOPT_SSLKEYPASSWD&lt;br /&gt;
The secret password needed to use the private SSL key specified in CURLOPT_SSLKEY.&lt;br /&gt;
Note: Since this option contains a sensitive password, remember to keep the PHP script it is contained within safe.&lt;/p&gt;
&lt;p&gt;CURLOPT_SSLKEYTYPE&lt;br /&gt;
The key type of the private SSL key specified in CURLOPT_SSLKEY. Supported key types are “PEM” (default), “DER”, and “ENG”.&lt;/p&gt;
&lt;p&gt;CURLOPT_URL&lt;br /&gt;
需要获取的URL地址，也可以在PHP的curl_init()函数中设置。&lt;/p&gt;
&lt;p&gt;CURLOPT_USERAGENT&lt;br /&gt;
在HTTP请求中包含一个”user-agent”头的字符串。&lt;/p&gt;
&lt;p&gt;CURLOPT_USERPWD&lt;br /&gt;
传递一个连接中需要的用户名和密码，格式为：“[username]:[password]”。&lt;/p&gt;
&lt;p&gt;CURLOPT_HTTP200ALIASES&lt;br /&gt;
设置不再以error的形式来处理HTTP 200的响应，格式为一个数组。&lt;/p&gt;
&lt;p&gt;CURLOPT_HTTPHEADER&lt;br /&gt;
设置一个header中传输内容的数组。&lt;/p&gt;
&lt;p&gt;CURLOPT_POSTQUOTE&lt;br /&gt;
An array of FTP commands to execute on the server after the FTP request has been performed.&lt;/p&gt;
&lt;p&gt;CURLOPT_QUOTE&lt;br /&gt;
An array of FTP commands to execute on the server prior to the FTP request.&lt;/p&gt;
&lt;p&gt;CURLOPT_FILE&lt;br /&gt;
设置输出文件的位置，值是一个资源类型，默认为STDOUT (浏览器)。&lt;/p&gt;
&lt;p&gt;CURLOPT_INFILE&lt;br /&gt;
在上传文件的时候需要读取的文件地址，值是一个资源类型。&lt;/p&gt;
&lt;p&gt;CURLOPT_STDERR&lt;br /&gt;
设置一个错误输出地址，值是一个资源类型，取代默认的STDERR。&lt;/p&gt;
&lt;p&gt;CURLOPT_WRITEHEADER&lt;br /&gt;
设置header部分内容的写入的文件地址，值是一个资源类型。&lt;/p&gt;
&lt;p&gt;CURLOPT_HEADERFUNCTION&lt;br /&gt;
设置一个回调函数，这个函数有两个参数，第一个是curl的资源句柄，第二个是输出的header数据。header数据的输出必须依赖这个函数，返回已写入的数据大小。&lt;/p&gt;
&lt;p&gt;CURLOPT_PASSWDFUNCTION&lt;br /&gt;
设置一个回调函数，有三个参数，第一个是curl的资源句柄，第二个是一个密码提示符，第三个参数是密码长度允许的最大值。返回密码的值。&lt;/p&gt;
&lt;p&gt;CURLOPT_READFUNCTION&lt;br /&gt;
设置一个回调函数，有两个参数，第一个是curl的资源句柄，第二个是读取到的数据。数据读取必须依赖这个函数。返回读取数据的大小，比如0或者EOF。&lt;/p&gt;
&lt;p&gt;CURLOPT_WRITEFUNCTION&lt;br /&gt;
设置一个回调函数，有两个参数，第一个是curl的资源句柄，第二个是写入的数据。数据写入必须依赖这个函数。返回精确的已写入数据的大小&lt;/p&gt;
&lt;p&gt;curl_copy_handle()函数的作用是拷贝一个curl连接资源的所有内容和参数&lt;/p&gt;
&lt;div class=&quot;hl-surround&quot;&gt;
&lt;div class=&quot;hl-main&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: gray;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;$ch&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt; = &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;curl_init&lt;/span&gt;&lt;span style=&quot;color: olive;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;“&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;http://www.baidu.com/&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;“&lt;/span&gt;&lt;span style=&quot;color: olive;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;;&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;$another&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt; = &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;curl_copy_handle&lt;/span&gt;&lt;span style=&quot;color: olive;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;$ch&lt;/span&gt;&lt;span style=&quot;color: olive;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;;&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;curl_exec&lt;/span&gt;&lt;span style=&quot;color: olive;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;$another&lt;/span&gt;&lt;span style=&quot;color: olive;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;;&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;curl_close&lt;/span&gt;&lt;span style=&quot;color: olive;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;$another&lt;/span&gt;&lt;span style=&quot;color: olive;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;;&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;curl_error()函数的作用是返回一个包含当前会话错误信息的字符串。&lt;br /&gt;
curl_errno()函数的作用是返回一个包含当前会话错误信息的数字编号。&lt;/p&gt;
&lt;p&gt;curl_multi_init()函数的作用是初始化一个curl批处理句柄资源。&lt;br /&gt;
curl_multi_add_handle()函数的作用是向curl批处理会话中添加单独的curl句柄资源。curl_multi_add_handle()函数有两个参数，第一个参数表示一个curl批处理句柄资源，第二个参数表示一个单独的curl句柄资源。&lt;br /&gt;
curl_multi_exec()函数的作用是解析一个curl批处理句柄，curl_multi_exec()函数有两个参数，第一个参数表示一个批处理句柄资源，第二个参数是一个引用值的参数，表示剩余需要处理的单个的curl句柄资源数量。&lt;br /&gt;
curl_multi_remove_handle()函数表示移除curl批处理句柄资源中的某个句柄资源，curl_multi_remove_handle()函数有两个参数，第一个参数表示一个curl批处理句柄资源，第二个参数表示一个单独的curl句柄资源。&lt;br /&gt;
curl_multi_close()函数的作用是关闭一个批处理句柄资源。&lt;/p&gt;
&lt;div class=&quot;hl-surround&quot;&gt;
&lt;div class=&quot;hl-main&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: gray;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;$ch1&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt; = &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;curl_init&lt;/span&gt;&lt;span style=&quot;color: olive;&quot;&gt;()&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;;&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;$ch2&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt; = &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;curl_init&lt;/span&gt;&lt;span style=&quot;color: olive;&quot;&gt;()&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;;&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;curl_setopt&lt;/span&gt;&lt;span style=&quot;color: olive;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;$ch1&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;CURLOPT_URL&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;“&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;http://www.baidu.com/&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;“&lt;/span&gt;&lt;span style=&quot;color: olive;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;;&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;curl_setopt&lt;/span&gt;&lt;span style=&quot;color: olive;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;$ch1&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;CURLOPT_HEADER&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: olive;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;;&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;curl_setopt&lt;/span&gt;&lt;span style=&quot;color: olive;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;$ch2&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;CURLOPT_URL&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;“&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;http://www.google.com/&lt;/span&gt;&lt;span style=&quot;color: #8b0000;&quot;&gt;“&lt;/span&gt;&lt;span style=&quot;color: olive;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;;&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;curl_setopt&lt;/span&gt;&lt;span style=&quot;color: olive;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;$ch2&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;CURLOPT_HEADER&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: olive;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;;&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;$mh&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt; = &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;curl_multi_init&lt;/span&gt;&lt;span style=&quot;color: olive;&quot;&gt;()&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;;&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;curl_multi_add_handle&lt;/span&gt;&lt;span style=&quot;color: olive;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;$mh&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;$ch1&lt;/span&gt;&lt;span style=&quot;color: olive;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;;&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;curl_multi_add_handle&lt;/span&gt;&lt;span style=&quot;color: olive;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;$mh&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;$ch2&lt;/span&gt;&lt;span style=&quot;color: olive;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;;&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;do&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: olive;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;curl_multi_exec&lt;/span&gt;&lt;span style=&quot;color: olive;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;$mh&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;$flag&lt;/span&gt;&lt;span style=&quot;color: olive;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;;&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: olive;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;while&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: olive;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;$flag&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt; &amp;gt; &lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: olive;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;;&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;curl_multi_remove_handle&lt;/span&gt;&lt;span style=&quot;color: olive;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;$mh&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;$ch1&lt;/span&gt;&lt;span style=&quot;color: olive;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;;&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;curl_multi_remove_handle&lt;/span&gt;&lt;span style=&quot;color: olive;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;$mh&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;$ch2&lt;/span&gt;&lt;span style=&quot;color: olive;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;;&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;curl_multi_close&lt;/span&gt;&lt;span style=&quot;color: olive;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #00008b;&quot;&gt;$mh&lt;/span&gt;&lt;span style=&quot;color: olive;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;;&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;curl_multi_getcontent()函数的作用是在设置了CURLOPT_RETURNTRANSFER的情况下，返回获取的输出的文本流。&lt;/p&gt;
&lt;p&gt;curl_multi_info_read()函数的作用是获取当前解析的curl的相关传输信息。&lt;/p&gt;
&lt;p&gt;curl_multi_select()&lt;br /&gt;
Get all the sockets associated with the cURL extension, which can then be “selected”&lt;/p&gt;
&lt;p&gt;例子：&lt;br /&gt;
&lt;a href=&quot;http://developer.51cto.com/art/200904/121739.htm&quot;&gt;http://developer.51cto.com/art/200904/121739.html&lt;/a&gt;&lt;/p&gt;
&lt;div class=&quot;zemanta-pixie&quot;&gt;&lt;img class=&quot;zemanta-pixie-img&quot; src=&quot;http://img.zemanta.com/pixy.gif?x-id=60ac96ea-bb00-898c-bd63-46959ead120d&quot; alt=&quot;&quot; /&gt;&lt;/div&gt;
&lt;h3  class=&quot;related_post_title&quot;&gt;也许你会喜欢&lt;/h3&gt;&lt;ul class=&quot;related_post&quot;&gt;&lt;li&gt;&lt;a href=&quot;http://www.yigle.net/2009/11/win32-curl.html&quot; title=&quot;win32下使用curl&quot;&gt;win32下使用curl&lt;/a&gt; (0)&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.yigle.net/2008/11/css-hacks-feedback.html&quot; title=&quot;Css Hack&quot;&gt;Css Hack&lt;/a&gt; (0)&lt;/li&gt;&lt;/ul&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/339691566/yigle/feedsky/s.gif?r=http://www.yigle.net/2009/11/php-curl.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/yigle/339691566/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/yigle/339691566/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</content:encoded><wfw:commentRss>http://www.yigle.net/2009/11/php-curl.html/feed</wfw:commentRss><slash:comments>0</slash:comments><description>目前为目最全的CURL中文说明了,采集用到，原出处不详&amp;#8230;
PHP中的CURL函数库（Client URL Library Function）
curl_close — 关闭一个curl会话
curl_copy_handle — 拷贝一个curl连接资源的所有内容和参数&lt;img src=&quot;http://www1.feedsky.com/t1/339691566/yigle/feedsky/s.gif?r=http://www.yigle.net/2009/11/php-curl.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/yigle/339691566/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/yigle/339691566/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><category>参考</category><category>PHP</category><category>转载</category><category>采集</category><category>curl</category><pubDate>Mon, 16 Nov 2009 21:31:46 +0800</pubDate><author>rong179</author><comments>http://www.yigle.net/2009/11/php-curl.html#comments</comments><guid isPermaLink="false">http://www.yigle.net/2009/11/php-curl.html</guid><dc:creator>rong179</dc:creator><fs:srclink>http://www.yigle.net/2009/11/php-curl.html</fs:srclink><fs:srcfeed>http://www.yigle.net/feed</fs:srcfeed><fs:itemid>feedsky/yigle/~7882683/339691566/5992322</fs:itemid></item></channel></rss>