<?php xml version="1.0" encoding="UTF-8"?> 
<rss version="2.0">
<channel>
<title><![CDATA[迷茫feel的天空]]></title>
<link>http://www.mimang.net/</link>
<description><![CDATA[时间在流逝，路还很漫长。]]></description>
<language>utf-8</language>
<copyright><![CDATA[CopyRight 2006 F2Blog.com All Rights Reserved.]]></copyright>
<webMaster><![CDATA[silverys@126.com]]></webMaster>
<generator>F2blog 1.2 build 03.01</generator> 
<image>
	<title>迷茫feel的天空</title> 
	<url>http://www.mimang.net/attachments/</url> 
	<link>http://www.mimang.net/</link> 
	<description>迷茫feel的天空</description> 
</image>
<item>
	<link>http://www.mimang.net/index.php?load=read&amp;id=103</link>
	<title><![CDATA[自勉]]></title>
	<author>迷茫feel</author>
	<category><![CDATA[我的日记]]></category>
	<pubDate>2008-12-31 09:46</pubDate>
	<guid>http://www.mimang.net/index.php?load=read&amp;id=103</guid>	
	<description><![CDATA[<table border="0" cellspacing="0" cellpadding="0" style="table-layout: fixed; width: 100%; position: relative" id="blogContentTable"><tr><td valign="top" style="word-wrap: break-word"><div id="blogContainer" style="overflow: hidden; position: relative; height: 100%">&nbsp;<br /> &nbsp; <div id="blogDetailDiv" style="font-size: 16px; line-height: 13.5pt"><font size="3" style="line-height: 1.5em" color="#000000">人要学会接受现实，远离失败的阴影；时刻保持一种对美好生活的信念。</font><br /><br /><font size="3" style="line-height: 1.5em" color="#000000">活着，不要只想着你失去的东西，抬头看看你拥有的东西。可能你正在拥有的，是别人无法得到的另一种人生财富。</font><br /><br /><font size="3" style="line-height: 1.5em" color="#000000">换个思路，换个想法，你会得到更多..</font><br /><br /><font size="3" style="line-height: 1.5em" color="#000000">从来就没有绝望的处境，只有对处境绝望的人。</font><br /><br /><font size="3" style="line-height: 1.5em" color="#000000">从月球上看地球,地球只有篮球般大小,从宇宙中看地球,地球小得连砂子都不如!试想你所烦恼的东西在宇宙时空中有什么意义？所以无限的放宽心胸！开开心心过一生！</font><br /><br /><font size="3" style="line-height: 1.5em" color="#000000">所谓：一叶障目，不见泰山。一个人躺在地上，会被一片树叶挡住视线，看不见泰山。而弱小的人则会让丝毫的困难蒙蔽双眼，看不到成功的伟大..</font><br /><br /> 坚毅是解决一切困难的钥匙；<br /><br /> 凡事都要循序渐进，积小成功为大成功。<br /><br /></div></div></td></tr></table>]]></description>
