<?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>最后的流星 meteors.cn</title>
	<atom:link href="http://www.meteors.cn/feed" rel="self" type="application/rss+xml" />
	<link>http://www.meteors.cn</link>
	<description>人生就像一次旅行，不必在乎目的地，在乎的是沿途的风景以及看风景的心情...</description>
	<lastBuildDate>Wed, 02 Nov 2011 15:14:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>我结婚了</title>
		<link>http://www.meteors.cn/blog/1286</link>
		<comments>http://www.meteors.cn/blog/1286#comments</comments>
		<pubDate>Wed, 02 Nov 2011 14:40:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[心情 / 生活 / 唠叨]]></category>
		<category><![CDATA[婚姻]]></category>
		<category><![CDATA[结婚]]></category>

		<guid isPermaLink="false">http://www.meteors.cn/?p=1286</guid>
		<description><![CDATA[我要结婚了，完全闪电式的，绝对暴风骤雨式的，非常迅雷掩耳不及式的，这不是一句天气预报就可以震惊世界的。 我要结婚了，我必将开始一段百无聊赖、俗不可耐、万般无奈的夫妻生活，——当然也不排除我可能度过一段老鹰捉小鸡、周瑜打黄盖、霸王硬上弓般地美好时光。 明天即将回老家办婚礼，正日子是2011年11月5日，农历10月初10，星期六，日子还不错吧？这是我冥思苦想了好几秒钟时间以及动用了S级高速缓存才憋出并定下来的日子！嘿嘿 从和LP确定关系、登记（一年前的今天）、买房、装修。。。一直都是神速，效率之高都另我自己咋舌！这个过程也是充满了幸福、快乐，当然也有煎熬、无奈和各种坎坷。甚至在装修时还受到他人欺诈，不过也让对方尝到了我黑涩会的一面！想想，我还是要全力去改掉自己凶巴巴的坏脾气，无论发生或遇到啥事都应该面不改色并温文尔雅的处理好！因为俺已经不仅仅是为自己而活了。。。用LP的话来说，我发火时那神色简直可以和禽兽媲美！ 说太多也没啥用，我只希望我和LP能够幸福快乐的走完这一生，能够互敬互爱，不离不弃！希望双方亲人都能够和睦相处，平平安安！希望我40岁的时候可以拿到博士学位！希望我的孩子秉承他爹妈的优良传统并成为富二代！希望和XDJM们把Mofun公司做大做强！希望。。。]]></description>
			<content:encoded><![CDATA[<p>我要结婚了，完全闪电式的，绝对暴风骤雨式的，非常迅雷掩耳不及式的，这不是一句天气预报就可以震惊世界的。</p>
<p>我要结婚了，我必将开始一段百无聊赖、俗不可耐、万般无奈的夫妻生活，——当然也不排除我可能度过一段老鹰捉小鸡、周瑜打黄盖、霸王硬上弓般地美好时光。</p>
<p><a href="http://www.meteors.cn/wp-content/uploads/2011/11/marry.jpg"><img class="aligncenter size-full wp-image-1287" title="marry" src="http://www.meteors.cn/wp-content/uploads/2011/11/marry.jpg" alt="" width="600" height="460" /></a></p>
<p>明天即将回老家办婚礼，正日子是2011年11月5日，农历10月初10，星期六，日子还不错吧？这是我冥思苦想了好几秒钟时间以及动用了S级高速缓存才憋出并定下来的日子！嘿嘿</p>
<p>从和LP确定关系、登记<span style="color: #999999;">（一年前的今天）</span>、买房、装修。。。一直都是神速，效率之高都另我自己咋舌！这个过程也是充满了幸福、快乐，当然也有煎熬、无奈和各种坎坷。甚至在装修时还受到他人欺诈，不过也让对方尝到了我黑涩会的一面！想想，我还是要全力去改掉自己凶巴巴的坏脾气，无论发生或遇到啥事都应该面不改色并温文尔雅的处理好！因为俺已经不仅仅是为自己而活了。。。用LP的话来说，我发火时那神色简直可以和禽兽媲美！</p>
<p>说太多也没啥用，我只希望我和LP能够幸福快乐的走完这一生，能够互敬互爱，不离不弃！希望双方亲人都能够和睦相处，平平安安！希望我40岁的时候可以拿到博士学位！希望我的孩子秉承他爹妈的优良传统并成为富二代！希望和XDJM们把<a href="http://www.mofun.com.cn">Mofun</a>公司做大做强！希望。。。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.meteors.cn/blog/1286/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>买了两本书《随遇而安》《史蒂夫▪乔布斯传》</title>
		<link>http://www.meteors.cn/blog/1281</link>
		<comments>http://www.meteors.cn/blog/1281#comments</comments>
		<pubDate>Wed, 26 Oct 2011 02:17:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[多读点书]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[jobs]]></category>
		<category><![CDATA[乔布斯]]></category>
		<category><![CDATA[孟非]]></category>
		<category><![CDATA[苹果]]></category>
		<category><![CDATA[非诚勿扰]]></category>

		<guid isPermaLink="false">http://www.meteors.cn/?p=1281</guid>
		<description><![CDATA[&#160; &#160;]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.meteors.cn/wp-content/uploads/2011/10/1.png"><img class="aligncenter size-medium wp-image-1282" title="随遇而安" src="http://www.meteors.cn/wp-content/uploads/2011/10/1-205x300.png" alt="" width="205" height="300" /></a><a href="http://www.meteors.cn/wp-content/uploads/2011/10/2.png"><img class="aligncenter size-medium wp-image-1283" title="乔布斯" src="http://www.meteors.cn/wp-content/uploads/2011/10/2-244x300.png" alt="" width="244" height="300" /></a><a href="http://www.meteors.cn/wp-content/uploads/2011/10/3.png"><img class="aligncenter size-medium wp-image-1284" title="乔布斯 T恤" src="http://www.meteors.cn/wp-content/uploads/2011/10/3-263x300.png" alt="" width="263" height="300" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.meteors.cn/blog/1281/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>户口</title>
		<link>http://www.meteors.cn/blog/1277</link>
		<comments>http://www.meteors.cn/blog/1277#comments</comments>
		<pubDate>Thu, 01 Sep 2011 05:43:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[心情 / 生活 / 唠叨]]></category>

		<guid isPermaLink="false">http://www.meteors.cn/?p=1277</guid>
		<description><![CDATA[因在长春买了房子 现终于有资格可以落户口了。今早拿着相关资料去了城西派出所户籍科，不到10分钟就把户口本给我了，哈哈，心想这回咱也是长春淫了！翻开本 傻眼了&#8230; 城西镇向阳村12组西环城公路115号卡梅尔城X栋X门X号。。。又镇又村又组的　弄得比以前还惨！]]></description>
			<content:encoded><![CDATA[<p>因在长春买了房子 现终于有资格可以落户口了。今早拿着相关资料去了城西派出所户籍科，不到10分钟就把户口本给我了，哈哈，心想这回咱也是长春淫了！翻开本 傻眼了&#8230; 城西镇向阳村12组西环城公路115号卡梅尔城X栋X门X号。。。又镇又村又组的　弄得比以前还惨！</p>
]]></content:encoded>
			<wfw:commentRss>http://www.meteors.cn/blog/1277/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>姥姥</title>
		<link>http://www.meteors.cn/blog/1273</link>
		<comments>http://www.meteors.cn/blog/1273#comments</comments>
		<pubDate>Mon, 08 Aug 2011 08:53:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[心情 / 生活 / 唠叨]]></category>

		<guid isPermaLink="false">http://www.meteors.cn/?p=1273</guid>
		<description><![CDATA[8月7日凌晨 姥姥因癌症去世，享年78岁！获悉后哭得直流鼻血…携LP下午5点赶到老家，次日凌晨2点驱车去祖坟地亲自给姥姥安葬并与姥爷拼骨！为了姥姥，有担当的家人真的已经不遗余力尽己所能，但对于家里的另一些人…我想说的是，姥姥为何走得这么快 又为何带着遗憾而走？人在做，天在看！没有担当，迟早会还！]]></description>
			<content:encoded><![CDATA[<p>8月7日凌晨 姥姥因癌症去世，享年78岁！获悉后哭得直流鼻血…携LP下午5点赶到老家，次日凌晨2点驱车去祖坟地亲自给姥姥安葬并与姥爷拼骨！为了姥姥，有担当的家人真的已经不遗余力尽己所能，但对于家里的另一些人…我想说的是，姥姥为何走得这么快 又为何带着遗憾而走？人在做，天在看！没有担当，迟早会还！<br />
<a href="http://www.meteors.cn/wp-content/uploads/2011/08/孝.png"><img class="aligncenter size-medium wp-image-1274" title="孝" src="http://www.meteors.cn/wp-content/uploads/2011/08/孝-300x294.png" alt="" width="300" height="294" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.meteors.cn/blog/1273/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>合影</title>
		<link>http://www.meteors.cn/blog/1261</link>
		<comments>http://www.meteors.cn/blog/1261#comments</comments>
		<pubDate>Wed, 06 Jul 2011 08:45:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[心情 / 生活 / 唠叨]]></category>

		<guid isPermaLink="false">http://www.meteors.cn/?p=1261</guid>
		<description><![CDATA[大姐结婚时 与朋友们的合影 我就是右边那个，也就是最帅的那个，嘿嘿]]></description>
			<content:encoded><![CDATA[<p>大姐结婚时 与朋友们的合影</p>
<p>我就是右边那个，也就是最帅的那个，嘿嘿</p>
<p><a href="http://www.meteors.cn/wp-content/uploads/2011/07/py.jpg"><img src="http://www.meteors.cn/wp-content/uploads/2011/07/py.jpg" alt="" title="朋友" width="700" height="419" class="aligncenter size-full wp-image-1262" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.meteors.cn/blog/1261/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>几段PHP代码 记录</title>
		<link>http://www.meteors.cn/blog/1256</link>
		<comments>http://www.meteors.cn/blog/1256#comments</comments>
		<pubDate>Wed, 20 Apr 2011 15:17:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP / Zend]]></category>

		<guid isPermaLink="false">http://www.meteors.cn/?p=1256</guid>
		<description><![CDATA[简单方式获取视频预览图 ?View Code PHP1 2 3 4 5 6 7 8 9 10 &#60;?php convertToFlv&#40; &#34;some-video-input.avi&#34;, &#34;output.jpg&#34; &#41;; function convertToFlv&#40; $input, $output &#41; &#123; echo &#34;Converting $input to $output&#60;br /&#62;&#34;; $command = &#34;ffmpeg -v 0 -y -i $input -vframes 1 &#8230; <a href="http://www.meteors.cn/blog/1256">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>简单方式获取视频预览图</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1256code4'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p12564"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
</pre></td><td class="code" id="p1256code4"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>  
convertToFlv<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">&quot;some-video-input.avi&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;output.jpg&quot;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>  
<span style="color: #000000; font-weight: bold;">function</span> convertToFlv<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$input</span><span style="color: #339933;">,</span> <span style="color: #000088;">$output</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>  
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;Converting <span style="color: #006699; font-weight: bold;">$input</span> to <span style="color: #006699; font-weight: bold;">$output</span>&lt;br /&gt;&quot;</span><span style="color: #339933;">;</span>  
<span style="color: #000088;">$command</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;ffmpeg -v 0 -y -i <span style="color: #006699; font-weight: bold;">$input</span> -vframes 1 -ss 5 -vcodec mjpeg -f rawvideo -s 286x160 -aspect 16:9 <span style="color: #006699; font-weight: bold;">$output</span> &quot;</span><span style="color: #339933;">;</span>  
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;<span style="color: #006699; font-weight: bold;">$command</span>&lt;br /&gt;&quot;</span><span style="color: #339933;">;</span>  
<a href="http://www.php.net/shell_exec"><span style="color: #990000;">shell_exec</span></a><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$command</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>  
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;Converted&lt;br /&gt;&quot;</span><span style="color: #339933;">;</span>  
<span style="color: #009900;">&#125;</span>  
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>分析用户ip归属地</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1256code5'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p12565"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
</pre></td><td class="code" id="p1256code5"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #666666; font-style: italic;">//需要用到QQwry.dat数据库,先从网上下载些数据库.这些是核心部分,可以写到一个单独的php里,用的时候直接include就可以</span>
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'__QQWRY__'</span> <span style="color: #339933;">,</span> <a href="http://www.php.net/dirname"><span style="color: #990000;">dirname</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900; font-weight: bold;">__FILE__</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;/qqwry.dat&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">class</span> QQWry<span style="color: #009900;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">var</span> <span style="color: #000088;">$StartIP</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
    <span style="color: #000000; font-weight: bold;">var</span> <span style="color: #000088;">$EndIP</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
    <span style="color: #000000; font-weight: bold;">var</span> <span style="color: #000088;">$Country</span><span style="color: #339933;">=</span><span style="color: #0000ff;">''</span><span style="color: #339933;">;</span>
    <span style="color: #000000; font-weight: bold;">var</span> <span style="color: #000088;">$Local</span><span style="color: #339933;">=</span><span style="color: #0000ff;">''</span><span style="color: #339933;">;</span>
    <span style="color: #000000; font-weight: bold;">var</span> <span style="color: #000088;">$CountryFlag</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
    <span style="color: #000000; font-weight: bold;">var</span> <span style="color: #000088;">$fp</span><span style="color: #339933;">;</span>
    <span style="color: #000000; font-weight: bold;">var</span> <span style="color: #000088;">$FirstStartIp</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
    <span style="color: #000000; font-weight: bold;">var</span> <span style="color: #000088;">$LastStartIp</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
    <span style="color: #000000; font-weight: bold;">var</span> <span style="color: #000088;">$EndIpOff</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span> <span style="color: #339933;">;</span>
    <span style="color: #000000; font-weight: bold;">function</span> getStartIp<span style="color: #009900;">&#40;</span><span style="color: #000088;">$RecNo</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
     <span style="color: #000088;">$offset</span><span style="color: #339933;">=</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">FirstStartIp</span><span style="color: #339933;">+</span><span style="color: #000088;">$RecNo</span> <span style="color: #339933;">*</span> <span style="color: #cc66cc;">7</span> <span style="color: #339933;">;</span>
     <span style="color: #339933;">@</span><a href="http://www.php.net/fseek"><span style="color: #990000;">fseek</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">fp</span><span style="color: #339933;">,</span><span style="color: #000088;">$offset</span><span style="color: #339933;">,</span>SEEK_SET<span style="color: #009900;">&#41;</span> <span style="color: #339933;">;</span>
     <span style="color: #000088;">$buf</span><span style="color: #339933;">=</span><a href="http://www.php.net/fread"><span style="color: #990000;">fread</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">fp</span> <span style="color: #339933;">,</span><span style="color: #cc66cc;">7</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">;</span>
     <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">EndIpOff</span><span style="color: #339933;">=</span><a href="http://www.php.net/ord"><span style="color: #990000;">ord</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$buf</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">4</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> <span style="color: #009900;">&#40;</span><a href="http://www.php.net/ord"><span style="color: #990000;">ord</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$buf</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">5</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">*</span><span style="color: #cc66cc;">256</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> <span style="color: #009900;">&#40;</span><a href="http://www.php.net/ord"><span style="color: #990000;">ord</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$buf</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">6</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">*</span> <span style="color: #cc66cc;">256</span><span style="color: #339933;">*</span><span style="color: #cc66cc;">256</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
     <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">StartIp</span><span style="color: #339933;">=</span><a href="http://www.php.net/ord"><span style="color: #990000;">ord</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$buf</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> <span style="color: #009900;">&#40;</span><a href="http://www.php.net/ord"><span style="color: #990000;">ord</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$buf</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">*</span><span style="color: #cc66cc;">256</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> <span style="color: #009900;">&#40;</span><a href="http://www.php.net/ord"><span style="color: #990000;">ord</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$buf</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">*</span><span style="color: #cc66cc;">256</span><span style="color: #339933;">*</span><span style="color: #cc66cc;">256</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> <span style="color: #009900;">&#40;</span><a href="http://www.php.net/ord"><span style="color: #990000;">ord</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$buf</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">3</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">*</span><span style="color: #cc66cc;">256</span><span style="color: #339933;">*</span><span style="color: #cc66cc;">256</span><span style="color: #339933;">*</span><span style="color: #cc66cc;">256</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
     <span style="color: #b1b100;">return</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">StartIp</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
    <span style="color: #000000; font-weight: bold;">function</span> getEndIp<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
     <span style="color: #339933;">@</span><a href="http://www.php.net/fseek"><span style="color: #990000;">fseek</span></a> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">fp</span> <span style="color: #339933;">,</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">EndIpOff</span> <span style="color: #339933;">,</span> SEEK_SET <span style="color: #009900;">&#41;</span> <span style="color: #339933;">;</span>
     <span style="color: #000088;">$buf</span><span style="color: #339933;">=</span><a href="http://www.php.net/fread"><span style="color: #990000;">fread</span></a> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">fp</span> <span style="color: #339933;">,</span> <span style="color: #cc66cc;">5</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">;</span>
     <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">EndIp</span><span style="color: #339933;">=</span><a href="http://www.php.net/ord"><span style="color: #990000;">ord</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$buf</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> <span style="color: #009900;">&#40;</span><a href="http://www.php.net/ord"><span style="color: #990000;">ord</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$buf</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">*</span><span style="color: #cc66cc;">256</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> <span style="color: #009900;">&#40;</span><a href="http://www.php.net/ord"><span style="color: #990000;">ord</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$buf</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">*</span><span style="color: #cc66cc;">256</span><span style="color: #339933;">*</span><span style="color: #cc66cc;">256</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> <span style="color: #009900;">&#40;</span><a href="http://www.php.net/ord"><span style="color: #990000;">ord</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$buf</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">3</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">*</span><span style="color: #cc66cc;">256</span><span style="color: #339933;">*</span><span style="color: #cc66cc;">256</span><span style="color: #339933;">*</span><span style="color: #cc66cc;">256</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
     <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">CountryFlag</span><span style="color: #339933;">=</span><a href="http://www.php.net/ord"><span style="color: #990000;">ord</span></a> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$buf</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">4</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">;</span>
     <span style="color: #b1b100;">return</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">EndIp</span> <span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
    <span style="color: #000000; font-weight: bold;">function</span> getCountry<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
     <span style="color: #b1b100;">switch</span> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">CountryFlag</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #b1b100;">case</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">:</span>
        <span style="color: #b1b100;">case</span> <span style="color: #cc66cc;">2</span><span style="color: #339933;">:</span>
         <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Country</span><span style="color: #339933;">=</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getFlagStr</span> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">EndIpOff</span><span style="color: #339933;">+</span><span style="color: #cc66cc;">4</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">;</span>
         <span style="color: #666666; font-style: italic;">//echo sprintf('EndIpOffset=(%x)',$this-&gt;EndIpOff );</span>
         <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Local</span><span style="color: #339933;">=</span><span style="color: #009900;">&#40;</span> <span style="color: #cc66cc;">1</span> <span style="color: #339933;">==</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">CountryFlag</span> <span style="color: #009900;">&#41;</span>? <span style="color: #0000ff;">''</span> <span style="color: #339933;">:</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getFlagStr</span> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">EndIpOff</span><span style="color: #339933;">+</span><span style="color: #cc66cc;">8</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
         <span style="color: #b1b100;">break</span> <span style="color: #339933;">;</span>
        <span style="color: #b1b100;">default</span> <span style="color: #339933;">:</span>
         <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Country</span><span style="color: #339933;">=</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getFlagStr</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">EndIpOff</span><span style="color: #339933;">+</span><span style="color: #cc66cc;">4</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">;</span>
         <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Local</span><span style="color: #339933;">=</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getFlagStr</span> <span style="color: #009900;">&#40;</span> <a href="http://www.php.net/ftell"><span style="color: #990000;">ftell</span></a> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">fp</span> <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">;</span>
     <span style="color: #009900;">&#125;</span>
    <span style="color: #009900;">&#125;</span>
    <span style="color: #000000; font-weight: bold;">function</span> getFlagStr <span style="color: #009900;">&#40;</span><span style="color: #000088;">$offset</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
     <span style="color: #000088;">$flag</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span> <span style="color: #339933;">;</span>
     <span style="color: #b1b100;">while</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
        <span style="color: #339933;">@</span><a href="http://www.php.net/fseek"><span style="color: #990000;">fseek</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">fp</span> <span style="color: #339933;">,</span><span style="color: #000088;">$offset</span><span style="color: #339933;">,</span>SEEK_SET<span style="color: #009900;">&#41;</span> <span style="color: #339933;">;</span>
        <span style="color: #000088;">$flag</span><span style="color: #339933;">=</span><a href="http://www.php.net/ord"><span style="color: #990000;">ord</span></a><span style="color: #009900;">&#40;</span><a href="http://www.php.net/fgetc"><span style="color: #990000;">fgetc</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">fp</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">;</span>
        <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$flag</span> <span style="color: #339933;">==</span> <span style="color: #cc66cc;">1</span> <span style="color: #339933;">||</span> <span style="color: #000088;">$flag</span> <span style="color: #339933;">==</span> <span style="color: #cc66cc;">2</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
         <span style="color: #000088;">$buf</span><span style="color: #339933;">=</span><a href="http://www.php.net/fread"><span style="color: #990000;">fread</span></a> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">fp</span> <span style="color: #339933;">,</span> <span style="color: #cc66cc;">3</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">;</span>
         <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$flag</span><span style="color: #339933;">==</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
            <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">CountryFlag</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">2</span><span style="color: #339933;">;</span>
            <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">EndIpOff</span><span style="color: #339933;">=</span><span style="color: #000088;">$offset</span> <span style="color: #339933;">-</span> <span style="color: #cc66cc;">4</span> <span style="color: #339933;">;</span>
         <span style="color: #009900;">&#125;</span>
         <span style="color: #000088;">$offset</span><span style="color: #339933;">=</span><a href="http://www.php.net/ord"><span style="color: #990000;">ord</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$buf</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> <span style="color: #009900;">&#40;</span><a href="http://www.php.net/ord"><span style="color: #990000;">ord</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$buf</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">*</span><span style="color: #cc66cc;">256</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> <span style="color: #009900;">&#40;</span><a href="http://www.php.net/ord"><span style="color: #990000;">ord</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$buf</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">*</span> <span style="color: #cc66cc;">256</span><span style="color: #339933;">*</span><span style="color: #cc66cc;">256</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
        <span style="color: #b1b100;">else</span><span style="color: #009900;">&#123;</span>
         <span style="color: #b1b100;">break</span> <span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
     <span style="color: #009900;">&#125;</span>
     <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$offset</span><span style="color: #339933;">&lt;</span><span style="color: #cc66cc;">12</span><span style="color: #009900;">&#41;</span>
        <span style="color: #b1b100;">return</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">;</span>
     <span style="color: #339933;">@</span><a href="http://www.php.net/fseek"><span style="color: #990000;">fseek</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">fp</span> <span style="color: #339933;">,</span> <span style="color: #000088;">$offset</span> <span style="color: #339933;">,</span> SEEK_SET <span style="color: #009900;">&#41;</span> <span style="color: #339933;">;</span>
&nbsp;
     <span style="color: #b1b100;">return</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getStr</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
    <span style="color: #000000; font-weight: bold;">function</span> getStr <span style="color: #009900;">&#40;</span> <span style="color: #009900;">&#41;</span>
    <span style="color: #009900;">&#123;</span>
     <span style="color: #000088;">$str</span><span style="color: #339933;">=</span><span style="color: #0000ff;">''</span> <span style="color: #339933;">;</span>
     <span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span> <span style="color: #cc66cc;">1</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #000088;">$c</span><span style="color: #339933;">=</span><a href="http://www.php.net/fgetc"><span style="color: #990000;">fgetc</span></a> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">fp</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">;</span>
        <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><a href="http://www.php.net/ord"><span style="color: #990000;">ord</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$c</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">==</span> <span style="color: #cc66cc;">0</span> <span style="color: #009900;">&#41;</span>
         <span style="color: #b1b100;">break</span> <span style="color: #339933;">;</span>
        <span style="color: #000088;">$str</span><span style="color: #339933;">.=</span> <span style="color: #000088;">$c</span> <span style="color: #339933;">;</span>
     <span style="color: #009900;">&#125;</span>
     <span style="color: #b1b100;">return</span> <span style="color: #000088;">$str</span> <span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
    <span style="color: #000000; font-weight: bold;">function</span> qqwry <span style="color: #009900;">&#40;</span><span style="color: #000088;">$dotip</span><span style="color: #339933;">=</span><span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span><a href="http://www.php.net/is_string"><span style="color: #990000;">is_string</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$dotip</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">||</span> <span style="color: #000088;">$dotip</span><span style="color: #339933;">==</span><span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><span style="color: #b1b100;">return</span><span style="color: #339933;">;</span><span style="color: #009900;">&#125;</span>
                <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><a href="http://www.php.net/preg_match"><span style="color: #990000;">preg_match</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;/^127/&quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$dotip</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Country</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;本地网络&quot;</span><span style="color: #339933;">;</span>return <span style="color: #339933;">;</span><span style="color: #009900;">&#125;</span>
        <span style="color: #b1b100;">elseif</span><span style="color: #009900;">&#40;</span><a href="http://www.php.net/preg_match"><span style="color: #990000;">preg_match</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;/^192/&quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$dotip</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Country</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;局域网&quot;</span><span style="color: #339933;">;</span>return <span style="color: #339933;">;</span><span style="color: #009900;">&#125;</span>
&nbsp;
     <span style="color: #000088;">$nRet</span><span style="color: #339933;">;</span>
     <span style="color: #000088;">$ip</span><span style="color: #339933;">=</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">IpToInt</span> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$dotip</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
     <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">fp</span><span style="color: #339933;">=</span> <a href="http://www.php.net/fopen"><span style="color: #990000;">fopen</span></a><span style="color: #009900;">&#40;</span>__QQWRY__<span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;rb&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
     <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">fp</span> <span style="color: #339933;">==</span> <span style="color: #009900; font-weight: bold;">NULL</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
         <span style="color: #000088;">$szLocal</span><span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;OpenFileError&quot;</span><span style="color: #339933;">;</span>
        <span style="color: #b1b100;">return</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span>
     <span style="color: #009900;">&#125;</span>
     <span style="color: #339933;">@</span><a href="http://www.php.net/fseek"><span style="color: #990000;">fseek</span></a> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">fp</span> <span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span> <span style="color: #339933;">,</span> SEEK_SET <span style="color: #009900;">&#41;</span> <span style="color: #339933;">;</span>
     <span style="color: #000088;">$buf</span><span style="color: #339933;">=</span><a href="http://www.php.net/fread"><span style="color: #990000;">fread</span></a> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">fp</span> <span style="color: #339933;">,</span> <span style="color: #cc66cc;">8</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">;</span>
     <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">FirstStartIp</span><span style="color: #339933;">=</span><a href="http://www.php.net/ord"><span style="color: #990000;">ord</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$buf</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> <span style="color: #009900;">&#40;</span><a href="http://www.php.net/ord"><span style="color: #990000;">ord</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$buf</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">*</span><span style="color: #cc66cc;">256</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> <span style="color: #009900;">&#40;</span><a href="http://www.php.net/ord"><span style="color: #990000;">ord</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$buf</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">*</span><span style="color: #cc66cc;">256</span><span style="color: #339933;">*</span><span style="color: #cc66cc;">256</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> <span style="color: #009900;">&#40;</span><a href="http://www.php.net/ord"><span style="color: #990000;">ord</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$buf</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">3</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">*</span><span style="color: #cc66cc;">256</span><span style="color: #339933;">*</span><span style="color: #cc66cc;">256</span><span style="color: #339933;">*</span><span style="color: #cc66cc;">256</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
     <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">LastStartIp</span><span style="color: #339933;">=</span><a href="http://www.php.net/ord"><span style="color: #990000;">ord</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$buf</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">4</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> <span style="color: #009900;">&#40;</span><a href="http://www.php.net/ord"><span style="color: #990000;">ord</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$buf</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">5</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">*</span><span style="color: #cc66cc;">256</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> <span style="color: #009900;">&#40;</span><a href="http://www.php.net/ord"><span style="color: #990000;">ord</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$buf</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">6</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">*</span><span style="color: #cc66cc;">256</span><span style="color: #339933;">*</span><span style="color: #cc66cc;">256</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> <span style="color: #009900;">&#40;</span><a href="http://www.php.net/ord"><span style="color: #990000;">ord</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$buf</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">7</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">*</span><span style="color: #cc66cc;">256</span><span style="color: #339933;">*</span><span style="color: #cc66cc;">256</span><span style="color: #339933;">*</span><span style="color: #cc66cc;">256</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
     <span style="color: #000088;">$RecordCount</span><span style="color: #339933;">=</span> <a href="http://www.php.net/floor"><span style="color: #990000;">floor</span></a><span style="color: #009900;">&#40;</span> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">LastStartIp</span> <span style="color: #339933;">-</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">FirstStartIp</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">/</span> <span style="color: #cc66cc;">7</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
     <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$RecordCount</span> <span style="color: #339933;">&lt;=</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
        <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Country</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;FileDataError&quot;</span><span style="color: #339933;">;</span>
        <a href="http://www.php.net/fclose"><span style="color: #990000;">fclose</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">fp</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">;</span>
        <span style="color: #b1b100;">return</span> <span style="color: #cc66cc;">2</span> <span style="color: #339933;">;</span>
     <span style="color: #009900;">&#125;</span>
     <span style="color: #000088;">$RangB</span><span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
     <span style="color: #000088;">$RangE</span><span style="color: #339933;">=</span> <span style="color: #000088;">$RecordCount</span><span style="color: #339933;">;</span>
     <span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$RangB</span> <span style="color: #339933;">&lt;</span> <span style="color: #000088;">$RangE</span><span style="color: #339933;">-</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span>
     <span style="color: #009900;">&#123;</span>
     <span style="color: #000088;">$RecNo</span><span style="color: #339933;">=</span> <a href="http://www.php.net/floor"><span style="color: #990000;">floor</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$RangB</span> <span style="color: #339933;">+</span> <span style="color: #000088;">$RangE</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">/</span> <span style="color: #cc66cc;">2</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
     <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getStartIp</span> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$RecNo</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">;</span>
&nbsp;
        <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$ip</span> <span style="color: #339933;">==</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">StartIp</span> <span style="color: #009900;">&#41;</span>
        <span style="color: #009900;">&#123;</span>
         <span style="color: #000088;">$RangB</span><span style="color: #339933;">=</span><span style="color: #000088;">$RecNo</span> <span style="color: #339933;">;</span>
         <span style="color: #b1b100;">break</span> <span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
     <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$ip</span><span style="color: #339933;">&gt;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">StartIp</span><span style="color: #009900;">&#41;</span>
        <span style="color: #000088;">$RangB</span><span style="color: #339933;">=</span> <span style="color: #000088;">$RecNo</span><span style="color: #339933;">;</span>
     <span style="color: #b1b100;">else</span>
        <span style="color: #000088;">$RangE</span><span style="color: #339933;">=</span> <span style="color: #000088;">$RecNo</span><span style="color: #339933;">;</span>
     <span style="color: #009900;">&#125;</span>
     <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getStartIp</span> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$RangB</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">;</span>
     <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getEndIp</span> <span style="color: #009900;">&#40;</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">;</span>
&nbsp;
     <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">StartIp</span> <span style="color: #339933;">&lt;=</span> <span style="color: #000088;">$ip</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">EndIp</span> <span style="color: #339933;">&gt;=</span> <span style="color: #000088;">$ip</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
        <span style="color: #000088;">$nRet</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span> <span style="color: #339933;">;</span>
        <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getCountry</span> <span style="color: #009900;">&#40;</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">;</span>
        <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Local</span><span style="color: #339933;">=</span><a href="http://www.php.net/str_replace"><span style="color: #990000;">str_replace</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;（我们一定要解放台湾！！！）&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Local</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
     <span style="color: #009900;">&#125;</span>
     <span style="color: #b1b100;">else</span><span style="color: #009900;">&#123;</span>
        <span style="color: #000088;">$nRet</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">3</span> <span style="color: #339933;">;</span>
        <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Country</span><span style="color: #339933;">=</span><span style="color: #0000ff;">'未知'</span> <span style="color: #339933;">;</span>
        <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Local</span><span style="color: #339933;">=</span><span style="color: #0000ff;">''</span> <span style="color: #339933;">;</span>
     <span style="color: #009900;">&#125;</span>
     <a href="http://www.php.net/fclose"><span style="color: #990000;">fclose</span></a> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">fp</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #b1b100;">return</span> <span style="color: #000088;">$nRet</span> <span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
    <span style="color: #000000; font-weight: bold;">function</span> IpToInt<span style="color: #009900;">&#40;</span><span style="color: #000088;">$Ip</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
     <span style="color: #000088;">$array</span><span style="color: #339933;">=</span><a href="http://www.php.net/explode"><span style="color: #990000;">explode</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'.'</span><span style="color: #339933;">,</span><span style="color: #000088;">$Ip</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
     <span style="color: #000088;">$Int</span><span style="color: #339933;">=</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$array</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">*</span> <span style="color: #cc66cc;">256</span><span style="color: #339933;">*</span><span style="color: #cc66cc;">256</span><span style="color: #339933;">*</span><span style="color: #cc66cc;">256</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$array</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">*</span><span style="color: #cc66cc;">256</span><span style="color: #339933;">*</span><span style="color: #cc66cc;">256</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$array</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">*</span><span style="color: #cc66cc;">256</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> <span style="color: #000088;">$array</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">3</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
     <span style="color: #b1b100;">return</span> <span style="color: #000088;">$Int</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">function</span> GetIP<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><span style="color: #666666; font-style: italic;">//获取IP</span>
    <span style="color: #b1b100;">return</span> <span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span>REMOTE_ADDR<span style="color: #009900;">&#93;</span>?<span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span>REMOTE_ADDR<span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span><span style="color: #000088;">$GLOBALS</span><span style="color: #009900;">&#91;</span>HTTP_SERVER_VARS<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span>REMOTE_ADDR<span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>PHP多文件上传类</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1256code6'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p12566"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
</pre></td><td class="code" id="p1256code6"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> 
<span style="color: #666666; font-style: italic;">/*
PHP多文件上传类
*/</span>
<span style="color: #666666; font-style: italic;">/*
class more_file_upload{
const FILE_PATH='../upfileclass/uploadfile/';
var file_type;
var file_type_array;
var file_type_real_array;
var file_type_string;
var file_name;
var file_size;
var file_tmp_name;
var file_error;
var handledate;
static totalsize=0;
&nbsp;
function __construct(file_name,file_error,file_size,file_tmp_name,file_type){
this-&gt;handledate=date('m-d-Y');
if (!empty(file_name)){
this-&gt;file_name = file_name;
this-&gt;file_error = file_error;
this-&gt;file_size = file_size;
this-&gt;file_tmp_name = file_tmp_name;
this-&gt;file_type = file_type;
this-&gt;file_type_array = array('/', 'image/gif', 'image/jpg', 'image/jpeg', 'image/pjpeg', 'image/png');
this-&gt;file_type_real_array = array(0.1, 'jpg'=&gt;74707370, 'gif'=&gt;7173, 'bmp'=&gt;6677, 'png'=&gt;807871);
&nbsp;
this-&gt;show_execute_message(this-&gt;file_error,this-&gt;file_name,this-&gt;file_type,this-&gt;file_size);
}
}
&nbsp;
function __destruct(){
this-&gt;file_name = NULL;
this-&gt;file_error = NULL;
this-&gt;file_size = NULL;
this-&gt;file_tmp_name = NULL;
this-&gt;file_type = NULL;
self::totalsize = 0;
}
&nbsp;
function show_execute_message(smfileerror,smfilename,smfiletype,smfilesize){
if(smfileerror&gt;0){
switch (smfileerror){
case 1: smfilemessage='&lt;strong&gt;文件超过服务器的约定大小！&lt;/strong&gt;';break;
case 2: smfilemessage='&lt;strong&gt;文件超过指定的文件大小！&lt;/strong&gt;';break;
case 3: smfilemessage='&lt;strong&gt;文件只上传了部分！&lt;/strong&gt;';break;
case 4: echo &quot;this-&gt;file_name &quot;.'文件上传失败！&lt;br/&gt;';break;
}
self::__destruct();
}else{
smfiletypeflag = array_search(smfiletype,this-&gt;file_type_array);
&nbsp;
//进行真实格式验证
if(smfiletypeflag != false){
file = fopen(this-&gt;file_tmp_name, &quot;rb&quot;);
bin = fread(file, 10);
fclose(file);
strInfo = @unpack(&quot;c10chars&quot;, bin);
typeCode = intval(strInfo['chars1'].strInfo['chars2']);
smfiletypeflag = array_search(typeCode, this-&gt;file_type_real_array);
if(smfiletypeflag == false){ //判断是否是png图片
typeCode = intval(strInfo['chars2'].strInfo['chars3'].strInfo['chars4']);
smfiletypeflag = array_search(typeCode, this-&gt;file_type_real_array);
if(smfiletypeflag == false){ //判断是否是jpg图片
$typeCode = intval(strInfo['chars7'].strInfo['chars8'].strInfo['chars9'].strInfo['chars10']);
smfiletypeflag = array_search(typeCode, this-&gt;file_type_real_array);
}
}
}
&nbsp;
if($smfiletypeflag == false){
$smfilemessage='&lt;strong&gt;文件类型不对，请核实！&lt;/strong&gt;';
self::__destruct();
}else{
$resflag = $this-&gt;move_file($this-&gt;file_tmp_name,this-&gt;file_name);
if (resflag == 1){
$smfilemessage = '文件上传成功！';
self::totalsize +=intval($smfilesize);
self::__destruct();
}else{
$smfilemessage = '&lt;strong&gt;文件上传失败！&lt;/strong&gt;';
self::__destruct();
}
}
}
&nbsp;
$smfilesizeformat = $this-&gt;size_BKM(smfilesize);
echo '&lt;tr&gt;
&lt;td align=&quot;left&quot; &gt;'.smfilename.'&lt;/td&gt;
&lt;td align=&quot;center&quot; &gt;'.smfiletype.'&lt;/td&gt;
&lt;td align=&quot;center&quot; &gt;'.smfilesizeformat.'&lt;/td&gt;
&lt;td align=&quot;center&quot; &gt;'.smfilemessage.'&lt;/td&gt;
&lt;/tr&gt;';
}
&nbsp;
function move_file(mvfiletmp,mvfilename){ //移动文件
mvfilenamearr = explode('.',basename(mvfilename));
mvfilenamearr[0] = this-&gt;rand_string();
mvfilename = implode('.',mvfilenamearr);
&nbsp;
if (is_uploaded_file(mvfiletmp)){
uploadfile = self::FILE_PATH.&quot;mvfilename&quot;;
result = move_uploaded_file(mvfiletmp,uploadfile);
return result;
}
}
&nbsp;
function rand_string(){
string = md5(uniqid(rand().microtime()));
return string;
}
&nbsp;
function size_BKM(size){ // B/KB/MB单位转换
if(size &lt; 1024)
{
size_BKM = (string)size . &quot; B&quot;;
}
elseif(size &lt; (1024 * 1024))
{
size_BKM = number_format((double)(size / 1024), 1) . &quot; KB&quot;;
}else
{
size_BKM = number_format((double)(size / (1024*1024)),1).&quot; MB&quot;;
}
return size_BKM;
}
}*/</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.meteors.cn/blog/1256/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>2010年终盘点</title>
		<link>http://www.meteors.cn/blog/1243</link>
		<comments>http://www.meteors.cn/blog/1243#comments</comments>
		<pubDate>Wed, 19 Jan 2011 07:27:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[心情 / 生活 / 唠叨]]></category>

		<guid isPermaLink="false">http://www.meteors.cn/?p=1243</guid>
		<description><![CDATA[时间过得真快，2010就这样悄然而去。但2010这一年来对于我来说很不平静，起起落落，是是非非。 如果用几个关键字来形容这一年的感受，那么就是：刺激、现实、幸福、理解、本性、利益、忙碌 家，婚姻 2010年完成了之前所许的一个小愿望－－拥有一个自己的小家 并且超额完成了任务－－混了个媳妇并且已经登记（2010/11/2），严格来讲算是闪婚了！ 从确定关系到登记 2个月不到。但我们相识了5年&#8230; 以前听过一些关于领证时的矛盾心情，我听了有些迷惑，既然已经决定结婚，去办理合法的手续有什么矛盾呢？如果说有矛盾的成分出现，那肯定是对婚姻不信任，既然不信任为什么要结婚呢？我觉得我还是长大了，去民政局的路上我什么也没有考虑，好象一切都是应该到来的，对于昨天和未来，在确认签字的一瞬间彻底划清了界限。拥有了这个红色的本本，就拥有了那么一份责任，同时无声的给彼此许下了不朽的誓言。 领了红色本本，意味着换了一种方式生活，同时也换了一种角色生活，也许等我看到换位后的差距后，对于自己的生活我会重新的去审视，也许只有重新审视我才能找到某一种落差，也许只有尽力的去补偿一些东西，我的良知才会有片刻的平衡。我不想让自己的生活永远的拴在哪个永远只属于自己的世界，杜绝所有关心和爱护自己的人。也许每个人的人生都有不同的结局，我想我的结局就是应该这样快乐的过下去，而我相信每个人的人生都是依靠自己的努力去改变的，我更愿意相信明天会更好。 事业 与某集团老总联合注册创办了新公司（也是我的第二个公司）长春魔方网络科技有限公司 mofun.com.cn 主要做的项目是 手机/移动互联网、长春本地生活门户&#8230;  0431.cc（目前平台正在研发阶段，年后将陆续正式上线） 朋友 熙熙而来，皆为利来；攘攘而往，皆为利往。 以前我一直认为只要投缘成为朋友，如果彼此珍惜的话 就能够相处一生。但经历了一些事情之后，我发现“没有永远的敌人、也没有永远的朋友、只有永远的利益”是很正确的。这句话可能很多人听了或看了以后都会嗤之以鼻 不以为然！但在自己身上真正发生后你就会觉得人和人之间有时真的很悲哀！根本不值得相信！一生中会有很多朋友，但每个朋友只陪你走其中的一段，就这么简单！也许结论悲哀，但又无可奈何！ 在这个崇尚物质的时代，随着道义意识的泯灭，为朋友两肋插刀的少了，更多的是插朋友两刀。也许，在朋友有困难的时候，我们似乎可以为朋友做一切的事情。然而，一旦到了利益攸关，需要我们做出选择的时候，朋友间不拔刀相向已是万幸。当危机来临，没有人会为你挡子弹，把自己锻造得刀枪不入才是最关键。 不过，我还是会将心比心的珍惜我的每一位朋友！但不是真朋友，也绝不会强求，更不会遗憾。 展望2011 希望我和老婆能够把小家装修得漂漂亮亮的，把婚事办了，然后适合的时候再生个小龙女（龙年出生的闺女） 将新公司做大做强，成为长春本地最大的互联网公司。 同时我们也对外公开招聘吸纳各界人才，请关注 mofun.com.cn  一个人能走多远，取决于与谁同行。如果人生旅途方向一致，我们愿意为同行的你背负行囊。]]></description>
			<content:encoded><![CDATA[<p>时间过得真快，2010就这样悄然而去。但2010这一年来对于我来说很不平静，起起落落，是是非非。<br />
如果用几个关键字来形容这一年的感受，那么就是：刺激、现实、幸福、理解、本性、利益、忙碌</p>
<p><strong>家，婚姻</strong></p>
<p>2010年完成了之前所许的一个<a href="http://www.meteors.cn/blog/698" target="_blank">小愿望</a>－－拥有一个<a href="http://www.meteors.cn/blog/1193" target="_blank">自己的小家</a></p>
<p>并且超额完成了任务－－混了个媳妇并且已经登记（2010/11/2），严格来讲算是闪婚了！ <img src='http://www.meteors.cn/wp-includes/images/smilies/icon_redface.gif' alt=':oops:' class='wp-smiley' />  从确定关系到登记 2个月不到。但我们相识了5年&#8230;</p>
<p>以前听过一些关于领证时的矛盾心情，我听了有些迷惑，既然已经决定结婚，去办理合法的手续有什么矛盾呢？如果说有矛盾的成分出现，那肯定是对婚姻不信任，既然不信任为什么要结婚呢？我觉得我还是长大了，去民政局的路上我什么也没有考虑，好象一切都是应该到来的，对于昨天和未来，在确认签字的一瞬间彻底划清了界限。拥有了这个红色的本本，就拥有了那么一份责任，同时无声的给彼此许下了不朽的誓言。</p>
<p>领了红色本本，意味着换了一种方式生活，同时也换了一种角色生活，也许等我看到换位后的差距后，对于自己的生活我会重新的去审视，也许只有重新审视我才能找到某一种落差，也许只有尽力的去补偿一些东西，我的良知才会有片刻的平衡。我不想让自己的生活永远的拴在哪个永远只属于自己的世界，杜绝所有关心和爱护自己的人。也许每个人的人生都有不同的结局，我想我的结局就是应该这样快乐的过下去，而我相信每个人的人生都是依靠自己的努力去改变的，我更愿意相信明天会更好。</p>
<p><strong>事业</strong></p>
<p>与某集团老总联合注册创办了新公司（也是我的第二个公司）长春魔方网络科技有限公司 <a href="http://www.mofun.com.cn" target="_blank">mofun.com.cn</a></p>
<p>主要做的项目是 手机/移动互联网、长春本地生活门户&#8230;  <a href="http://www.0431.cc" target="_blank">0431.cc</a>（目前平台正在研发阶段，年后将陆续正式上线）</p>
<p><strong>朋友</strong></p>
<p>熙熙而来，皆为利来；攘攘而往，皆为利往。</p>
<p>以前我一直认为只要投缘成为朋友，如果彼此珍惜的话 就能够相处一生。但经历了一些事情之后，我发现“没有永远的敌人、也没有永远的朋友、只有永远的利益”是很正确的。这句话可能很多人听了或看了以后都会嗤之以鼻 不以为然！但在自己身上真正发生后你就会觉得人和人之间有时真的很悲哀！根本不值得相信！一生中会有很多朋友，但每个朋友只陪你走其中的一段，就这么简单！也许结论悲哀，但又无可奈何！</p>
<p>在这个崇尚物质的时代，随着道义意识的泯灭，为朋友两肋插刀的少了，更多的是插朋友两刀。也许，在朋友有困难的时候，我们似乎可以为朋友做一切的事情。然而，一旦到了利益攸关，需要我们做出选择的时候，朋友间不拔刀相向已是万幸。当危机来临，没有人会为你挡子弹，把自己锻造得刀枪不入才是最关键。</p>
<p>不过，我还是会将心比心的珍惜我的每一位朋友！但不是真朋友，也绝不会强求，更不会遗憾。</p>
<p><strong>展望2011</strong></p>
<p>希望我和老婆能够把小家装修得漂漂亮亮的，把婚事办了，然后适合的时候再生个小龙女（龙年出生的闺女） <img src='http://www.meteors.cn/wp-includes/images/smilies/icon_mrgreen.gif' alt=':mrgreen:' class='wp-smiley' /> </p>
<p>将新公司做大做强，成为长春本地最大的互联网公司。</p>
<p>同时我们也对外公开<strong>招聘</strong>吸纳各界人才，请关注 <a href="http://www.mofun.com.cn" target="_blank">mofun.com.cn</a>  一个人能走多远，取决于与谁同行。如果人生旅途方向一致，我们愿意为同行的你背负行囊。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.meteors.cn/blog/1243/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>《老男孩》筷子兄弟</title>
		<link>http://www.meteors.cn/blog/1237</link>
		<comments>http://www.meteors.cn/blog/1237#comments</comments>
		<pubDate>Sat, 04 Dec 2010 04:53:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[心情 / 生活 / 唠叨]]></category>
		<category><![CDATA[梦想]]></category>
		<category><![CDATA[筷子兄弟]]></category>
		<category><![CDATA[老男孩]]></category>
		<category><![CDATA[青春]]></category>

		<guid isPermaLink="false">http://www.meteors.cn/?p=1237</guid>
		<description><![CDATA[最欣赏的两首歌词 除了《稻香》就是这个了 那是我日夜思念 深深爱着的人呐 到底我该如何表达 她会接受我吗 也许永远都不会跟她说出那句话 注定我要浪迹天涯 怎么能有牵挂 梦想总是遥不可及 是不是应该放弃 花开花落又是一季 春天啊你在哪里 青春如同奔流的江河 一去不回来不及道别 只剩下麻木的我 没有了当年的热血 看那满天飘零的花朵 在最美丽的时刻凋谢 有谁会记得这世界他来过 转眼过去 多年世间 多少离合悲欢 曾经志在四方少年 羡慕南飞的雁 各自奔前程的身影 匆匆渐行渐远 未来在哪里平凡 啊谁给我答案 那时陪伴我的人哪 你们如今在何方 我曾经爱过的人啊 现在是什么模样 当初的愿望实现了吗 事到如今只好祭奠吗 任岁月风干理想 再也找不回真的我 抬头仰望着漫天星河 那时候陪伴我的那颗 这里的故事 &#8230; <a href="http://www.meteors.cn/blog/1237">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>最欣赏的两首歌词 除了《稻香》就是这个了</p>
<p>那是我日夜思念 深深爱着的人呐<br />
到底我该如何表达 她会接受我吗<br />
也许永远都不会跟她说出那句话<br />
注定我要浪迹天涯 怎么能有牵挂<br />
梦想总是遥不可及 是不是应该放弃<br />
花开花落又是一季 春天啊你在哪里</p>
<p>青春如同奔流的江河 一去不回来不及道别<br />
只剩下麻木的我 没有了当年的热血<br />
看那满天飘零的花朵 在最美丽的时刻凋谢<br />
有谁会记得这世界他来过</p>
<p>转眼过去 多年世间 多少离合悲欢<br />
曾经志在四方少年 羡慕南飞的雁<br />
各自奔前程的身影 匆匆渐行渐远<br />
未来在哪里平凡 啊谁给我答案<br />
那时陪伴我的人哪 你们如今在何方<br />
我曾经爱过的人啊 现在是什么模样</p>
<p>当初的愿望实现了吗<br />
事到如今只好祭奠吗<br />
任岁月风干理想 再也找不回真的我<br />
抬头仰望着漫天星河<br />
那时候陪伴我的那颗<br />
这里的故事 你是否还记得</p>
<p>生活像一把无情刻刀 改变了我们模样<br />
未曾绽放就要枯萎吗 我有过梦想</p>
<p>青春如同奔流的江河 一去不回来不及道别<br />
只剩下麻木的我 没有了当年的热血<br />
看那满天飘零的花朵 在最美丽的时刻凋谢<br />
有谁会记得这世界他 曾经来过</p>
<p>当初的愿望实现了吗<br />
事到如今只好祭奠吗<br />
任岁月风干理想 再也找不回真的我<br />
抬头仰望着漫天星河<br />
那时候陪伴我的那颗<br />
这里的故事 你是否还记得<br />
如果有明天 祝福你亲爱的</p>
]]></content:encoded>
			<wfw:commentRss>http://www.meteors.cn/blog/1237/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://www.meteors.cn/wp-audio/laonanhai.mp3" length="7200641" type="audio/mpeg" />
		</item>
		<item>
		<title>优化Linux内核参数 和 防DDOS攻击</title>
		<link>http://www.meteors.cn/blog/1231</link>
		<comments>http://www.meteors.cn/blog/1231#comments</comments>
		<pubDate>Fri, 12 Nov 2010 09:02:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux / BSD / OS]]></category>
		<category><![CDATA[DDOS]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.meteors.cn/?p=1231</guid>
		<description><![CDATA[优化Linux内核参数 ?View Code LANGUAGE1 vi /etc/sysctl.conf 在末尾增加如下文本 ?View Code LANGUAGE1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 net.core.netdev_max_backlog = 32768 net.core.somaxconn = 32768 net.core.wmem_default = 8388608 net.core.rmem_default = 8388608 net.core.rmem_max = 16777216 &#8230; <a href="http://www.meteors.cn/blog/1231">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>优化Linux内核参数</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1231code12'); return false;">View Code</a> LANGUAGE</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p123112"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p1231code12"><pre class="language" style="font-family:monospace;">vi /etc/sysctl.conf</pre></td></tr></table></div>

<p>在末尾增加如下文本</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1231code13'); return false;">View Code</a> LANGUAGE</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p123113"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
</pre></td><td class="code" id="p1231code13"><pre class="language" style="font-family:monospace;">net.core.netdev_max_backlog =  32768
net.core.somaxconn = 32768
net.core.wmem_default = 8388608
net.core.rmem_default = 8388608
net.core.rmem_max = 16777216
net.core.wmem_max = 16777216
&nbsp;
net.ipv4.tcp_max_syn_backlog = 65536
net.ipv4.tcp_timestamps = 0
net.ipv4.tcp_synack_retries = 2
net.ipv4.tcp_syn_retries = 2
net.ipv4.tcp_tw_recycle = 1
net.ipv4.tcp_tw_reuse = 1
net.ipv4.tcp_mem = 94500000 915000000 927000000
net.ipv4.tcp_max_orphans = 3276800
net.ipv4.ip_local_port_range = 1024  65535</pre></td></tr></table></div>

<p>使配置立即生效：</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1231code14'); return false;">View Code</a> LANGUAGE</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p123114"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p1231code14"><pre class="language" style="font-family:monospace;">/sbin/sysctl -p</pre></td></tr></table></div>

<p>防DDOS攻击，Sysctl 修改：</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1231code15'); return false;">View Code</a> LANGUAGE</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p123115"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p1231code15"><pre class="language" style="font-family:monospace;">vi /etc/rc.local</pre></td></tr></table></div>


<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1231code16'); return false;">View Code</a> LANGUAGE</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p123116"><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code" id="p1231code16"><pre class="language" style="font-family:monospace;">sysctl kern.ipc.maxsockets=100000	##增加并发的socket，对于ddos很有用
sysctl kern.ipc.somaxconn=65535		##打开文件数
sysctl net.inet.tcp.msl=2500		##timeout时间</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.meteors.cn/blog/1231/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>IE6 下解决 PNG 图片透明的方法</title>
		<link>http://www.meteors.cn/blog/1225</link>
		<comments>http://www.meteors.cn/blog/1225#comments</comments>
		<pubDate>Fri, 12 Nov 2010 04:31:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Design / UED]]></category>

		<guid isPermaLink="false">http://www.meteors.cn/?p=1225</guid>
		<description><![CDATA[点击下载此文件 将JS脚本文件加载到你网页head内，代码如下： ?View Code LANGUAGE1 2 3 &#60;!--[if lt IE 7]&#62; &#60;script type=&#34;text/javascript&#34; src=&#34;unitpngfix.js&#34;&#62;&#60;/script&#62; &#60;![endif]--&#62; 添加 clear.gif 到你的 images 文件夹中.在 js 文件中，修改 “var clear=”images/clear.gif” 路径，为你存放clear.gif的文件路径]]></description>
			<content:encoded><![CDATA[<p><a title="脚本文件" href="http://www.meteors.cn/wp-download/unitpngfix.zip" target="_blank"><span style="color: #ff0000;">点击下载此文件</span></a></p>
<p>将JS脚本文件加载到你网页head内，代码如下：</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1225code18'); return false;">View Code</a> LANGUAGE</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p122518"><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code" id="p1225code18"><pre class="language" style="font-family:monospace;">&lt;!--[if lt IE 7]&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;unitpngfix.js&quot;&gt;&lt;/script&gt;
&lt;![endif]--&gt;</pre></td></tr></table></div>

<p>添加 clear.gif 到你的 images 文件夹中.在 js 文件中，修改 “var clear=”images/clear.gif” 路径，为你存放clear.gif的文件路径</p>
]]></content:encoded>
			<wfw:commentRss>http://www.meteors.cn/blog/1225/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

