﻿<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>龙岩小子博客-专注龙岩网站建设,龙岩SEO,龙岩做网站,龙岩网站优化</title>
	<atom:link href="http://www.0597seo.com/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.0597seo.com</link>
	<description>龙岩网站建设,龙岩SEO,龙岩最大网络公司,龙岩小子</description>
	<lastBuildDate>Sun, 20 May 2012 03:15:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>手机号码归属地数据库查询API</title>
		<link>http://www.0597seo.com/?p=1908</link>
		<comments>http://www.0597seo.com/?p=1908#comments</comments>
		<pubDate>Sun, 20 May 2012 03:13:25 +0000</pubDate>
		<dc:creator>lyboy</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[龙岩seo]]></category>

		<guid isPermaLink="false">http://www.0597seo.com/?p=1908</guid>
		<description><![CDATA[手机号码归属地数据库API提供了查询手机号码归属地的服务接口。 1. 基于 form 形式（打开完整页面） 这种形式占用页面的空间小，查询的时候会打开新窗口。代码如下： 2. 基于 超链接 形式 http://appyun.sinaapp.com/index.php?app=mobile&#38;controller=index&#38;action=init&#38;mobile=13800138000 3. 基于 WebService 形式 返回XML形式的查询结果 http://appyun.sinaapp.com/index.php?app=mobile&#38;controller=index&#38;action=api&#38;mobile=13800138000&#38;outfmt=xml 返回JSON形式的查询结果 http://appyun.sinaapp.com/index.php?app=mobile&#38;controller=index&#38;action=api&#38;mobile=13800138000&#38;outfmt=json 返回JSON带回调函数形式的查询结果   http://appyun.sinaapp.com/index.php?app=mobile&#38;controller=index&#38;action=api&#38;mobile=13800138000&#38;outfmt=json&#38;callback=querycallback 返回普通文本形式的查询结果   http://appyun.sinaapp.com/index.php?app=mobile&#38;controller=index&#38;action=api&#38;mobile=13800138000&#38;outfmt=text &#160;]]></description>
			<content:encoded><![CDATA[<p><span style="color: #000000;"><span style="font-family: Verdana, 宋体;"><span>手机号码归属地数据库API提供了查询手机号码归属地的服务接口。</span></span></span><br />
<strong><strong><strong>1. 基于 form 形式（打开完整页面）</strong></strong></strong></p>
<div align="left">这种形式占用页面的空间小，查询的时候会打开新窗口。代码如下：</div>
<div align="left">
<pre class="brush: php; title: ; notranslate">&lt;/div&gt;
&lt;div align=&quot;left&quot;&gt;

&lt;form action=&quot;http://appyun.sinaapp.com/&quot; method=&quot;GET&quot; target=&quot;_blank&quot;&gt;
&lt;input type=&quot;hidden&quot; name=&quot;app&quot; value=&quot;mobile&quot;/&gt;
&lt;input type=&quot;text&quot; name=&quot;mobile&quot; value=&quot;请输入手机号码&quot; onclick=this.value=&quot;&quot; /&gt;
&lt;input type=&quot;submit&quot; value=&quot;查询&quot; /&gt;
&lt;/form&gt;
</pre>
<p><strong><strong><strong>2. 基于 超链接 形式</strong></strong></strong></pre>
<div align="left"><a href="http://appyun.sinaapp.com/index.php?app=mobile&amp;controller=index&amp;action=init&amp;mobile=13800138000" target="_blank">http://appyun.sinaapp.com/index.php?app=mobile&amp;controller=index&amp;action=init&amp;mobile=13800138000</a></div>
<pre>
<strong><strong><strong>3. 基于 WebService 形式</strong></strong></strong></pre>
<div align="left">返回XML形式的查询结果 <a href="http://appyun.sinaapp.com/index.php?app=mobile&amp;controller=index&amp;action=api&amp;mobile=13800138000&amp;outfmt=xml" target="_blank">http://appyun.sinaapp.com/index.php?app=mobile&amp;controller=index&amp;action=api&amp;mobile=13800138000&amp;outfmt=xml</a></div>
</div>
<div align="left"></div>
<div align="left">
<pre class="brush: php; title: ; notranslate">&lt;/div&gt;
&lt;div align=&quot;left&quot;&gt;

&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; ?&gt;
&lt;QueryResponse xmlns=&quot;http://appyun.sinaapp.com/&quot;&gt;
 &lt;Mobile&gt;13800138000&lt;/Mobile&gt;
 &lt;QueryResult&gt;True&lt;/QueryResult&gt;
 &lt;Province&gt;北京&lt;/Province&gt;
 &lt;City&gt;北京&lt;/City&gt;
 &lt;AreaCode&gt;010&lt;/AreaCode&gt;
 &lt;PostCode&gt;100000&lt;/PostCode&gt;
 &lt;Operators&gt;中国移动&lt;/Operators&gt;
 &lt;Card&gt;GSM&lt;/Card&gt;
&lt;/QueryResponse&gt;
</pre>
<p>返回JSON形式的查询结果</p>
<div align="left"><a href="http://appyun.sinaapp.com/index.php?app=mobile&amp;controller=index&amp;action=api&amp;mobile=13800138000&amp;outfmt=json" target="_blank">http://appyun.sinaapp.com/index.php?app=mobile&amp;controller=index&amp;action=api&amp;mobile=13800138000&amp;outfmt=json</a></div>
<div align="left"></div>
<div align="left">
<pre class="brush: php; title: ; notranslate">&lt;/div&gt;
&lt;div align=&quot;left&quot;&gt;{&quot;Mobile&quot;:&quot;13800138000&quot;,&quot;Province&quot;:&quot;\u5317\u4eac&quot;,&quot;City&quot;:&quot;\u5317\u4eac&quot;,&quot;AreaCode&quot;:&quot;010&quot;,&quot;PostCode&quot;:&quot;100000&quot;,&quot;Operators&quot;:&quot;\u4e2d\u56fd\u79fb\u52a8&quot;,&quot;Card&quot;:&quot;GSM&quot;}&lt;/div&gt;
&lt;div align=&quot;left&quot;&gt;</pre>
</div>
<div align="left"></div>
<div align="left">返回JSON带回调函数形式的查询结果   <a href="http://appyun.sinaapp.com/index.php?app=mobile&amp;controller=index&amp;action=api&amp;mobile=13800138000&amp;outfmt=json&amp;callback=querycallback" target="_blank">http://appyun.sinaapp.com/index.php?app=mobile&amp;controller=index&amp;action=api&amp;mobile=13800138000&amp;outfmt=json&amp;callback=querycallback</a></div>
<div align="left"></div>
<div align="left">
<pre class="brush: php; title: ; notranslate">&lt;/div&gt;
&lt;div align=&quot;left&quot;&gt;querycallback({&quot;Mobile&quot;:&quot;13800138000&quot;,&quot;Province&quot;:&quot;\u5317\u4eac&quot;,&quot;City&quot;:&quot;\u5317\u4eac&quot;,&quot;AreaCode&quot;:&quot;010&quot;,&quot;PostCode&quot;:&quot;100000&quot;,&quot;Operators&quot;:&quot;\u4e2d\u56fd\u79fb\u52a8&quot;,&quot;Card&quot;:&quot;GSM&quot;})&lt;/div&gt;
&lt;div align=&quot;left&quot;&gt;</pre>
</div>
<div align="left"></div>
<div align="left">返回普通文本形式的查询结果   <a href="http://appyun.sinaapp.com/index.php?app=mobile&amp;controller=index&amp;action=api&amp;mobile=13800138000&amp;outfmt=text" target="_blank">http://appyun.sinaapp.com/index.php?app=mobile&amp;controller=index&amp;action=api&amp;mobile=13800138000&amp;outfmt=text</a></div>
<div align="left"></div>
<div align="left">
<pre class="brush: php; title: ; notranslate">&lt;/div&gt;
&lt;div align=&quot;left&quot;&gt;

Mobile:13800138000
QueryResult:True
Province:北京
City:北京
AreaCode:010
PostCode:100000
Operators:中国移动
Card:GSM
</pre>
</div>
<p>&nbsp;</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.0597seo.com/?feed=rss2&#038;p=1908</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>网易有道IP,身份证号,手机号归属地API查询接口</title>
		<link>http://www.0597seo.com/?p=1906</link>
		<comments>http://www.0597seo.com/?p=1906#comments</comments>
		<pubDate>Sun, 20 May 2012 02:59:19 +0000</pubDate>
		<dc:creator>lyboy</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.0597seo.com/?p=1906</guid>
		<description><![CDATA[网易有道IP,身份证号, 手机号归属地API查询接口 http://www.youdao.com/smartresult-xml/search.s?type=ip&#038;q=ip地址 GET后返回XML数据, 包含原IP及归属地. 此外type还可以: mobile(手机号), id(身份证). 尚未发现有限制 网易有道mobile(手机号)： http://www.youdao.com/smartresult-xml/search.s?type=mobile&#038;q=手机号码 网易有道id(身份证)： http://www.youdao.com/smartresult-xml/search.s?type=id&#038;q=身份证号 附上PHP代码吧： function ip_location($ip) { $u = “http://www.youdao.com/smartresult-xml/search.s?type=ip&#38;q={$ip}”; $r = utility::HttpRequest($u); preg_match(“#&#60;location&#62;(.+)&#60;/location&#62;#Ui”, $r, $m); return strval($m[1]); } 网易有道IP,身份证号,手机号归属地API查询接口还不错吧，xml格式，当然这些接口很多，你也可以换其他的。]]></description>
			<content:encoded><![CDATA[<p>网易有道IP,身份证号, 手机号归属地API查询接口</p>
<p>http://www.youdao.com/smartresult-xml/search.s?type=ip&#038;q=ip地址</p>
<p>GET后返回XML数据, 包含原IP及归属地.</p>
<p>此外type还可以: mobile(手机号), id(身份证). 尚未发现有限制</p>
<p>网易有道mobile(手机号)：</p>
<p>http://www.youdao.com/smartresult-xml/search.s?type=mobile&#038;q=手机号码</p>
<p>网易有道id(身份证)：</p>
<p>http://www.youdao.com/smartresult-xml/search.s?type=id&#038;q=身份证号</p>
<p>附上<span class='wp_keywordlink_affiliate'><a href="http://www.0597seo.com/?tag=php" title="查看 PHP 中的全部文章" target="_blank">PHP</a></span>代码吧：</p>
<p>function ip_location($ip) {<br />
$u = “http://www.youdao.com/smartresult-xml/search.s?type=ip&amp;q={$ip}”;<br />
$r = utility::HttpRequest($u);<br />
preg_match(“#&lt;location&gt;(.+)&lt;/location&gt;#Ui”, $r, $m);<br />
return strval($m[1]);<br />
}</p>
<p>网易有道IP,身份证号,手机号归属地API查询接口还不错吧，xml格式，当然这些接口很多，你也可以换其他的。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.0597seo.com/?feed=rss2&#038;p=1906</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux crontab 命令格式与详细例子</title>
		<link>http://www.0597seo.com/?p=1903</link>
		<comments>http://www.0597seo.com/?p=1903#comments</comments>
		<pubDate>Sat, 19 May 2012 08:17:59 +0000</pubDate>
		<dc:creator>lyboy</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.0597seo.com/?p=1903</guid>
		<description><![CDATA[基本格式 : *　　*　　*　　*　　*　　command 分　时　日　月　周　命令 第1列表示分钟1～59 每分钟用*或者 */1表示 第2列表示小时1～23（0表示0点） 第3列表示日期1～31 第4列表示月份1～12 第5列标识号星期0～6（0表示星期天） 第6列要运行的命令 crontab文件的一些例子： 30 21 * * * /usr/local/etc/rc.d/lighttpd restart 上面的例子表示每晚的21:30重启apache。 45 4 1,10,22 * * /usr/local/etc/rc.d/lighttpd restart 上面的例子表示每月1、10、22日的4 : 45重启apache。 10 1 * * 6,0 /usr/local/etc/rc.d/lighttpd restart 上面的例子表示每周六、周日的1 : 10重启apache。 0,30 18-23 * * * /usr/local/etc/rc.d/lighttpd restart 上面的例子表示在每天18 : 00至23 : 00之间每隔30分钟重启apache。 0 23 [...]]]></description>
			<content:encoded><![CDATA[<p>基本格式 :<br />
*　　*　　*　　*　　*　　command<br />
分　时　日　月　周　命令</p>
<p>第1列表示分钟1～59 每分钟用*或者 */1表示<br />
第2列表示小时1～23（0表示0点）<br />
第3列表示日期1～31<br />
第4列表示月份1～12<br />
第5列标识号星期0～6（0表示星期天）<br />
第6列要运行的命令</p>
<p>crontab文件的一些例子：</p>
<p>30 21 * * * /usr/local/etc/rc.d/lighttpd restart<br />
上面的例子表示每晚的21:30重启apache。</p>
<p>45 4 1,10,22 * * /usr/local/etc/rc.d/lighttpd restart<br />
上面的例子表示每月1、10、22日的4 : 45重启apache。</p>
<p>10 1 * * 6,0 /usr/local/etc/rc.d/lighttpd restart<br />
上面的例子表示每周六、周日的1 : 10重启apache。</p>
<p>0,30 18-23 * * * /usr/local/etc/rc.d/lighttpd restart<br />
上面的例子表示在每天18 : 00至23 : 00之间每隔30分钟重启apache。</p>
<p>0 23 * * 6 /usr/local/etc/rc.d/lighttpd restart<br />
上面的例子表示每星期六的11 : 00 pm重启apache。</p>
<p>* */1 * * * /usr/local/etc/rc.d/lighttpd restart<br />
每一小时重启apache</p>
<p>* 23-7/1 * * * /usr/local/etc/rc.d/lighttpd restart<br />
晚上11点到早上7点之间，每隔一小时重启apache</p>
<p>0 11 4 * mon-wed /usr/local/etc/rc.d/lighttpd restart<br />
每月的4号与每周一到周三的11点重启apache</p>
<p>0 4 1 jan * /usr/local/etc/rc.d/lighttpd restart<br />
一月一号的4点重启apache</p>
<p>&nbsp;</p>
<p>名称 : crontab</p>
<p>使用权限 : 所有使用者</p>
<p>使用方式 :</p>
<p>crontab file [-u user]-用指定的文件替代目前的crontab。</p>
<p>crontab-[-u user]-用标准输入替代目前的crontab.</p>
<p>crontab-1[user]-列出用户目前的crontab.</p>
<p>crontab-e[user]-编辑用户目前的crontab.</p>
<p>crontab-d[user]-删除用户目前的crontab.</p>
<p>crontab-c dir- 指定crontab的目录。</p>
<p>crontab文件的格式：M H D m d cmd.</p>
<p>&nbsp;</p>
<p>M: 分钟（0-59）。</p>
<p>H：小时（0-23）。</p>
<p>D：天（1-31）。</p>
<p>m: 月（1-12）。</p>
<p>d: 一星期内的天（0~6，0为星期天）。</p>
<p>cmd要运行的程序，程序被送入sh执行，这个shell只有USER,HOME,SHELL这三个环境变量</p>
<p>说明 :</p>
<p>crontab 是用来让使用者在固定时间或固定间隔执行程序之用，换句话说，也就是类似使用者的时程表。-u user 是指设定指定</p>
<p>user 的时程表，这个前提是你必须要有其权限(比如说是 root)才能够指定他人的时程表。如果不使用 -u user 的话，就是表示设</p>
<p>定自己的时程表。</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>参数 :</p>
<p>crontab -e : 执行文字编辑器来设定时程表，内定的文字编辑器是 VI，如果你想用别的文字编辑器，则请先设定 VISUAL 环境变数</p>
<p>来指定使用那个文字编辑器(比如说 setenv VISUAL joe)</p>
<p>crontab -r : 删除目前的时程表</p>
<p>crontab -l : 列出目前的时程表</p>
<p>crontab file [-u user]-用指定的文件替代目前的crontab。</p>
<p>时程表的格式如下 :</p>
<p>f1 f2 f3 f4 f5 program</p>
<p>其中 f1 是表示分钟，f2 表示小时，f3 表示一个月份中的第几日，f4 表示月份，f5 表示一个星期中的第几天。program 表示要执</p>
<p>行的程序。</p>
<p>当 f1 为 * 时表示每分钟都要执行 program，f2 为 * 时表示每小时都要执行程序，其馀类推</p>
<p>当 f1 为 a-b 时表示从第 a 分钟到第 b 分钟这段时间内要执行，f2 为 a-b 时表示从第 a 到第 b 小时都要执行，其馀类推</p>
<p>当 f1 为 */n 时表示每 n 分钟个时间间隔执行一次，f2 为 */n 表示每 n 小时个时间间隔执行一次，其馀类推</p>
<p>当 f1 为 a, b, c,&#8230; 时表示第 a, b, c,&#8230; 分钟要执行，f2 为 a, b, c,&#8230; 时表示第 a, b, c&#8230;个小时要执行，其馀类推</p>
<p>使用者也可以将所有的设定先存放在档案 file 中，用 crontab file 的方式来设定时程表。</p>
<p>例子 :</p>
<p>#每天早上7点执行一次 /bin/ls :</p>
<p>0 7 * * * /bin/ls</p>
<p>在 12 月内, 每天的早上 6 点到 12 点中，每隔3个小时执行一次 /usr/bin/backup :</p>
<p>0 6-12/3 * 12 * /usr/bin/backup</p>
<p>周一到周五每天下午 5:00 寄一封信给 alex@domain.name :</p>
<p>0 17 * * 1-5 mail -s “hi” alex@domain.name &lt; /tmp/maildata</p>
<p>每月每天的午夜 0 点 20 分, 2 点 20 分, 4 点 20 分&#8230;.执行 echo “haha”</p>
<p>20 0-23/2 * * * echo “haha”</p>
<p>注意 :</p>
<p>当程序在你所指定的时间执行后，系统会寄一封信给你，显示该程序执行的内容，若是你不希望收到这样的信，请在每一行空一格之</p>
<p>后加上 &gt; /dev/null 2&gt;&amp;1 即可</p>
<p>&nbsp;</p>
<p>例子2 :</p>
<p>#每天早上6点10分</p>
<p>10 6 * * * date</p>
<p>#每两个小时</p>
<p>0 */2 * * * date</p>
<p>#晚上11点到早上8点之间每两个小时，早上8点</p>
<p>0 23-7/2，8 * * * date</p>
<p>#每个月的4号和每个礼拜的礼拜一到礼拜三的早上11点</p>
<p>0 11 4 * mon-wed date</p>
<p>#1月份日早上4点</p>
<p>0 4 1 jan * date</p>
<p>范例</p>
<p>$crontab -l 列出用户目前的crontab.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.0597seo.com/?feed=rss2&#038;p=1903</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>5pv.cn短网址工具</title>
		<link>http://www.0597seo.com/?p=1901</link>
		<comments>http://www.0597seo.com/?p=1901#comments</comments>
		<pubDate>Mon, 07 May 2012 13:41:37 +0000</pubDate>
		<dc:creator>lyboy</dc:creator>
				<category><![CDATA[工作笔记]]></category>
		<category><![CDATA[短网址api]]></category>

		<guid isPermaLink="false">http://www.0597seo.com/?p=1901</guid>
		<description><![CDATA[5pv.cn是非常优秀的短网址工具，能否分享、监测您的链接,同时提供开放API接口。 API接口说明：http://www.5pv.cn/WebUser/ApiHelp 支持GET和POST方式。 以下示例是我通过POST方式结合Snoopy类进行： function urlShort($urlLong = ”) { $appkey=&#8217;RUIyQ0U5NDNEREYzQzBC&#8217;; $secret=&#8217;Q0ZFREQxQzIxRTA3NkQ5&#8242;; import(&#8216;ORG.Net.Snoopy&#8217;); $sn=new Snoopy(); $data['appkey']=$appkey; $data['timestamp']=getMsec(); $data['sign']=md5($appkey . $secret . $data['timestamp']); $data['url'] = $urlLong; $sn-&#62;submit (&#8216;http://api.5pv.cn/5pvApi/Create&#8217;,$data); $dwz = $sn-&#62;results; $dwz=str_replace(&#8217;0&#8242;,”,$dwz); $dwz=preg_replace(&#8216;/\s/&#8217;,”,$dwz); return &#8216;http://5pv.cn/&#8217; . substr($dwz,3,strlen($dwz)); } /** * 得到当前毫秒数 * * @package controller * @author lixuanbin * @version 1.0 * @param null * @return null [...]]]></description>
			<content:encoded><![CDATA[<p>5pv.cn是非常优秀的短网址工具，能否分享、监测您的链接,同时提供开放API接口。</p>
<p>API接口说明：<a href="http://www.5pv.cn/WebUser/ApiHelp">http://www.5pv.cn/WebUser/ApiHelp</a></p>
<p>支持GET和POST方式。</p>
<p>以下示例是我通过POST方式结合Snoopy类进行：</p>
<p>function urlShort($urlLong = ”) {<br />
$appkey=&#8217;RUIyQ0U5NDNEREYzQzBC&#8217;;<br />
$secret=&#8217;Q0ZFREQxQzIxRTA3NkQ5&#8242;;<br />
import(&#8216;ORG.Net.Snoopy&#8217;);<br />
$sn=new Snoopy();<br />
$data['appkey']=$appkey;<br />
$data['timestamp']=getMsec();<br />
$data['sign']=md5($appkey . $secret . $data['timestamp']);<br />
$data['url'] = $urlLong;<br />
$sn-&gt;submit (&#8216;http://api.5pv.cn/5pvApi/Create&#8217;,$data);<br />
$dwz = $sn-&gt;results;<br />
$dwz=str_replace(&#8217;0&#8242;,”,$dwz);<br />
$dwz=preg_replace(&#8216;/\s/&#8217;,”,$dwz);<br />
return &#8216;http://5pv.cn/&#8217; . substr($dwz,3,strlen($dwz));<br />
}</p>
<p>/**<br />
* 得到当前毫秒数<br />
*<br />
* @package controller<br />
* @author lixuanbin<br />
* @version 1.0<br />
* @param null<br />
* @return null<br />
*/<br />
function getMsec()<br />
{<br />
list($usec, $sec) = explode(” “, microtime());<br />
return (((float)$usec + (float)$sec)) * 1000;<br />
}</p>
]]></content:encoded>
			<wfw:commentRss>http://www.0597seo.com/?feed=rss2&#038;p=1901</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>短网址API</title>
		<link>http://www.0597seo.com/?p=1898</link>
		<comments>http://www.0597seo.com/?p=1898#comments</comments>
		<pubDate>Mon, 07 May 2012 03:14:09 +0000</pubDate>
		<dc:creator>lyboy</dc:creator>
				<category><![CDATA[工作笔记]]></category>
		<category><![CDATA[短网址api]]></category>

		<guid isPermaLink="false">http://www.0597seo.com/?p=1898</guid>
		<description><![CDATA[短网址服务可以帮助你把一个长网址缩短，方便你在社交网络和微博上分享链接。 例如，你可以把这样一个长网址 . 怎样调用百度短网址API？ 生成短网址 请求：向dwz.cn/create.php发送post请求，发送数据包括url=长网址 返回：json格式的数据 status!=0 出错，查看err_msg获得错误信息（UTF-8编码） 成功，返回生成的短网址 tinyurl字段 自定义短网址 请求：向dwz.cn/create.php发送post请求，发送数据包括url=长网址&#38;alias=自定义网址 返回：json格式的数据 Status!=0 出错，查看err_msg获得错误信息（UTF-8编码） 成功，返回生成的短网址 tinyurl字段 显示原网址 请求：向dwz.cn/query.php发送post请求，发送数据包括tinyurl=查询的短地址 返回：json格式的数据 status!=0 出错，查看err_msg获得错误信息（UTF-8编码） 成功，返回原网址 longurl字段 &#160; 更多信息查看百度短网址帮助：http://www.baidu.com/search/dwz.html]]></description>
			<content:encoded><![CDATA[<p>短网址服务可以帮助你把一个长网址缩短，方便你在社交网络和微博上分享链接。<br />
例如，你可以把这样一个长网址 .</p>
<p><strong><span style="color: #ff0000;">怎样调用百度短网址API？</span></strong><br />
<span style="color: #ff0000;">生成短网址</span><br />
请求：向dwz.cn/create.php发送post请求，发送数据包括url=长网址<br />
返回：json格式的数据<br />
status!=0 出错，查看err_msg获得错误信息（UTF-8编码）<br />
成功，返回生成的短网址 tinyurl字段</p>
<p><span style="color: #ff0000;">自定义短网址</span><br />
请求：向dwz.cn/create.php发送post请求，发送数据包括url=长网址&amp;alias=自定义网址<br />
返回：json格式的数据<br />
Status!=0 出错，查看err_msg获得错误信息（UTF-8编码）<br />
成功，返回生成的短网址 tinyurl字段</p>
<p><span style="color: #ff0000;">显示原网址</span><br />
请求：向dwz.cn/query.php发送post请求，发送数据包括tinyurl=查询的短地址<br />
返回：json格式的数据<br />
status!=0 出错，查看err_msg获得错误信息（UTF-8编码）<br />
成功，返回原网址 longurl字段</p>
<p>&nbsp;</p>
<p>更多信息查看百度短网址帮助：<a href="http://www.baidu.com/search/dwz.html">http://www.baidu.com/search/dwz.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.0597seo.com/?feed=rss2&#038;p=1898</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>4·15龙岩汽修厂爆炸</title>
		<link>http://www.0597seo.com/?p=1893</link>
		<comments>http://www.0597seo.com/?p=1893#comments</comments>
		<pubDate>Sat, 28 Apr 2012 15:36:56 +0000</pubDate>
		<dc:creator>lyboy</dc:creator>
				<category><![CDATA[未分类]]></category>
		<category><![CDATA[龙岩爆炸]]></category>

		<guid isPermaLink="false">http://www.0597seo.com/?p=1893</guid>
		<description><![CDATA[2012年4月15日，龙岩市雁石镇苏邦村一修理厂发生爆炸事故， 既然上了百度百科，看了龙岩爆炸很严重，愿逝者安息。。]]></description>
			<content:encoded><![CDATA[<p>2012年4月15日，龙岩市雁石镇苏邦村一修理厂发生爆炸事故， 既然上了百度百科，看了<strong><span class='wp_keywordlink_affiliate'><a href="http://www.0597seo.com/?tag=%e9%be%99%e5%b2%a9%e7%88%86%e7%82%b8" title="查看 龙岩爆炸 中的全部文章" target="_blank">龙岩爆炸</a></span></strong>很严重，愿逝者安息。。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.0597seo.com/?feed=rss2&#038;p=1893</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[error] (OS 10038)在一个非套接字上尝试了一个操作。 : Child 7852: Encountered too many errors accepting client connections. Possible causes: dynamic address renewal, or incompatible VPN or firewall software. Try using the Win32DisableAcceptEx directive.</title>
		<link>http://www.0597seo.com/?p=1888</link>
		<comments>http://www.0597seo.com/?p=1888#comments</comments>
		<pubDate>Fri, 27 Apr 2012 13:12:40 +0000</pubDate>
		<dc:creator>lyboy</dc:creator>
				<category><![CDATA[未分类]]></category>

		<guid isPermaLink="false">http://www.0597seo.com/?p=1888</guid>
		<description><![CDATA[今日电脑上的APACHE启动后CPU占用率一直高居100%, PHP程序也无法执行了。 查看错误日志里面记录了很多： [error] (OS 10038)在一个非套接字上尝试了一个操作。 : Child 3356: Encountered too many errors accepting client connections. Possible causes: dynamic address renewal, or incompatible VPN or firewall software. Try using the Win32DisableAcceptEx directive. 去到网上搜索，找到下面的解决方法： 编辑httpd.conf Win32DisableAcceptEx ##加入这行 ThreadsPerChild 250 MaxRequestsPerChild 0 重启apache就解决了。 修改后还是不行，任然有错误记录，CPU占用率是降低了，但是还是没有恢复到原来的状态.logs里面还是一直在记录下面的错误报告。 [Mon Dec 24 16:48:06 2007] [error] (OS 10038)在一个非套接字上尝试了一个操作。 : Too many errors in [...]]]></description>
			<content:encoded><![CDATA[<p>今日电脑上的APACHE启动后CPU占用率一直高居100%, PHP程序也无法执行了。<br />
查看错误日志里面记录了很多：</p>
<p>[error] (OS 10038)在一个非套接字上尝试了一个操作。 : Child 3356: Encountered too many errors accepting client connections. Possible causes: dynamic address renewal, or incompatible VPN or firewall software. Try using the Win32DisableAcceptEx directive.</p>
<p>去到网上搜索，找到下面的解决方法：</p>
<p>编辑httpd.conf</p>
<p>Win32DisableAcceptEx ##加入这行<br />
ThreadsPerChild 250<br />
MaxRequestsPerChild 0</p>
<p>重启apache就解决了。</p>
<p>修改后还是不行，任然有错误记录，CPU占用率是降低了，但是还是没有恢复到原来的状态.logs里面还是一直在记录下面的错误报告。</p>
<p>[Mon Dec 24 16:48:06 2007] [error] (OS 10038)在一个非套接字上尝试了一个操作。 : Too many errors in select loop. Child process exiting.<br />
[Mon Dec 24 16:48:06 2007] [notice] Child 1916: Exit event signaled. Child process is ending.<br />
[Mon Dec 24 16:48:07 2007] [notice] Child 1916: Released the start mutex<br />
[Mon Dec 24 16:48:07 2007] [notice] Child 1916: Waiting for 250 worker threads to exit.<br />
[Mon Dec 24 16:48:07 2007] [notice] Child 1916: All worker threads have exited.<br />
[Mon Dec 24 16:48:07 2007] [notice] Child 1916: Child process is exiting<br />
[Mon Dec 24 16:48:07 2007] [notice] Parent: child process exited with status 0 — Restarting.<br />
[Mon Dec 24 16:48:07 2007] [notice] Apache/2.0.55 (Win32) configured — resuming normal operations<br />
[Mon Dec 24 16:48:07 2007] [notice] Server built: Oct 9 2005 19:16:56<br />
[Mon Dec 24 16:48:07 2007] [notice] Parent: Created child process 3028<br />
[Mon Dec 24 16:48:07 2007] [notice] Disabled use of AcceptEx() WinSock2 API<br />
[Mon Dec 24 16:48:07 2007] [notice] Child 3028: Child process is running<br />
[Mon Dec 24 16:48:07 2007] [notice] Child 3028: Acquired the start mutex.<br />
[Mon Dec 24 16:48:07 2007] [notice] Child 3028: Starting 250 worker threads.<br />
[Mon Dec 24 16:48:08 2007] [notice] Child 3028: Listening on port 80.</p>
<p>最后搜索到与winsock有关，有网友也出现了这个问题，他认为是金山毒霸或者升级精灵修改了WINSOCK导致的。由于我电脑上也安装了金山毒霸，而且最近几天也升级过了，应该是同样的问题。于是搜索到恢复Winsock的方法：</p>
<p>netsh winsock reset</p>
<p>使用此条命令恢复后，重启电脑，这下Apache恢复当原先的良好状态了。</p>
<p>希望遇见这样问题的朋友们能得到帮助~~！</p>
]]></content:encoded>
			<wfw:commentRss>http://www.0597seo.com/?feed=rss2&#038;p=1888</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>头像保存过程中发生网络错误，请重试！,error code:0</title>
		<link>http://www.0597seo.com/?p=1885</link>
		<comments>http://www.0597seo.com/?p=1885#comments</comments>
		<pubDate>Tue, 24 Apr 2012 13:51:25 +0000</pubDate>
		<dc:creator>lyboy</dc:creator>
				<category><![CDATA[未分类]]></category>

		<guid isPermaLink="false">http://www.0597seo.com/?p=1885</guid>
		<description><![CDATA[&#160; 解决方法： /uc_server/data/及其子目录全部设置777]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.0597seo.com/wp-content/uploads/2012/04/090449ggb22gu5uk2mju661.jpg"><img class="aligncenter size-medium wp-image-1886" title="090449ggb22gu5uk2mju66[1]" src="http://www.0597seo.com/wp-content/uploads/2012/04/090449ggb22gu5uk2mju661-300x165.jpg" alt="" width="300" height="165" /></a></p>
<p>&nbsp;</p>
<p>解决方法：</p>
<p><span style="font-size: small;"><span style="line-height: normal;">/uc_server/data/及其子目录全部设置777</span></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.0597seo.com/?feed=rss2&#038;p=1885</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mysql主键id重新设置从一开始</title>
		<link>http://www.0597seo.com/?p=1882</link>
		<comments>http://www.0597seo.com/?p=1882#comments</comments>
		<pubDate>Mon, 16 Apr 2012 16:05:33 +0000</pubDate>
		<dc:creator>lyboy</dc:creator>
				<category><![CDATA[数据库]]></category>

		<guid isPermaLink="false">http://www.0597seo.com/?p=1882</guid>
		<description><![CDATA[mysql主键id重新设置从一开始 在表里面,主键id是自增长的,当清空表数据后,再插入数据仍然会接着删除前的id号往后增长,用下面代码可以使主键重新从1开始: alter table tablename auto_increment=1;]]></description>
			<content:encoded><![CDATA[<p>mysql主键id重新设置从一开始<br />
在表里面,主键id是自增长的,当清空表数据后,再插入数据仍然会接着删除前的id号往后增长,用下面代码可以使主键重新从1开始:<br />
alter table tablename auto_increment=1;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.0597seo.com/?feed=rss2&#038;p=1882</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>dedecms模板中使用PHP代码</title>
		<link>http://www.0597seo.com/?p=1880</link>
		<comments>http://www.0597seo.com/?p=1880#comments</comments>
		<pubDate>Sat, 07 Apr 2012 07:22:25 +0000</pubDate>
		<dc:creator>lyboy</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.0597seo.com/?p=1880</guid>
		<description><![CDATA[在dedecms模板中，除了使用标签以为，有时候需要用到PHP代码提取数据。 例如：{dede:php} $product_id = $refObj-&#62;Fields['product_id']; echo  $product_id ; {/dede:php}]]></description>
			<content:encoded><![CDATA[<p>在dedecms模板中，除了使用标签以为，有时候需要用到PHP代码提取数据。</p>
<p>例如：{dede:php}<br />
$product_id = $refObj-&gt;Fields['product_id'];<br />
echo  $product_id ;<br />
{/dede:php}</p>
]]></content:encoded>
			<wfw:commentRss>http://www.0597seo.com/?feed=rss2&#038;p=1880</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