</item>
<item>
	<link>http://www.mimang.net/index.php?load=read&amp;id=101</link>
	<title><![CDATA[set_magic_quotes_runtime 和 magic_quotes_gpc]]></title>
	<author>迷茫feel</author>
	<category><![CDATA[PHP学习笔记]]></category>
	<pubDate>2008-11-21 17:18</pubDate>
	<guid>http://www.mimang.net/index.php?load=read&amp;id=101</guid>	
	<description><![CDATA[<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;set_magic_quotes_runtime() 可以让程序员在代码中动态开启或关闭 magic_quotes_runtime，set_magic_quotes_runtime(1) 表示开启，set_magic_quotes_runtime(0) 则表示关闭。当set_magic_quotes_runtime(1)时，从数据库或通过fread之类的函数读取的文本，将自动对&#39; &quot;和自动加上反斜杠进行转义，防止溢出。这在对数据库的数据进行转移的时候非常有用。但在一般情况下，应当将其关闭，否则从数据库读取出来的数据单引号、双引号和反斜杠都会被加上，导致显示不正常。像Discuz，PHPWind都在公共文件的头部加上一句 set_magic_quotes_runtime(0); 强制关magic_quotes_runtime 。</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; magic_quotes_gpc 和 magic_quotes_runtime 的区别在于，magic_quot</p>]]></description>
</item>
<item>
	<link>http://www.mimang.net/index.php?load=read&amp;id=100</link>
	<title><![CDATA[PHP中error_reporting()函数的用法]]></title>
	<author>迷茫feel</author>
	<category><![CDATA[PHP学习笔记]]></category>
	<pubDate>2008-11-21 17:04</pubDate>
	<guid>http://www.mimang.net/index.php?load=read&amp;id=100</guid>	
	<description><![CDATA[<p>error_reporting()用于指定PHP程序过程中的错误报告的严重程度,有很多种,常用的有以下这些:<br /><span style="color: #000000"><span style="color: #0000bb"><font face="Courier New"><br /></font></span><font face="Courier New"><span style="color: #ff8000">//&nbsp;Turn&nbsp;off&nbsp;all&nbsp;error&nbsp;reporting;关闭所有的错误</span></font></span><span style="color: #000000"><font face="Courier New"><span style="color: #ff8000"><br /></span><span style="color: #0000bb">error_reporting</span><span style="color: #007700">(</span><span style="color: #0000bb">0</span></font><span style="color: #007700"><font face="Courier New">);<br /><br /></font></span><font face="Courier New"><span style="color: #ff8000">//&nbsp;Report&nbsp;simple&nbsp;running&nbsp;errors;报告一个简单的运行错误<br /></span><span style="color: #0000bb">error_reporting</span><span style="color: #007700">(</span><span style="color: #0000bb">E_ERROR&nbsp;</span><span style="color: #007700">|&nbsp;</span><span style="color: #0000bb">E_WARNING&nbsp;</span><span style="color: #007700">|&nbsp;</span><span style="color: #0000bb">E_PARSE</span></font><span style="color: #007700"><font face="Courier New">);<br /><br /></font></span><font face="Courier New"><span style="color: #ff8000">//&nbsp;Reporting&nbsp;E_NOTICE&nbsp;can&nbsp;be&nbsp;good&nbsp;too&nbsp;(to&nbsp;report&nbsp;uninitialized<br /> //&nbsp;variables&nbsp;or&nbsp;catch&nbsp;variable&nbsp;name&nbsp;misspellings&nbsp;...);包括报告一些未初始化的变量或捕捉变量名的拼写错误<br /></span><span style="color: #0000bb">error_report</span></font></span></p>]]></description>
</item>
<item>
	<link>http://www.mimang.net/index.php?load=read&amp;id=99</link>
	<title><![CDATA[PHP中$_SERVER的详细用法]]></title>
	<author>迷茫feel</author>
	<category><![CDATA[PHP学习笔记]]></category>
	<pubDate>2008-11-18 20:45</pubDate>
	<guid>http://www.mimang.net/index.php?load=read&amp;id=99</guid>	
	<description><![CDATA[$_SERVER[&#39;PHP_SELF&#39;] 当前正在执行脚本的文件名，与document root相关。<br /> $_SERVER[&#39;argv&#39;] 传递给该脚本的参数。<br /> $_SERVER[&#39;argc&#39;] 包含传递给程序的命令行参数的个数（如果运行在命令行模式）。<br /> $_SERVER[&#39;GATEWAY_INTERFACE&#39;] 服务器使用的 CGI 规范的版本。例如，&ldquo;CGI/1.1&rdquo;。<br /> $_SERVER[&#39;SERVER_NAME&#39;] 当前运行脚本所在服务器主机的名称。<br /> $_SERVER[&#39;SERVER_SOFTWARE&#39;] 服务器标识的字串，在响应请求时的头部中给出。<br /> $_SERVER[&#39;SERVER_PROTOCOL&#39;] 请求页面时通信协议的名称和版本。例如，&ldquo;HTTP/1.0&rdquo;。<br /> $_SERVER[&#39;REQUEST_METHOD&#39;] 访问页面时的请求方法。例如：&ldquo;GET&rdquo;、&ldquo;HEAD&r]]></description>
</item>
<item>
	<link>http://www.mimang.net/index.php?load=read&amp;id=97</link>
	<title><![CDATA[我的PHP函数库]]></title>
	<author>迷茫feel</author>
	<category><![CDATA[PHP学习笔记]]></category>
	<pubDate>2008-08-29 08:29</pubDate>
	<guid>http://www.mimang.net/index.php?load=read&amp;id=97</guid>	
	<description><![CDATA[<p><font color="#ff9900">die()</font><br /> 作用：退出当前脚本程序并输出一段信息。<br /> 语法：die(message)<br /><br /><font color="#ff9900">exit()<br /></font>说明：exit()函数的功能和die()函数的功能类似。<br /> 语法：exit(message)<br /><br /><font color="#ff9900">mysql_error()<br /></font>作用：返回上一个 MySQL 操作产生的文本错误信息。如果没有出错则返回 &#39;&#39;（空字符串）。<br /> 语法:mysql_error(connection)<br /> connection<br /> 可选参数。指定MySQL连接。如果不指定该参数，那将默认使用通过mysql_connect()函数最后一次打开的连接。<br /><br /><font color="#ff9900">mysql_errno()</font><br /> 作用：返回上一个 MySQL 操作中的错误代码。如果未出现错误，那么将返回0。<br /> 语法:mysql_errno(connection)<br /> connection<br /> 可选参数。指定MySQL连接。如果不指定该参数，那将默认使用通过mysql_connect()函数最后一次打开的连接。<br /><br /><font color="#ff9900">mysql_connect()</font><br /> 作用：打开一个到 MySQL 服务器的连接。<br /> 语法：mysql_connect(server,user,pwd,newlink,clientflag)<br /> </p>]]></description>
</item>
<item>
	<link>http://www.mimang.net/index.php?load=read&amp;id=95</link>
	<title><![CDATA[JavaScript学习笔记2]]></title>
	<author>迷茫feel</author>
	<category><![CDATA[JavaScript学习]]></category>
	<pubDate>2008-08-19 22:49</pubDate>
	<guid>http://www.mimang.net/index.php?load=read&amp;id=95</guid>	
	<description><![CDATA[<p><strong><font color="#ff6600">type()</font></strong>：用于判断数据类型。typeof 返回值有六种可能：&quot;number&quot;、&quot;string&quot;、&quot;boolean&quot;、&quot;object&quot;、&quot;function&quot; 和 &quot;undefined&quot;。<br /><font color="#ff6600"><strong>clearTimeout()</strong></font><font color="#000000">：</font>可取消由 setTimeout() 方法设置的 timeout。<br /><font color="#ff6600"><strong>setTimeout()</strong></font>：用于在指定的一段时间后执行某段程序。这个函数只执行一次，如果要多次重复执行，可以采用递归再次调用setTimeout()。<br /> document.bgColor<br /><font color="#ff6600"><strong>eval()</strong></font><font color="#000000">：对赋予的值进行判断，并能执行其中的脚本代码。<br /><font color="#ff6600"><strong>parseInt()</strong></font>：将一个字符串转换为整数。注意：如果字符串的第一个字符不能被转换成数字，将返回NaN。<br /><strong><font color="#ff6600">parseFloat()</font></strong>:返回由字符串转换得到的浮点数。注意：如果字符串的第一个字符不能被转换成数字，将返回NaN。<br /><strong><font color="#ff6600">isNaN()</font></strong>:返回一个 Boolean 值，指明提供的值是否是数字。还有一种办法，变量可以与它自身进行比较。如果比较的结果不等，那么它</font></p>]]></description>
</item>
<item>
	<link>http://www.mimang.net/index.php?load=read&amp;id=93</link>
	<title><![CDATA[扩展框问题]]></title>
	<author>迷茫feel</author>
	<category><![CDATA[兼容性问题收集]]></category>
	<pubDate>2008-08-12 01:13</pubDate>
	<guid>http://www.mimang.net/index.php?load=read&amp;id=93</guid>	
	<description><![CDATA[<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 如果无法将内容放入固定宽度或固定高度的框中，则框会扩展以适应内容，而不是让内容溢出框外。</p><p>影响: Internet Explorer 6.0<br /> 可能性: 很可能</p>]]></description>
</item>
<item>
	<link>http://www.mimang.net/index.php?load=read&amp;id=92</link>
	<title><![CDATA[浮动的非浮动错误]]></title>
	<author>迷茫feel</author>
	<category><![CDATA[兼容性问题收集]]></category>
	<pubDate>2008-08-12 01:11</pubDate>
	<guid>http://www.mimang.net/index.php?load=read&amp;id=92</guid>	
	<description><![CDATA[<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 如果具有指定宽度且向左浮动的元素后面直接跟有具有指定宽度的非浮动元素，则该浮动元素的右侧将出现非浮动容器，而不是让该浮动元素与非浮动元素重叠。<br /> 影响: Internet Explorer 6.0, 7.0; Internet Explorer for Macintosh 5.2<br /> 可能性: 很可能<br /> <div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline"><span style="color: Gray;">&lt;</span><span style="color: Blue;">div</span><span style="color: Gray;"> </span><span style="color: Blue;">style</span><span style="color: Gray;">=&quot;</span><span style="color: Blue;">float</span><span style="color: Navy;">:left</span><span style="color: Gray;">; </span><span style="color: Blue;">width</span><span style="color: Gray;">:30%;&quot;&gt;浮动区块内容。&lt;/</span><span style="color: Blue;">div</span><span style="color: Gray;">&gt;</span></li>
<li><span style="color: Gray;"> &lt;</span><span style="color: Blue;">p</span><span style="color: Gray;">&gt;段落&lt;/</span><span style="color: Blue;">p</span><span style="color: Gray;">&gt;</span></li></ol></div>在符合W3C标准浏览器中，具有指定宽度且向左浮动的元素后面直接跟有具有指定宽度的非浮动元素，正常显示是这样的：<img src="http://www.mimang.net/myphoto/float1.gif" alt=" " width="188" height="100" /><br /> 但是在IE浏览器中，确实这样显示的：<img src="http://www.mimang.net/myphoto/float2.gif" alt=" " width="188" height="100" /></p>]]></description>
</item>
<item>
	<link>http://www.mimang.net/index.php?load=read&amp;id=91</link>
	<title><![CDATA[META标签详解及HTML头部信息标签]]></title>
	<author>迷茫feel</author>
	<category><![CDATA[文章收藏]]></category>
	<pubDate>2008-08-04 00:49</pubDate>
	<guid>http://www.mimang.net/index.php?load=read&amp;id=91</guid>	
	<description><![CDATA[<p><strong>META标签</strong>有name和http-equiv两个属性,content为对应的值。</p><p><strong>一、name属性<br /></strong>1、keywords(关键字)<br /> 说明：keywords用来告诉搜索引擎你网页的关键字是什么。<br /> 举例：&lt;meta name=&quot;keywords&quot; content=&quot;science,education,culture,politics,ecnomics,relationships,entertaiment,human&quot;&gt;<br /> 2、description(网站内容描述)<br /> 说明：description用来告诉搜索引擎你的网站主要内容。<br /> 举例：&lt;meta name=&quot;description&quot; content=&quot;This page is about the meaning of science,education,culture.&quot;&gt;<br /> 3、robots(机器人向导)<br /> 说明：robots用来告诉搜索机器人哪些页面需要索引，哪些页面不需要索引。content的参数有all,none,index,noindex</p>]]></description>
</item>
<item>
	<link>http://www.mimang.net/index.php?load=read&amp;id=87</link>
	<title><![CDATA[php字符串替换函数strtr()浅谈]]></title>
	<author>迷茫feel</author>
	<category><![CDATA[PHP学习笔记]]></category>
	<pubDate>2008-08-03 22:42</pubDate>
	<guid>http://www.mimang.net/index.php?load=read&amp;id=87</guid>	
	<description><![CDATA[<p>先来看看这个php字符串替换函数 strtr()的两种用法:：<br /> strtr(string,from,to)<br /> 或者strtr(string,array)<br /> 首先针对strtr函数第一种方式:<br /> 我们看看下面的举例:<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline"><span style="color: Blue;">&lt;?php</span></li>
<li><span style="color: Gray;">&nbsp;</span><span style="color: Green;">echo</span><span style="color: Gray;"> </span><span style="color: Blue;">strtr</span><span style="color: Olive;">(</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">I Love you</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;">,</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">Lo</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;">,</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">lO</span><span style="color: #8b0000;">&quot;</span><span style="color: Olive;">)</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp;</span><span style="color: Blue;">?&gt;</span></li></ol></div>得到的结果是:<br /> I lOve yOu<br /> 这个结果提醒我们：<br /><strong>1.</strong>strtr它是区分大小写的<br /><strong>2.</strong>strtr的替换是很特殊的，你注意看后面那个yOu，中间的O被替换的，这显然不是我们的本意。<br /> 再举一个特殊例子，说明这个php的sttr函数的怪异<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline"><span style="color: Blue;">&lt;?php</span></li>
<li><span style="color: Gray;">&nbsp;</span><span style="color: Green;">echo</span><span style="color: Gray;"> </span><span style="color: Blue;">strtr</span><span style="color: Olive;">(</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">I Love you</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;">,</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">Love</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;">,</span><span style="color: #8b0000;">&quot;&quot;</span><span style="color: Olive;">)</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp;</span><span style="color: Blue;">?&gt;</span></li></ol></div>结果是：<br /> I Lov</p>]]></description>
</item>
</channel>
</rss>