<?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>我想网 &#187; PHP</title>
	<atom:link href="http://www.iwanna.cn/topics/develope/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.iwanna.cn</link>
	<description></description>
	<lastBuildDate>Mon, 26 Dec 2011 05:46:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>10種好用且最熱門的php函式庫</title>
		<link>http://www.iwanna.cn/archives/2011/12/26/6452/</link>
		<comments>http://www.iwanna.cn/archives/2011/12/26/6452/#comments</comments>
		<pubDate>Mon, 26 Dec 2011 05:46:16 +0000</pubDate>
		<dc:creator>seasun</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[程序源码]]></category>

		<guid isPermaLink="false">http://www.iwanna.cn/?p=6452</guid>
		<description><![CDATA[I-nfotech 有一篇文章列出十個每一個 PHP 開發者都應該認識的開發項目， 我們都知道 PHP 擁有全世界最龐大的原碼程式庫（不知道的話現在仍不算遲），所以在開發過程中幾乎所有你需要的功能都已經有人寫好了，你只需插入你的項目中便可以使用，文章的作者有多年的網頁開發經驗，他總結多年的心得，列出了十個每一個 PHP 開發者都應該認識的 PHP 函式庫。你的要求可能不同，但這篇文章的內容仍然很值得參考。 發送電子郵件： 一般用途的話 PHP 的 mail() 函式已經足夠，但若果要插入附件，或者透過 SMTP 伺服器發送電郵，便需要phpmailer 了。 用戶管理： 由於作者一直以來都找不到一個合心意的用戶管理函式庫，所以他自己寫了一個 PHP User class，也推薦這個給大家。 擷取 RSS： 你的項目需要從外部來源擷取 RSS 嗎？雖然方法很簡單，但既然有方便易用的 Magpie RSS，便不要自己費神了。 追蹤地理位置： 有時你希望知道訪客來自何方，Maxmind 提供了簡單方便的方法，詳細的使用方法可以參看教學文件。 擷取遠端內容： 若果嫌 RSS 的內容太簡單而需要擷取遠端網頁的內容並加以分析，htmlSQL class 可以幫你，這個函式庫讓你使用 SQL 語句擷取遠端網頁的內容，不是很有趣的構想嗎？ Trackback： 發送和接收 trackback 可說是現代網站的標準功能，PHP Trackback 讓你輕鬆把這些功能加入開發項目中。 模版系統： 這是另一個所有網站都必定使用的功能，它可以省卻你大量設計頁面的時間，也使更換頁面設計變得更加輕鬆容易，Smarty 可以是現時最受歡迎的模板系統。 BBcode： BBcode 本來是網上討論區的功能，現在很多網站為了使介面更加友善易用都加入了 BBcode，不過編寫 BBcode 系統需要不少氣力，幸好 StringParser [...]]]></description>
			<content:encoded><![CDATA[<p>I-nfotech 有一篇文章列出<a title="十個每一個 PHP 開發者都應該認識的開發項目" href="http://infortech2k.wordpress.com/2007/11/11/10-projects-every-php-developer-should-use/">十個每一個 PHP 開發者都應該認識的開發項目</a>， 我們都知道 <a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag" title="标签 PHP 下的日志">PHP</a> 擁有全世界最龐大的原碼程式庫（不知道的話現在仍不算遲），所以在開發過程中幾乎所有你需要的功能都已經有人寫好了，你只需插入你的項目中便可以使用，文章的作者有多年的網頁開發經驗，他總結多年的心得，列出了十個每一個 <a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag" title="标签 PHP 下的日志">PHP</a> 開發者都應該認識的 <a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag" title="标签 PHP 下的日志">PHP</a> 函式庫。你的要求可能不同，但這篇文章的內容仍然很值得參考。<br />
<span id="more-6452"></span></p>
<ol>
<li>
<h3><strong>發送電子郵件</strong>：</h3>
<p>一般用途的話 PHP 的 <a title="PHP mail()" href="http://www.webdigity.com/php-manual/function.mail.html">mail()</a> 函式已經足夠，但若果要插入附件，或者透過 SMTP 伺服器發送電郵，便需要<a title="PHPmailer" href="http://phpmailer.sourceforge.net/">phpmailer</a> 了。</li>
<li>
<h3><strong>用戶管理</strong>：</h3>
<p>由於作者一直以來都找不到一個合心意的用戶管理函式庫，所以他自己寫了一個 <a title="PHP User class" href="http://phpuserclass.com/">PHP User class</a>，也推薦這個給大家。</li>
<li>
<h3><strong>擷取 RSS</strong>：</h3>
<p>你的項目需要從外部來源擷取 RSS 嗎？雖然<a title="擷取 RSS 的方法" href="http://www.webdigity.com/index.php?action=tutorial;code=20">方法很簡單</a>，但既然有方便易用的 <a title="Magpie RSS" href="http://magpierss.sourceforge.net/">Magpie RSS</a>，便不要自己費神了。</li>
<li>
<h3><strong>追蹤地理位置</strong>：</h3>
<p>有時你希望知道訪客來自何方，<a title="Maxmind" href="http://www.maxmind.com/app/php">Maxmind</a> 提供了簡單方便的方法，詳細的使用方法可以參看<a title="追蹤地理位置教學文件" href="http://www.webdigity.com/index.php?action=tutorial;code=58">教學文件</a>。</li>
<li>
<h3><strong>擷取遠端內容</strong>：</h3>
<p>若果嫌 RSS 的內容太簡單而需要擷取遠端網頁的內容並加以分析，<a title="htmlSQL class" href="http://www.jonasjohn.de/lab/htmlsql.htm">htmlSQL class</a> 可以幫你，這個函式庫讓你使用 SQL 語句擷取遠端網頁的內容，不是很有趣的構想嗎？</li>
<li>
<h3><strong>Trackback</strong>：</h3>
<p>發送和接收 trackback 可說是現代網站的標準功能，<a title="PHP Trackback" href="http://phptrackback.sourceforge.net/">PHP Trackback</a> 讓你輕鬆把這些功能加入開發項目中。</li>
<li>
<h3><strong>模版系統</strong>：</h3>
<p>這是另一個所有網站都必定使用的功能，它可以省卻你大量設計頁面的時間，也使更換頁面設計變得更加輕鬆容易，<a title="Smarty" href="http://smarty.php.net/">Smarty</a> 可以是現時最受歡迎的模板系統。</li>
<li>
<h3><strong>BBcode</strong>：</h3>
<p>BBcode 本來是網上討論區的功能，現在很多網站為了使介面更加友善易用都加入了 BBcode，不過編寫 BBcode 系統需要不少氣力，幸好 <a title="StringParser BBcode class" href="http://christian-seiler.de/projekte/php/bbcode/index_en.html">StringParser BBcode class</a> 已經為你準備一切。</li>
<li>
<h3><strong>整合 Paypal 付款系統</strong>：</h3>
<p>Paypal 提供了完善的應用程式介面，讓開發人員很容易便可以把 Paypal 的付款系統整合他們的網站，透過 <a title="Paypal IPN Integration class" href="http://www.micahcarrick.com/04-19-2005/php-paypal-ipn-integration-class.html">Paypal IPN Integration class</a> 只需 20 分鐘的時間便可以開始在網上接受付款。</li>
<li>
<h3><strong>文本編輯器</strong>：</h3>
<p>作為系統開發人員，我們當然樂意使用 phpMyAdmin 來處理 MySQL 中的數據，使用 textarea 在網頁中輸入文字，但是給用戶使用的編輯器便需要更先進的功能，<a title="TinyMCE" href="http://tinymce.moxiecode.com/">tinyMCE control</a> 提供「所見即所得」的網上編輯器，正好符合這方面的要求。</li>
</ol>
<hr />
<p>© <a href="http://www.iwanna.cn">我想网</a> Akon 所有 , 2011. |
<a href="http://www.iwanna.cn/archives/2011/12/26/6452/">永久链接</a> |
<a href="http://www.iwanna.cn/archives/2011/12/26/6452/#comments">没有评论</a> |
提交到
<a rel="nofollow" target="_blank" href="http://www.google.com/reader/view/feed/http://www.iwanna.cn/archives/2011/12/26/6452/">Google Reader</a>
<a rel="nofollow" target="_blank" href="http://www.xianguo.com/subscribe.php?url=http://www.iwanna.cn/archives/2011/12/26/6452/">鲜果</a>
<a rel="nofollow" target="_blank" href="http://www.zhuaxia.com/add_channel.php?url=http://www.iwanna.cn/archives/2011/12/26/6452/">抓虾</a>
<hr />
<script type="text/javascript"><!--
google_ad_client = "pub-2057344547305288";
/* 336x280,iwanna feed,created 10/3/10 */
google_ad_slot = "9738886183";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<hr />
</p>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.iwanna.cn/archives/2011/12/26/6452/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP压缩解压缩类：PclZip</title>
		<link>http://www.iwanna.cn/archives/2011/02/07/6316/</link>
		<comments>http://www.iwanna.cn/archives/2011/02/07/6316/#comments</comments>
		<pubDate>Mon, 07 Feb 2011 15:32:39 +0000</pubDate>
		<dc:creator>seasun</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.iwanna.cn/?p=6316</guid>
		<description><![CDATA[PclZip是一个强大的压缩与解压缩zip文件的PHP类，PclZip library不仅能够压缩与解压缩Zip格式的文件；还能出压缩档的内容。同时也可以对现有的ZIP包进行添加或删除文件。 官方网站：http://www.phpconcept.net/pclzip/index.php 以下为一个简单的压缩全站进行备份的代码： &#60;?php require_once('pclzip.lib.php'); $zip = new PclZip("archive.zip"); $v_list = $zip-&#62;create($_SERVER['DOCUMENT_ROOT'] ,PCLZIP_OPT_REMOVE_PATH,$_SERVER['DOCUMENT_ROOT']); if($v_list == 0){ echo '异常：'.$z-&#62;errorInfo(true); } else { echo '备份成功'; } ?&#62; 其他使用方法： &#60;?php //解压缩到extract/folder/这个目录中       $list = $archive-&#62;extract(PCLZIP_OPT_PATH, "extract/folder/");               //增加这个目录在压缩档中，完成以后压缩档里面会有backup这个目录，backup里面会有这两个档案       $list = $archive-&#62;create("file.txt,image.gif",PCLZIP_OPT_ADD_PATH, "backup");               //去掉部份的路径，这里完成后会变成test/file.txt       $list = $archive-&#62;add("/usr/local/user/test/file.txt",PCLZIP_OPT_REMOVE_PATH, "/usr/local/user");               //把所有路径都去掉，这个压缩档建立完后，里面就只会有file.txt跟image.gif，不会有目录了       $list = $archive-&#62;create("data/file.txt images/image.gif",PCLZIP_OPT_REMOVE_ALL_PATH);               //把解压缩出来的档案的CHMOD设成0777       $list = [...]]]></description>
			<content:encoded><![CDATA[<p>PclZip是一个强大的压缩与解压缩zip文件的PHP类，PclZip library不仅能够压缩与解压缩Zip格式的文件；还能出压缩档的内容。同时也可以对现有的ZIP包进行添加或删除文件。</p>
<p>官方网站：<a href="http://www.phpconcept.net/pclzip/index.php" target="_blank">http://www.phpconcept.net/pclzip/index.php</a></p>
<p>以下为一个简单的压缩全站进行备份的代码：<br />
<span id="more-6316"></span></p>
<div>
<div>
<pre>&lt;?<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag" title="标签 PHP 下的日志">php</a>
require_once('pclzip.lib.<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag" title="标签 PHP 下的日志">php</a>');
$zip = new PclZip("archive.zip");
$v_list = $zip-&gt;create($_SERVER['DOCUMENT_ROOT'] ,PCLZIP_OPT_REMOVE_PATH,$_SERVER['DOCUMENT_ROOT']);
if($v_list == 0){ echo '异常：'.$z-&gt;errorInfo(true); }
else { echo '备份成功'; }
?&gt;</pre>
</div>
</div>
<p>其他使用方法：</p>
<div>
<div>
<pre>&lt;?php
//解压缩到extract/folder/这个目录中      
$list = $archive-&gt;extract(PCLZIP_OPT_PATH, "extract/folder/");      
       
//增加这个目录在压缩档中，完成以后压缩档里面会有backup这个目录，backup里面会有这两个档案      
$list = $archive-&gt;create("file.txt,image.gif",PCLZIP_OPT_ADD_PATH, "backup");      
       
//去掉部份的路径，这里完成后会变成test/file.txt      
$list = $archive-&gt;add("/usr/local/user/test/file.txt",PCLZIP_OPT_REMOVE_PATH, "/usr/local/user");      
       
//把所有路径都去掉，这个压缩档建立完后，里面就只会有file.txt跟image.gif，不会有目录了      
$list = $archive-&gt;create("data/file.txt images/image.gif",PCLZIP_OPT_REMOVE_ALL_PATH);      
       
//把解压缩出来的档案的CHMOD设成0777      
$list = $archive-&gt;extract(PCLZIP_OPT_SET_CHMOD, 0777);      
   
//解压缩部份的档案，这个参数是使用档案名称判别      
//引数可以用下面这样的阵列      
$rule_list[0] = 'test/aaa.txt';      
$rule_list[1] = 'test/ddd.txt';      
//或是下面这样，一个字串中，用逗号分隔每个要解压缩的档案      
$rule_list = "test/aaa.txt,test/ddd.txt";      
$list = $archive-&gt;extract(PCLZIP_OPT_BY_NAME,$rule_list);      
       
//解压缩部份的档案，使用php的ereg()函式，档案名称有比对成功的都会被解压缩      
$list = $archive-&gt;extract(PCLZIP_OPT_BY_EREG, "aa");      
       
//解压缩部份的档案，使用php的preg_match()函式，档案名称有比对成功的都会被解压缩      
$list = $archive-&gt;extract(PCLZIP_OPT_BY_PREG, "/^bb/");      
//上面这两个函式如果不懂的话，请先研究正规表示法(Regular Expression)      
       
//依照阵列中元素的索引解压缩，可是我不太懂index啥 = =a      
$list = $archive-&gt;extract(PCLZIP_OPT_BY_INDEX, array('0-1','6-7'));      
       
//将一个档案内容解压缩成一个字串      
$list = $archive-&gt;extract(PCLZIP_OPT_BY_NAME, "data/readme.txt",PCLZIP_OPT_EXTRACT_AS_STRING);      
       
//将一个档案内容解压缩完后直接输出(echo)      
$list = $archive-&gt;extract(PCLZIP_OPT_BY_NAME, "data/readme.txt",PCLZIP_OPT_EXTRACT_IN_OUTPUT);      
       
//将一个档案加入一个压缩档中，但不会对此档案压缩      
$list = $archive-&gt;add("data/file.txt", PCLZIP_OPT_NO_COMPRESSION);      
       
//对此压缩档增加一个注解，如果原本就有注解的话会被覆盖掉      
$list = $archive-&gt;create("data", PCLZIP_OPT_COMMENT, "Add a comment");      
       
//对此压缩档增加一个注解，如果原本就有注解的话会接在后面      
$list = $archive-&gt;add("data", PCLZIP_OPT_ADD_COMMENT, "Add a comment after the existing one");      
       
//对此压缩档增加一个注解，如果原本就有注解的话会放在原本的注解前面      
$list = $archive-&gt;add("data", PCLZIP_OPT_PREPEND_COMMENT, "Add a comment before the existing one");     
?&gt;</pre>
</div>
</div>
<p>﻿</p>
<hr />
<p>© <a href="http://www.iwanna.cn">我想网</a> Akon 所有 , 2011. |
<a href="http://www.iwanna.cn/archives/2011/02/07/6316/">永久链接</a> |
<a href="http://www.iwanna.cn/archives/2011/02/07/6316/#comments">没有评论</a> |
提交到
<a rel="nofollow" target="_blank" href="http://www.google.com/reader/view/feed/http://www.iwanna.cn/archives/2011/02/07/6316/">Google Reader</a>
<a rel="nofollow" target="_blank" href="http://www.xianguo.com/subscribe.php?url=http://www.iwanna.cn/archives/2011/02/07/6316/">鲜果</a>
<a rel="nofollow" target="_blank" href="http://www.zhuaxia.com/add_channel.php?url=http://www.iwanna.cn/archives/2011/02/07/6316/">抓虾</a>
<hr />
<script type="text/javascript"><!--
google_ad_client = "pub-2057344547305288";
/* 336x280,iwanna feed,created 10/3/10 */
google_ad_slot = "9738886183";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<hr />
</p>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.iwanna.cn/archives/2011/02/07/6316/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP自动保存文章中的外部图片</title>
		<link>http://www.iwanna.cn/archives/2011/02/07/6299/</link>
		<comments>http://www.iwanna.cn/archives/2011/02/07/6299/#comments</comments>
		<pubDate>Mon, 07 Feb 2011 09:32:01 +0000</pubDate>
		<dc:creator>seasun</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Picture]]></category>

		<guid isPermaLink="false">http://www.iwanna.cn/?p=6299</guid>
		<description><![CDATA[对于一些转载性质或采集性质的网站，因为外链图片有可能被来源网站删除或出现防盗链的情况，有的时候站长期望把文章中的外联图片都保存到本地空间里。解决办法是在原有的系统中添加一个PHP自动保存文章中外部图片的功能。 首先我们想到的是可以通过正则匹配来寻找文章中所有的img标签，这个表达式需要可以匹配跨行的img标签，并且需要对img标签做条件判断允许img标签带有其他属性.解决方案是使用preg_replace_callback() 这个函数。 function getRomatePic($data){         $pattern = '/&#60;img[^\/]*src=\"([^\"]*)\"[^\/]*\/&#62;/ims';         return preg_replace_callback($pattern,filter_image_call, $data);     } 为了完成外部图片的链接过滤及图片的本地保存，定义filter_image_call()。 function filter_image_call($match){                 $postImagePath="pic/";                 $postImageUrlBase="http://localhost/pic/";         $image_tag = $match[0]; //获得匹配的img标签         $image_url = $match[1]; //匹配img标签的src属性值         //如果src属性值不是http://开头的，也就是说图片已经是本地地址，不做任何修改而返回原始的img标签         if(substr($image_url, 0, 7) != 'http://'){                 return $image_tag;         }         $postfix = date('Y-m-d');         $dir_prefix = $postImagePath.$postfix."/"; //预定义的本地保存图片的文件夹，根据需要改变         $url_prefix [...]]]></description>
			<content:encoded><![CDATA[<p>对于一些转载性质或采集性质的网站，因为外链图片有可能被来源网站删除或出现防盗链的情况，有的时候站长期望把文章中的外联图片都保存到本地空间里。解决办法是在原有的系统中添加一个PHP自动保存文章中外部图片的功能。</p>
<p>首先我们想到的是可以通过正则匹配来寻找文章中所有的img标签，这个表达式需要可以匹配跨行的img标签，并且需要对img标签做条件判断允许img标签带有其他属性.解决方案是使用preg_replace_callback() 这个函数。</p>
<div>
<div>
<pre>function getRomatePic($data){
        $pattern = '/&lt;img[^\/]*src=\"([^\"]*)\"[^\/]*\/&gt;/ims';
        return preg_replace_callback($pattern,filter_image_call, $data);    
}</pre>
</div>
</div>
<p>为了完成外部图片的链接过滤及图片的本地保存，定义filter_image_call()。</p>
<div>
<div>
<pre>function filter_image_call($match){
                $postImagePath="pic/";
                $postImageUrlBase="http://localhost/pic/";
        $image_tag = $match[0]; //获得匹配的img标签
        $image_url = $match[1]; //匹配img标签的src属性值
        //如果src属性值不是http://开头的，也就是说图片已经是本地地址，不做任何修改而返回原始的img标签
        if(substr($image_url, 0, 7) != 'http://'){
                return $image_tag;
        }
        $postfix = date('Y-m-d');
        $dir_prefix = $postImagePath.$postfix."/"; //预定义的本地保存图片的文件夹，根据需要改变
        $url_prefix = $postImageUrlBase.$postfix."/"; //预定义的url前缀，根据需要改变
        //echo $url_prefix;
        //新建保存图片的文件夹
        if(!file_exists($dir_prefix)){
                mkdir($dir_prefix, 0777, true);
        }
        //随机生成图片文件名
        $arr = split("[/\\.]", $image_url);
        $ext =  '.'.$arr[count($arr) - 1];
        $file_name = substr(sha1(date('Y-m-d H:i:s') . rand(0,1000)), 0, 5) .rand_str(5) . $ext;
        //使用http_get_file函数得到远程图片文件，并保存到本地
        $file = http_get_file($image_url);
  file_put_contents($dir_prefix . $file_name, $file);
        //通过str_replace函数替换掉原始img标签中的src属性/
        return str_replace($image_url, $url_prefix . $file_name, $image_tag);
}</pre>
</div>
</div>
<p>最后，定义获取图片的函数，<a href="http://www.biaodianfu.com/discuz-dfopen-fsockopen.html">也可以使用discuz中的dfopen函数</a>。</p>
<div>
<div>
<pre>function http_get_file($url){
        $url_stuff = parse_url($url);
        $port = isset($url_stuff['port']) ? $url_stuff['port']:80;
        $fp = fsockopen($url_stuff['host'], $port);
        $query  = 'GET ' . $url_stuff['path'] . " HTTP/1.0\n";
        $query .= 'Host: ' . $url_stuff['host'];
        $query .= "\n\n";
        fwrite($fp, $query);
        while ($line = fread($fp, 1024)) {
                $buffer .= $line;
        }
        preg_match('/Content-Length: ([0-9]+)/', $buffer, $parts);
        return substr($buffer, - $parts[1]);
}</pre>
</div>
</div>
<p>另外中间会用到的还有生成指点数目的随机字符串：</p>
<div>
<div>
<pre>function rand_str($size=6,$feed="abcdefghijklmnopqrstuvwxyz0123456789"){
                for ($i=0; $i &lt; $size; $i++) {
                                $rand_str .= substr($feed, rand() % strlen($feed), 1);
                }
           return $rand_str;
        }</pre>
</div>
</div>
<p>整个方法如上，高手可以将上述修改为 WordPress插件，Discuz插件，PHPWind插件等。</p>
<hr />
<p>© <a href="http://www.iwanna.cn">我想网</a> Akon 所有 , 2011. |
<a href="http://www.iwanna.cn/archives/2011/02/07/6299/">永久链接</a> |
<a href="http://www.iwanna.cn/archives/2011/02/07/6299/#comments">2 条评论</a> |
提交到
<a rel="nofollow" target="_blank" href="http://www.google.com/reader/view/feed/http://www.iwanna.cn/archives/2011/02/07/6299/">Google Reader</a>
<a rel="nofollow" target="_blank" href="http://www.xianguo.com/subscribe.php?url=http://www.iwanna.cn/archives/2011/02/07/6299/">鲜果</a>
<a rel="nofollow" target="_blank" href="http://www.zhuaxia.com/add_channel.php?url=http://www.iwanna.cn/archives/2011/02/07/6299/">抓虾</a>
<hr />
<script type="text/javascript"><!--
google_ad_client = "pub-2057344547305288";
/* 336x280,iwanna feed,created 10/3/10 */
google_ad_slot = "9738886183";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<hr />
</p>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.iwanna.cn/archives/2011/02/07/6299/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>php-cli简介——不会Shell语言，一样用Shell！</title>
		<link>http://www.iwanna.cn/archives/2011/01/22/6243/</link>
		<comments>http://www.iwanna.cn/archives/2011/01/22/6243/#comments</comments>
		<pubDate>Sat, 22 Jan 2011 11:32:23 +0000</pubDate>
		<dc:creator>seasun</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.iwanna.cn/?p=6243</guid>
		<description><![CDATA[1.基础知识 1.1 什么是Shell编程? 在 Unix 中，shell 可不是简单的命令解释器（典型的有 Windows 中的 DOS ），而是一个全功能的编程环境。Shell 是操作系统的一部分，用来与用户打交道，并且可以用来协调各个命令【1】。用Shell编程可以灵活地解决大量重复任务，十分方便。但是，Shell的语 法十分怪异（个人意见），不容易记，如果现在熟悉的语言可以用来写shell那就好了——比如php——就可以快速开发Shell程序了（比如我的Preminder的后台程序），于是便有了这篇文章，本文以Linux为例说明php-cli的用法，其它平台的版本类似。 1.2 什么是php-cli? 刚才说到，我们可以用php来开发Shell程序。有的同学可能会问啦：“php不是用来做网页的么？-_-”。是的，php可以用来做动态网页，并且当初php就是为做动态网页而开发的语言，但是理论上php可以用来做任何的程序，甚至是桌面程序，而php-cli是php在命令行运行的支持环境，也就是我们说的可以用来写Shell的环境支持。 php-cli是php Command Line Interface的简称，如同它名字的意思，就是php在命令行运行的接口，区别于在Web服务器上运行的php环境（php-cgi, isapi等）【2】。 也就是说，php不单可以写前台网页，它还可以用来写后台的程序。 2. 执行php-cli脚本 2.1 php-cli的语法 当然是跟php一模一样啦，因为它就是php嘛！只不过一些默认的参数与php-cgi不同，比如运行时间：php-cli默认运行时间是无穷，而网页php默认设置是30s。 2.2 执行php-cli脚本 2.2.1. 直接在终端执行php kangzj@localhost# php -r 'print_r(get_defined_constants());' 2.2.2. 运行php-cli脚本文件 kangzj@localhost# php my_script.php kangzj@localhost# php -f my_script.php 上而说的php文件就是一般的php文件没有什么不同。还有一种方式，就是在文件中指令解释器，就可以直接在终端以”./test.php执行脚本了”，test.php就像下面这样： #!/usr/bin/php -q &#60;?php echo "Hello world of PHP CLI!"; ?&#62; [...]]]></description>
			<content:encoded><![CDATA[<h3>1.基础知识</h3>
<h4>1.1 什么是Shell编程?</h4>
<p>在 Unix 中，shell 可不是简单的命令解释器（典型的有 Windows 中的 DOS ），而是一个全功能的编程环境。Shell  是操作系统的一部分，用来与用户打交道，并且可以用来协调各个命令【1】。用Shell编程可以灵活地解决大量重复任务，十分方便。但是，Shell的语 法十分怪异（个人意见），不容易记，如果现在熟悉的语言可以用来写shell那就好了——比如php——就可以快速开发Shell程序了（比如我的<a href="http://apps.kangzj.net/preminder/">Preminder</a>的后台程序），于是便有了这篇文章，本文以Linux为例说明php-cli的用法，其它平台的版本类似。</p>
<h4>1.2 什么是php-cli?</h4>
<p>刚才说到，我们可以用php来开发Shell程序。有的同学可能会问啦：“php不是用来做网页的么？-_-”。是的，php可以用来做动态网页，并且当初php就是为做动态网页而开发的语言，但是理论上php可以用来做任何的程序，甚至是桌面程序，而<strong><a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag" title="标签 PHP 下的日志">php</a>-cli</strong>是php在命令行运行的支持环境，也就是我们说的可以用来写Shell的环境支持。</p>
<blockquote><p><strong>php-cli</strong>是php Command Line Interface的简称，如同它名字的意思，就是php在命令行运行的接口，区别于在Web服务器上运行的php环境（php-cgi, isapi等）【2】。</p></blockquote>
<p>也就是说，php不单可以写前台网页，它还可以用来写后台的程序。<br />
<span id="more-6243"></span></p>
<h3>2. 执行php-cli脚本</h3>
<h4>2.1 php-cli的语法</h4>
<p>当然是跟php一模一样啦，因为它就是php嘛！只不过一些默认的参数与php-cgi不同，比如运行时间：php-cli默认运行时间是无穷，而网页php默认设置是30s。</p>
<h4>2.2 执行php-cli脚本</h4>
<h5>2.2.1. 直接在终端执行php</h5>
<pre lang="shell">kangzj@localhost# php -r 'print_r(get_defined_constants());'</pre>
<h5>2.2.2. 运行php-cli脚本文件</h5>
<pre lang="shell">kangzj@localhost# php my_script.php

kangzj@localhost# php -f my_script.php</pre>
<p>上而说的php文件就是一般的php文件没有什么不同。还有一种方式，就是在文件中指令解释器，就可以直接在终端以”./test.php执行脚本了”，test.php就像下面这样：</p>
<pre lang="php">#!/usr/bin/php -q
&lt;?php
  echo "Hello world of PHP CLI!";
?&gt;</pre>
<p>补充：php的Shell程序并不一定以php为扩展名，可以以任意扩展名，甚至不要扩展名，只是为了清楚，我才用的php扩展名。</p>
<h5>2.2.3. 用Cron执行php-cli脚本</h5>
<p><a href="http://kangzj.net/linux-cron/">cron是一个linux下的定时执行工具，可以在无需人工干预的情况下运行作业</a>，周期性作业，比如备份数据，<a href="http://apps.kangzj.net/preminder/">Preminder</a>定期查询PR等等，添加的方法：打开/etc/crontab，添加：</p>
<pre lang="shell">0 13 * * * /usr/bin/php -f /home/phpscripts/phpcli.php</pre>
<h3>4. 结语</h3>
<p>如果你会php的话，那么你也会了一种Shell编程语言！</p>
<p>如果你不会php，你去学php，就相当于一下子学会动态网页和Shell两种语言！并且你甚至可以用php来写具有图形界面的应用程序，Dnspod的动态域名客户端中就有一种是用php开发的。</p>
<p>php的易学是出名的，如果你还不会，那是在犹豫什么呢？</p>
<p>另外，再宣传一下我的”<a href="http://apps.kangzj.net/preminder/">Preminder</a>”——PR更新Email提醒服务~~</p>
<h3>5. 参考文献</h3>
<ol>
<li>Linux Shell简介 ： <a title="http://www.linuxsir.org/main/?q=node/135" href="http://www.linuxsir.org/main/?q=node/135">http://www.linuxsir.org/main/?q=node/135</a></li>
<li>PHP Command Line Interface : Mystic Unleashed ：<a title="http://www.php-cli.com/" href="http://www.php-cli.com/">http://www.php-cli.com/</a></li>
<li>ch 4.2， php manual ： <a href="http://www.php.net/">http://www.php.net</a></li>
</ol>
<p>PS：Shell命令还是要知道一些的，否则有些功能不太好实现。</p>
<p>© 2009, <a href="http://kangzj.net/">kangzj</a>. 版权所有.</p>
<hr />
<p>© <a href="http://www.iwanna.cn">我想网</a> Akon 所有 , 2011. |
<a href="http://www.iwanna.cn/archives/2011/01/22/6243/">永久链接</a> |
<a href="http://www.iwanna.cn/archives/2011/01/22/6243/#comments">没有评论</a> |
提交到
<a rel="nofollow" target="_blank" href="http://www.google.com/reader/view/feed/http://www.iwanna.cn/archives/2011/01/22/6243/">Google Reader</a>
<a rel="nofollow" target="_blank" href="http://www.xianguo.com/subscribe.php?url=http://www.iwanna.cn/archives/2011/01/22/6243/">鲜果</a>
<a rel="nofollow" target="_blank" href="http://www.zhuaxia.com/add_channel.php?url=http://www.iwanna.cn/archives/2011/01/22/6243/">抓虾</a>
<hr />
<script type="text/javascript"><!--
google_ad_client = "pub-2057344547305288";
/* 336x280,iwanna feed,created 10/3/10 */
google_ad_slot = "9738886183";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<hr />
</p>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.iwanna.cn/archives/2011/01/22/6243/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP真值表备忘录 empty is_null isSet == ===</title>
		<link>http://www.iwanna.cn/archives/2011/01/06/6205/</link>
		<comments>http://www.iwanna.cn/archives/2011/01/06/6205/#comments</comments>
		<pubDate>Thu, 06 Jan 2011 14:44:20 +0000</pubDate>
		<dc:creator>seasun</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.iwanna.cn/?p=6205</guid>
		<description><![CDATA[PHP里面，有众多的函数检查一个变量是否存在，或者是否为真，或者是否为空。例如： empty, is_null, isSet, == null等等，你知道他们之间的细节差异吗？表中的T就是True, F就是False 现在，PHP文档组在其 官方PHP手册中也已经添加了该规则 Appendix K. PHP type comparison tables。 检查变量的函数 gettype() empty() is_null() isSet() (bool) $x = “”; string T F T F $x = null; NULL T T F F var $x; (not set) NULL T T F F $x = array(); array T F T F $x [...]]]></description>
			<content:encoded><![CDATA[<p>PHP里面，有众多的函数检查一个变量是否存在，或者是否为真，或者是否为空。例如： empty, is_null, isSet, ==  null等等，你知道他们之间的细节差异吗？表中的T就是True, F就是False</p>
<p>现在，PHP文档组在其 <a href="http://www.php.net/manual/" target="_blank">官方PHP手册</a>中也已经添加了该规则 <a href="http://www.php.net/manual/en/types.comparisons.php" target="_blank">Appendix K. PHP type comparison tables</a>。</p>
<h2>检查变量的函数</h2>
<table border="1" cellspacing="0" cellpadding="4">
<tbody>
<tr bgcolor="#dde2e6">
<td id="cheatTd1_0_0"></td>
<td id="cheatTd1_1_0">gettype()</td>
<td id="cheatTd1_2_0">empty()</td>
<td id="cheatTd1_3_0">is_null()</td>
<td id="cheatTd1_4_0">isSet()</td>
<td id="cheatTd1_5_0">(bool)</td>
</tr>
<tr>
<td id="cheatTd1_0_1" bgcolor="#dde2e6">$x = “”;</td>
<td id="cheatTd1_1_1">string</td>
<td id="cheatTd1_2_1">T</td>
<td id="cheatTd1_3_1">F</td>
<td id="cheatTd1_4_1">T</td>
<td id="cheatTd1_5_1">F</td>
</tr>
<tr>
<td id="cheatTd1_0_2" bgcolor="#dde2e6">$x = null;</td>
<td id="cheatTd1_1_2">NULL</td>
<td id="cheatTd1_2_2">T</td>
<td id="cheatTd1_3_2">T</td>
<td id="cheatTd1_4_2">F</td>
<td id="cheatTd1_5_2">F</td>
</tr>
<tr>
<td id="cheatTd1_0_3" bgcolor="#dde2e6">var $x; (not set)</td>
<td id="cheatTd1_1_3">NULL</td>
<td id="cheatTd1_2_3">T</td>
<td id="cheatTd1_3_3">T</td>
<td id="cheatTd1_4_3">F</td>
<td id="cheatTd1_5_3">F</td>
</tr>
<tr>
<td id="cheatTd1_0_4" bgcolor="#dde2e6">$x = array();</td>
<td id="cheatTd1_1_4">array</td>
<td id="cheatTd1_2_4">T</td>
<td id="cheatTd1_3_4">F</td>
<td id="cheatTd1_4_4">T</td>
<td id="cheatTd1_5_4">F</td>
</tr>
<tr>
<td id="cheatTd1_0_5" bgcolor="#dde2e6">$x = false;</td>
<td id="cheatTd1_1_5">boolean</td>
<td id="cheatTd1_2_5">T</td>
<td id="cheatTd1_3_5">F</td>
<td id="cheatTd1_4_5">T</td>
<td id="cheatTd1_5_5">F</td>
</tr>
<tr>
<td id="cheatTd1_0_6" bgcolor="#dde2e6">$x = 15;</td>
<td id="cheatTd1_1_6">integer</td>
<td id="cheatTd1_2_6">F</td>
<td id="cheatTd1_3_6">F</td>
<td id="cheatTd1_4_6">T</td>
<td id="cheatTd1_5_6">T</td>
</tr>
<tr>
<td id="cheatTd1_0_7" bgcolor="#dde2e6">$x = 1;</td>
<td id="cheatTd1_1_7">integer</td>
<td id="cheatTd1_2_7">F</td>
<td id="cheatTd1_3_7">F</td>
<td id="cheatTd1_4_7">T</td>
<td id="cheatTd1_5_7">T</td>
</tr>
<tr>
<td id="cheatTd1_0_8" bgcolor="#dde2e6">$x = 0;</td>
<td id="cheatTd1_1_8">integer</td>
<td id="cheatTd1_2_8">T</td>
<td id="cheatTd1_3_8">F</td>
<td id="cheatTd1_4_8">T</td>
<td id="cheatTd1_5_8">F</td>
</tr>
<tr>
<td id="cheatTd1_0_9" bgcolor="#dde2e6">$x = -1;</td>
<td id="cheatTd1_1_9">integer</td>
<td id="cheatTd1_2_9">F</td>
<td id="cheatTd1_3_9">F</td>
<td id="cheatTd1_4_9">T</td>
<td id="cheatTd1_5_9">T</td>
</tr>
<tr>
<td id="cheatTd1_0_10" bgcolor="#dde2e6">$x = “15″;</td>
<td id="cheatTd1_1_10">string</td>
<td id="cheatTd1_2_10">F</td>
<td id="cheatTd1_3_10">F</td>
<td id="cheatTd1_4_10">T</td>
<td id="cheatTd1_5_10">T</td>
</tr>
<tr>
<td id="cheatTd1_0_11" bgcolor="#dde2e6">$x = “1″;</td>
<td id="cheatTd1_1_11">string</td>
<td id="cheatTd1_2_11">F</td>
<td id="cheatTd1_3_11">F</td>
<td id="cheatTd1_4_11">T</td>
<td id="cheatTd1_5_11">T</td>
</tr>
<tr>
<td id="cheatTd1_0_12" bgcolor="#dde2e6">$x = “0″;</td>
<td id="cheatTd1_1_12">string</td>
<td id="cheatTd1_2_12">T</td>
<td id="cheatTd1_3_12">F</td>
<td id="cheatTd1_4_12">T</td>
<td id="cheatTd1_5_12">F</td>
</tr>
<tr>
<td id="cheatTd1_0_13" bgcolor="#dde2e6">$x = “-1″;</td>
<td id="cheatTd1_1_13">string</td>
<td id="cheatTd1_2_13">F</td>
<td id="cheatTd1_3_13">F</td>
<td id="cheatTd1_4_13">T</td>
<td id="cheatTd1_5_13">T</td>
</tr>
<tr>
<td id="cheatTd1_0_14" bgcolor="#dde2e6">$x = “foo”;</td>
<td id="cheatTd1_1_14">string</td>
<td id="cheatTd1_2_14">F</td>
<td id="cheatTd1_3_14">F</td>
<td id="cheatTd1_4_14">T</td>
<td id="cheatTd1_5_14">T</td>
</tr>
<tr>
<td id="cheatTd1_0_15" bgcolor="#dde2e6">$x = “true”;</td>
<td id="cheatTd1_1_15">string</td>
<td id="cheatTd1_2_15">F</td>
<td id="cheatTd1_3_15">F</td>
<td id="cheatTd1_4_15">T</td>
<td id="cheatTd1_5_15">T</td>
</tr>
<tr>
<td id="cheatTd1_0_16" bgcolor="#dde2e6">$x = “false”;</td>
<td id="cheatTd1_1_16">string</td>
<td id="cheatTd1_2_16">F</td>
<td id="cheatTd1_3_16">F</td>
<td id="cheatTd1_4_16">T</td>
<td id="cheatTd1_5_16">T</td>
</tr>
</tbody>
</table>
<p><span id="more-6205"></span><br />
注意： empty() 和isSet() 在传入一个未定义变量的时候，报warning的。</p>
<h2>用==比较</h2>
<table border="1" cellspacing="0" cellpadding="4">
<tbody>
<tr>
<td id="cheatTd2_0_0" bgcolor="#dde2e6"></td>
<td id="cheatTd2_1_0" bgcolor="#dde2e6">true</td>
<td id="cheatTd2_2_0" bgcolor="#dde2e6">false</td>
<td id="cheatTd2_3_0" bgcolor="#dde2e6">1</td>
<td id="cheatTd2_4_0" bgcolor="#dde2e6">0</td>
<td id="cheatTd2_5_0" bgcolor="#dde2e6">-1</td>
<td id="cheatTd2_6_0" bgcolor="#dde2e6">“1″</td>
<td id="cheatTd2_7_0" bgcolor="#dde2e6">“0″</td>
<td id="cheatTd2_8_0" bgcolor="#dde2e6">“-1″</td>
<td id="cheatTd2_9_0" bgcolor="#dde2e6">“1.3″</td>
<td id="cheatTd2_10_0" bgcolor="#dde2e6">“1.30″</td>
<td id="cheatTd2_11_0" bgcolor="#dde2e6">1.3</td>
<td id="cheatTd2_12_0" bgcolor="#dde2e6">1.30</td>
<td id="cheatTd2_13_0" bgcolor="#dde2e6">array()</td>
<td id="cheatTd2_14_0" bgcolor="#dde2e6">“foo”</td>
<td id="cheatTd2_15_0" bgcolor="#dde2e6">“”</td>
</tr>
<tr>
<td id="cheatTd2_0_1" bgcolor="#dde2e6">true</td>
<td id="cheatTd2_1_1">T</td>
<td id="cheatTd2_2_1">F</td>
<td id="cheatTd2_3_1">T</td>
<td id="cheatTd2_4_1">F</td>
<td id="cheatTd2_5_1">T</td>
<td id="cheatTd2_6_1">T</td>
<td id="cheatTd2_7_1">F</td>
<td id="cheatTd2_8_1">T</td>
<td id="cheatTd2_9_1">T</td>
<td id="cheatTd2_10_1">T</td>
<td id="cheatTd2_11_1">T</td>
<td id="cheatTd2_12_1">T</td>
<td id="cheatTd2_13_1">F</td>
<td id="cheatTd2_14_1">T</td>
<td id="cheatTd2_15_1">F</td>
</tr>
<tr>
<td id="cheatTd2_0_2" bgcolor="#dde2e6">false</td>
<td id="cheatTd2_1_2">F</td>
<td id="cheatTd2_2_2">T</td>
<td id="cheatTd2_3_2">F</td>
<td id="cheatTd2_4_2">T</td>
<td id="cheatTd2_5_2">F</td>
<td id="cheatTd2_6_2">F</td>
<td id="cheatTd2_7_2">T</td>
<td id="cheatTd2_8_2">F</td>
<td id="cheatTd2_9_2">F</td>
<td id="cheatTd2_10_2">F</td>
<td id="cheatTd2_11_2">F</td>
<td id="cheatTd2_12_2">F</td>
<td id="cheatTd2_13_2">T</td>
<td id="cheatTd2_14_2">F</td>
<td id="cheatTd2_15_2">T</td>
</tr>
<tr>
<td id="cheatTd2_0_3" bgcolor="#dde2e6">1</td>
<td id="cheatTd2_1_3">T</td>
<td id="cheatTd2_2_3">F</td>
<td id="cheatTd2_3_3">T</td>
<td id="cheatTd2_4_3">F</td>
<td id="cheatTd2_5_3">F</td>
<td id="cheatTd2_6_3">T</td>
<td id="cheatTd2_7_3">F</td>
<td id="cheatTd2_8_3">F</td>
<td id="cheatTd2_9_3">F</td>
<td id="cheatTd2_10_3">F</td>
<td id="cheatTd2_11_3">F</td>
<td id="cheatTd2_12_3">F</td>
<td id="cheatTd2_13_3">F</td>
<td id="cheatTd2_14_3">F</td>
<td id="cheatTd2_15_3">F</td>
</tr>
<tr>
<td id="cheatTd2_0_4" bgcolor="#dde2e6">0</td>
<td id="cheatTd2_1_4">F</td>
<td id="cheatTd2_2_4">T</td>
<td id="cheatTd2_3_4">F</td>
<td id="cheatTd2_4_4">T</td>
<td id="cheatTd2_5_4">F</td>
<td id="cheatTd2_6_4">F</td>
<td id="cheatTd2_7_4">T</td>
<td id="cheatTd2_8_4">F</td>
<td id="cheatTd2_9_4">F</td>
<td id="cheatTd2_10_4">F</td>
<td id="cheatTd2_11_4">F</td>
<td id="cheatTd2_12_4">F</td>
<td id="cheatTd2_13_4">F</td>
<td id="cheatTd2_14_4">T</td>
<td id="cheatTd2_15_4">T</td>
</tr>
<tr>
<td id="cheatTd2_0_5" bgcolor="#dde2e6">-1</td>
<td id="cheatTd2_1_5">T</td>
<td id="cheatTd2_2_5">F</td>
<td id="cheatTd2_3_5">F</td>
<td id="cheatTd2_4_5">F</td>
<td id="cheatTd2_5_5">T</td>
<td id="cheatTd2_6_5">F</td>
<td id="cheatTd2_7_5">F</td>
<td id="cheatTd2_8_5">T</td>
<td id="cheatTd2_9_5">F</td>
<td id="cheatTd2_10_5">F</td>
<td id="cheatTd2_11_5">F</td>
<td id="cheatTd2_12_5">F</td>
<td id="cheatTd2_13_5">F</td>
<td id="cheatTd2_14_5">F</td>
<td id="cheatTd2_15_5">F</td>
</tr>
<tr>
<td id="cheatTd2_0_6" bgcolor="#dde2e6">“1″</td>
<td id="cheatTd2_1_6">T</td>
<td id="cheatTd2_2_6">F</td>
<td id="cheatTd2_3_6">T</td>
<td id="cheatTd2_4_6">F</td>
<td id="cheatTd2_5_6">F</td>
<td id="cheatTd2_6_6">T</td>
<td id="cheatTd2_7_6">F</td>
<td id="cheatTd2_8_6">F</td>
<td id="cheatTd2_9_6">F</td>
<td id="cheatTd2_10_6">F</td>
<td id="cheatTd2_11_6">F</td>
<td id="cheatTd2_12_6">F</td>
<td id="cheatTd2_13_6">F</td>
<td id="cheatTd2_14_6">F</td>
<td id="cheatTd2_15_6">F</td>
</tr>
<tr>
<td id="cheatTd2_0_7" bgcolor="#dde2e6">“0″</td>
<td id="cheatTd2_1_7">F</td>
<td id="cheatTd2_2_7">T</td>
<td id="cheatTd2_3_7">F</td>
<td id="cheatTd2_4_7">T</td>
<td id="cheatTd2_5_7">F</td>
<td id="cheatTd2_6_7">F</td>
<td id="cheatTd2_7_7">T</td>
<td id="cheatTd2_8_7">F</td>
<td id="cheatTd2_9_7">F</td>
<td id="cheatTd2_10_7">F</td>
<td id="cheatTd2_11_7">F</td>
<td id="cheatTd2_12_7">F</td>
<td id="cheatTd2_13_7">F</td>
<td id="cheatTd2_14_7">F</td>
<td id="cheatTd2_15_7">F</td>
</tr>
<tr>
<td id="cheatTd2_0_8" bgcolor="#dde2e6">“-1″</td>
<td id="cheatTd2_1_8">T</td>
<td id="cheatTd2_2_8">F</td>
<td id="cheatTd2_3_8">F</td>
<td id="cheatTd2_4_8">F</td>
<td id="cheatTd2_5_8">T</td>
<td id="cheatTd2_6_8">F</td>
<td id="cheatTd2_7_8">F</td>
<td id="cheatTd2_8_8">T</td>
<td id="cheatTd2_9_8">F</td>
<td id="cheatTd2_10_8">F</td>
<td id="cheatTd2_11_8">F</td>
<td id="cheatTd2_12_8">F</td>
<td id="cheatTd2_13_8">F</td>
<td id="cheatTd2_14_8">F</td>
<td id="cheatTd2_15_8">F</td>
</tr>
<tr>
<td id="cheatTd2_0_9" bgcolor="#dde2e6">“1.3″</td>
<td id="cheatTd2_1_9">T</td>
<td id="cheatTd2_2_9">F</td>
<td id="cheatTd2_3_9">F</td>
<td id="cheatTd2_4_9">F</td>
<td id="cheatTd2_5_9">F</td>
<td id="cheatTd2_6_9">F</td>
<td id="cheatTd2_7_9">F</td>
<td id="cheatTd2_8_9">F</td>
<td id="cheatTd2_9_9">T</td>
<td id="cheatTd2_10_9">T</td>
<td id="cheatTd2_11_9">T</td>
<td id="cheatTd2_12_9">T</td>
<td id="cheatTd2_13_9">F</td>
<td id="cheatTd2_14_9">F</td>
<td id="cheatTd2_15_9">F</td>
</tr>
<tr>
<td id="cheatTd2_0_10" bgcolor="#dde2e6">“1.30″</td>
<td id="cheatTd2_1_10">T</td>
<td id="cheatTd2_2_10">F</td>
<td id="cheatTd2_3_10">F</td>
<td id="cheatTd2_4_10">F</td>
<td id="cheatTd2_5_10">F</td>
<td id="cheatTd2_6_10">F</td>
<td id="cheatTd2_7_10">F</td>
<td id="cheatTd2_8_10">F</td>
<td id="cheatTd2_9_10">T</td>
<td id="cheatTd2_10_10">T</td>
<td id="cheatTd2_11_10">T</td>
<td id="cheatTd2_12_10">T</td>
<td id="cheatTd2_13_10">F</td>
<td id="cheatTd2_14_10">F</td>
<td id="cheatTd2_15_10">F</td>
</tr>
<tr>
<td id="cheatTd2_0_11" bgcolor="#dde2e6">1.3</td>
<td id="cheatTd2_1_11">T</td>
<td id="cheatTd2_2_11">F</td>
<td id="cheatTd2_3_11">F</td>
<td id="cheatTd2_4_11">F</td>
<td id="cheatTd2_5_11">F</td>
<td id="cheatTd2_6_11">F</td>
<td id="cheatTd2_7_11">F</td>
<td id="cheatTd2_8_11">F</td>
<td id="cheatTd2_9_11">T</td>
<td id="cheatTd2_10_11">T</td>
<td id="cheatTd2_11_11">T</td>
<td id="cheatTd2_12_11">T</td>
<td id="cheatTd2_13_11">F</td>
<td id="cheatTd2_14_11">F</td>
<td id="cheatTd2_15_11">F</td>
</tr>
<tr>
<td id="cheatTd2_0_12" bgcolor="#dde2e6">1.30</td>
<td id="cheatTd2_1_12">T</td>
<td id="cheatTd2_2_12">F</td>
<td id="cheatTd2_3_12">F</td>
<td id="cheatTd2_4_12">F</td>
<td id="cheatTd2_5_12">F</td>
<td id="cheatTd2_6_12">F</td>
<td id="cheatTd2_7_12">F</td>
<td id="cheatTd2_8_12">F</td>
<td id="cheatTd2_9_12">T</td>
<td id="cheatTd2_10_12">T</td>
<td id="cheatTd2_11_12">T</td>
<td id="cheatTd2_12_12">T</td>
<td id="cheatTd2_13_12">F</td>
<td id="cheatTd2_14_12">F</td>
<td id="cheatTd2_15_12">F</td>
</tr>
<tr>
<td id="cheatTd2_0_13" bgcolor="#dde2e6">array()</td>
<td id="cheatTd2_1_13">F</td>
<td id="cheatTd2_2_13">T</td>
<td id="cheatTd2_3_13">F</td>
<td id="cheatTd2_4_13">F</td>
<td id="cheatTd2_5_13">F</td>
<td id="cheatTd2_6_13">F</td>
<td id="cheatTd2_7_13">F</td>
<td id="cheatTd2_8_13">F</td>
<td id="cheatTd2_9_13">F</td>
<td id="cheatTd2_10_13">F</td>
<td id="cheatTd2_11_13">F</td>
<td id="cheatTd2_12_13">F</td>
<td id="cheatTd2_13_13">T</td>
<td id="cheatTd2_14_13">F</td>
<td id="cheatTd2_15_13">F</td>
</tr>
<tr>
<td id="cheatTd2_0_14" bgcolor="#dde2e6">“foo”</td>
<td id="cheatTd2_1_14">T</td>
<td id="cheatTd2_2_14">F</td>
<td id="cheatTd2_3_14">F</td>
<td id="cheatTd2_4_14">T</td>
<td id="cheatTd2_5_14">F</td>
<td id="cheatTd2_6_14">F</td>
<td id="cheatTd2_7_14">F</td>
<td id="cheatTd2_8_14">F</td>
<td id="cheatTd2_9_14">F</td>
<td id="cheatTd2_10_14">F</td>
<td id="cheatTd2_11_14">F</td>
<td id="cheatTd2_12_14">F</td>
<td id="cheatTd2_13_14">F</td>
<td id="cheatTd2_14_14">T</td>
<td id="cheatTd2_15_14">F</td>
</tr>
<tr>
<td id="cheatTd2_0_15" bgcolor="#dde2e6">“”</td>
<td id="cheatTd2_1_15">F</td>
<td id="cheatTd2_2_15">T</td>
<td id="cheatTd2_3_15">F</td>
<td id="cheatTd2_4_15">T</td>
<td id="cheatTd2_5_15">F</td>
<td id="cheatTd2_6_15">F</td>
<td id="cheatTd2_7_15">F</td>
<td id="cheatTd2_8_15">F</td>
<td id="cheatTd2_9_15">F</td>
<td id="cheatTd2_10_15">F</td>
<td id="cheatTd2_11_15">F</td>
<td id="cheatTd2_12_15">F</td>
<td id="cheatTd2_13_15">F</td>
<td id="cheatTd2_14_15">F</td>
<td id="cheatTd2_15_15">T</td>
</tr>
</tbody>
</table>
<h2>用===比较</h2>
<table border="1" cellspacing="0" cellpadding="4">
<tbody>
<tr>
<td id="cheatTd3_0_0" bgcolor="#dde2e6"></td>
<td id="cheatTd3_1_0" bgcolor="#dde2e6">true</td>
<td id="cheatTd3_2_0" bgcolor="#dde2e6">false</td>
<td id="cheatTd3_3_0" bgcolor="#dde2e6">1</td>
<td id="cheatTd3_4_0" bgcolor="#dde2e6">0</td>
<td id="cheatTd3_5_0" bgcolor="#dde2e6">-1</td>
<td id="cheatTd3_6_0" bgcolor="#dde2e6">“1″</td>
<td id="cheatTd3_7_0" bgcolor="#dde2e6">“0″</td>
<td id="cheatTd3_8_0" bgcolor="#dde2e6">“-1″</td>
<td id="cheatTd3_9_0" bgcolor="#dde2e6">“1.3″</td>
<td id="cheatTd3_10_0" bgcolor="#dde2e6">“1.30″</td>
<td id="cheatTd3_11_0" bgcolor="#dde2e6">1.3</td>
<td id="cheatTd3_12_0" bgcolor="#dde2e6">1.30</td>
<td id="cheatTd3_13_0" bgcolor="#dde2e6">array()</td>
<td id="cheatTd3_14_0" bgcolor="#dde2e6">“foo”</td>
<td id="cheatTd3_15_0" bgcolor="#dde2e6">“”</td>
</tr>
<tr>
<td id="cheatTd3_0_1" bgcolor="#dde2e6">true</td>
<td id="cheatTd3_1_1">T</td>
<td id="cheatTd3_2_1">F</td>
<td id="cheatTd3_3_1">F</td>
<td id="cheatTd3_4_1">F</td>
<td id="cheatTd3_5_1">F</td>
<td id="cheatTd3_6_1">F</td>
<td id="cheatTd3_7_1">F</td>
<td id="cheatTd3_8_1">F</td>
<td id="cheatTd3_9_1">F</td>
<td id="cheatTd3_10_1">F</td>
<td id="cheatTd3_11_1">F</td>
<td id="cheatTd3_12_1">F</td>
<td id="cheatTd3_13_1">F</td>
<td id="cheatTd3_14_1">F</td>
<td id="cheatTd3_15_1">F</td>
</tr>
<tr>
<td id="cheatTd3_0_2" bgcolor="#dde2e6">false</td>
<td id="cheatTd3_1_2">F</td>
<td id="cheatTd3_2_2">T</td>
<td id="cheatTd3_3_2">F</td>
<td id="cheatTd3_4_2">F</td>
<td id="cheatTd3_5_2">F</td>
<td id="cheatTd3_6_2">F</td>
<td id="cheatTd3_7_2">F</td>
<td id="cheatTd3_8_2">F</td>
<td id="cheatTd3_9_2">F</td>
<td id="cheatTd3_10_2">F</td>
<td id="cheatTd3_11_2">F</td>
<td id="cheatTd3_12_2">F</td>
<td id="cheatTd3_13_2">F</td>
<td id="cheatTd3_14_2">F</td>
<td id="cheatTd3_15_2">F</td>
</tr>
<tr>
<td id="cheatTd3_0_3" bgcolor="#dde2e6">1</td>
<td id="cheatTd3_1_3">F</td>
<td id="cheatTd3_2_3">F</td>
<td id="cheatTd3_3_3">T</td>
<td id="cheatTd3_4_3">F</td>
<td id="cheatTd3_5_3">F</td>
<td id="cheatTd3_6_3">F</td>
<td id="cheatTd3_7_3">F</td>
<td id="cheatTd3_8_3">F</td>
<td id="cheatTd3_9_3">F</td>
<td id="cheatTd3_10_3">F</td>
<td id="cheatTd3_11_3">F</td>
<td id="cheatTd3_12_3">F</td>
<td id="cheatTd3_13_3">F</td>
<td id="cheatTd3_14_3">F</td>
<td id="cheatTd3_15_3">F</td>
</tr>
<tr>
<td id="cheatTd3_0_4" bgcolor="#dde2e6">0</td>
<td id="cheatTd3_1_4">F</td>
<td id="cheatTd3_2_4">F</td>
<td id="cheatTd3_3_4">F</td>
<td id="cheatTd3_4_4">T</td>
<td id="cheatTd3_5_4">F</td>
<td id="cheatTd3_6_4">F</td>
<td id="cheatTd3_7_4">F</td>
<td id="cheatTd3_8_4">F</td>
<td id="cheatTd3_9_4">F</td>
<td id="cheatTd3_10_4">F</td>
<td id="cheatTd3_11_4">F</td>
<td id="cheatTd3_12_4">F</td>
<td id="cheatTd3_13_4">F</td>
<td id="cheatTd3_14_4">F</td>
<td id="cheatTd3_15_4">F</td>
</tr>
<tr>
<td id="cheatTd3_0_5" bgcolor="#dde2e6">-1</td>
<td id="cheatTd3_1_5">F</td>
<td id="cheatTd3_2_5">F</td>
<td id="cheatTd3_3_5">F</td>
<td id="cheatTd3_4_5">F</td>
<td id="cheatTd3_5_5">T</td>
<td id="cheatTd3_6_5">F</td>
<td id="cheatTd3_7_5">F</td>
<td id="cheatTd3_8_5">F</td>
<td id="cheatTd3_9_5">F</td>
<td id="cheatTd3_10_5">F</td>
<td id="cheatTd3_11_5">F</td>
<td id="cheatTd3_12_5">F</td>
<td id="cheatTd3_13_5">F</td>
<td id="cheatTd3_14_5">F</td>
<td id="cheatTd3_15_5">F</td>
</tr>
<tr>
<td id="cheatTd3_0_6" bgcolor="#dde2e6">“1″</td>
<td id="cheatTd3_1_6">F</td>
<td id="cheatTd3_2_6">F</td>
<td id="cheatTd3_3_6">F</td>
<td id="cheatTd3_4_6">F</td>
<td id="cheatTd3_5_6">F</td>
<td id="cheatTd3_6_6">T</td>
<td id="cheatTd3_7_6">F</td>
<td id="cheatTd3_8_6">F</td>
<td id="cheatTd3_9_6">F</td>
<td id="cheatTd3_10_6">F</td>
<td id="cheatTd3_11_6">F</td>
<td id="cheatTd3_12_6">F</td>
<td id="cheatTd3_13_6">F</td>
<td id="cheatTd3_14_6">F</td>
<td id="cheatTd3_15_6">F</td>
</tr>
<tr>
<td id="cheatTd3_0_7" bgcolor="#dde2e6">“0″</td>
<td id="cheatTd3_1_7">F</td>
<td id="cheatTd3_2_7">F</td>
<td id="cheatTd3_3_7">F</td>
<td id="cheatTd3_4_7">F</td>
<td id="cheatTd3_5_7">F</td>
<td id="cheatTd3_6_7">F</td>
<td id="cheatTd3_7_7">T</td>
<td id="cheatTd3_8_7">F</td>
<td id="cheatTd3_9_7">F</td>
<td id="cheatTd3_10_7">F</td>
<td id="cheatTd3_11_7">F</td>
<td id="cheatTd3_12_7">F</td>
<td id="cheatTd3_13_7">F</td>
<td id="cheatTd3_14_7">F</td>
<td id="cheatTd3_15_7">F</td>
</tr>
<tr>
<td id="cheatTd3_0_8" bgcolor="#dde2e6">“-1″</td>
<td id="cheatTd3_1_8">F</td>
<td id="cheatTd3_2_8">F</td>
<td id="cheatTd3_3_8">F</td>
<td id="cheatTd3_4_8">F</td>
<td id="cheatTd3_5_8">F</td>
<td id="cheatTd3_6_8">F</td>
<td id="cheatTd3_7_8">F</td>
<td id="cheatTd3_8_8">T</td>
<td id="cheatTd3_9_8">F</td>
<td id="cheatTd3_10_8">F</td>
<td id="cheatTd3_11_8">F</td>
<td id="cheatTd3_12_8">F</td>
<td id="cheatTd3_13_8">F</td>
<td id="cheatTd3_14_8">F</td>
<td id="cheatTd3_15_8">F</td>
</tr>
<tr>
<td id="cheatTd3_0_9" bgcolor="#dde2e6">“1.3″</td>
<td id="cheatTd3_1_9">F</td>
<td id="cheatTd3_2_9">F</td>
<td id="cheatTd3_3_9">F</td>
<td id="cheatTd3_4_9">F</td>
<td id="cheatTd3_5_9">F</td>
<td id="cheatTd3_6_9">F</td>
<td id="cheatTd3_7_9">F</td>
<td id="cheatTd3_8_9">F</td>
<td id="cheatTd3_9_9">T</td>
<td id="cheatTd3_10_9">F</td>
<td id="cheatTd3_11_9">F</td>
<td id="cheatTd3_12_9">F</td>
<td id="cheatTd3_13_9">F</td>
<td id="cheatTd3_14_9">F</td>
<td id="cheatTd3_15_9">F</td>
</tr>
<tr>
<td id="cheatTd3_0_10" bgcolor="#dde2e6">“1.30″</td>
<td id="cheatTd3_1_10">F</td>
<td id="cheatTd3_2_10">F</td>
<td id="cheatTd3_3_10">F</td>
<td id="cheatTd3_4_10">F</td>
<td id="cheatTd3_5_10">F</td>
<td id="cheatTd3_6_10">F</td>
<td id="cheatTd3_7_10">F</td>
<td id="cheatTd3_8_10">F</td>
<td id="cheatTd3_9_10">F</td>
<td id="cheatTd3_10_10">T</td>
<td id="cheatTd3_11_10">F</td>
<td id="cheatTd3_12_10">F</td>
<td id="cheatTd3_13_10">F</td>
<td id="cheatTd3_14_10">F</td>
<td id="cheatTd3_15_10">F</td>
</tr>
<tr>
<td id="cheatTd3_0_11" bgcolor="#dde2e6">1.3</td>
<td id="cheatTd3_1_11">F</td>
<td id="cheatTd3_2_11">F</td>
<td id="cheatTd3_3_11">F</td>
<td id="cheatTd3_4_11">F</td>
<td id="cheatTd3_5_11">F</td>
<td id="cheatTd3_6_11">F</td>
<td id="cheatTd3_7_11">F</td>
<td id="cheatTd3_8_11">F</td>
<td id="cheatTd3_9_11">F</td>
<td id="cheatTd3_10_11">F</td>
<td id="cheatTd3_11_11">T</td>
<td id="cheatTd3_12_11">T</td>
<td id="cheatTd3_13_11">F</td>
<td id="cheatTd3_14_11">F</td>
<td id="cheatTd3_15_11">F</td>
</tr>
<tr>
<td id="cheatTd3_0_12" bgcolor="#dde2e6">1.30</td>
<td id="cheatTd3_1_12">F</td>
<td id="cheatTd3_2_12">F</td>
<td id="cheatTd3_3_12">F</td>
<td id="cheatTd3_4_12">F</td>
<td id="cheatTd3_5_12">F</td>
<td id="cheatTd3_6_12">F</td>
<td id="cheatTd3_7_12">F</td>
<td id="cheatTd3_8_12">F</td>
<td id="cheatTd3_9_12">F</td>
<td id="cheatTd3_10_12">F</td>
<td id="cheatTd3_11_12">T</td>
<td id="cheatTd3_12_12">T</td>
<td id="cheatTd3_13_12">F</td>
<td id="cheatTd3_14_12">F</td>
<td id="cheatTd3_15_12">F</td>
</tr>
<tr>
<td id="cheatTd3_0_13" bgcolor="#dde2e6">array()</td>
<td id="cheatTd3_1_13">F</td>
<td id="cheatTd3_2_13">F</td>
<td id="cheatTd3_3_13">F</td>
<td id="cheatTd3_4_13">F</td>
<td id="cheatTd3_5_13">F</td>
<td id="cheatTd3_6_13">F</td>
<td id="cheatTd3_7_13">F</td>
<td id="cheatTd3_8_13">F</td>
<td id="cheatTd3_9_13">F</td>
<td id="cheatTd3_10_13">F</td>
<td id="cheatTd3_11_13">F</td>
<td id="cheatTd3_12_13">F</td>
<td id="cheatTd3_13_13">T</td>
<td id="cheatTd3_14_13">F</td>
<td id="cheatTd3_15_13">F</td>
</tr>
<tr>
<td id="cheatTd3_0_14" bgcolor="#dde2e6">“foo”</td>
<td id="cheatTd3_1_14">F</td>
<td id="cheatTd3_2_14">F</td>
<td id="cheatTd3_3_14">F</td>
<td id="cheatTd3_4_14">F</td>
<td id="cheatTd3_5_14">F</td>
<td id="cheatTd3_6_14">F</td>
<td id="cheatTd3_7_14">F</td>
<td id="cheatTd3_8_14">F</td>
<td id="cheatTd3_9_14">F</td>
<td id="cheatTd3_10_14">F</td>
<td id="cheatTd3_11_14">F</td>
<td id="cheatTd3_12_14">F</td>
<td id="cheatTd3_13_14">F</td>
<td id="cheatTd3_14_14">T</td>
<td id="cheatTd3_15_14">F</td>
</tr>
<tr>
<td id="cheatTd3_0_15" bgcolor="#dde2e6">“”</td>
<td id="cheatTd3_1_15">F</td>
<td id="cheatTd3_2_15">F</td>
<td id="cheatTd3_3_15">F</td>
<td id="cheatTd3_4_15">F</td>
<td id="cheatTd3_5_15">F</td>
<td id="cheatTd3_6_15">F</td>
<td id="cheatTd3_7_15">F</td>
<td id="cheatTd3_8_15">F</td>
<td id="cheatTd3_9_15">F</td>
<td id="cheatTd3_10_15">F</td>
<td id="cheatTd3_11_15">F</td>
<td id="cheatTd3_12_15">F</td>
<td id="cheatTd3_13_15">F</td>
<td id="cheatTd3_14_15">F</td>
<td id="cheatTd3_15_15">T</td>
</tr>
</tbody>
</table>
<hr />
<p>© <a href="http://www.iwanna.cn">我想网</a> Akon 所有 , 2011. |
<a href="http://www.iwanna.cn/archives/2011/01/06/6205/">永久链接</a> |
<a href="http://www.iwanna.cn/archives/2011/01/06/6205/#comments">没有评论</a> |
提交到
<a rel="nofollow" target="_blank" href="http://www.google.com/reader/view/feed/http://www.iwanna.cn/archives/2011/01/06/6205/">Google Reader</a>
<a rel="nofollow" target="_blank" href="http://www.xianguo.com/subscribe.php?url=http://www.iwanna.cn/archives/2011/01/06/6205/">鲜果</a>
<a rel="nofollow" target="_blank" href="http://www.zhuaxia.com/add_channel.php?url=http://www.iwanna.cn/archives/2011/01/06/6205/">抓虾</a>
<hr />
<script type="text/javascript"><!--
google_ad_client = "pub-2057344547305288";
/* 336x280,iwanna feed,created 10/3/10 */
google_ad_slot = "9738886183";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<hr />
</p>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.iwanna.cn/archives/2011/01/06/6205/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>2010年最好的12个免费wordpress皮肤</title>
		<link>http://www.iwanna.cn/archives/2011/01/03/6198/</link>
		<comments>http://www.iwanna.cn/archives/2011/01/03/6198/#comments</comments>
		<pubDate>Mon, 03 Jan 2011 13:16:10 +0000</pubDate>
		<dc:creator>seasun</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[theme]]></category>

		<guid isPermaLink="false">http://www.iwanna.cn/?p=6198</guid>
		<description><![CDATA[在2010年，越来越多的个人独立博客出现在网络上，真正到了全民皆博的时代。而在大部分博主看来，wordpress绝对是最好的选择。当然了， 美观大方个性的wordpress皮肤也是必需的。WDL的作者从大量的优秀的wordpress皮肤中精心挑选了下面这12款相当杰出的作品，更重要的是他们都 是免费的。 2010年最佳jQuery插件（排名不分先后）：(猛击皮肤标题或者缩略图可以直达demo页面) Shaken Grid Imbalance Boldy – download Mansion Simplefolio Blissful Blog Simplo – download Structure AutoFocus+ Koi Skeptical Peacekeeper © 我想网 Akon 所有 , 2011. &#124; 永久链接 &#124; 没有评论 &#124; 提交到 Google Reader 鲜果 抓虾 Feed enhanced by Better Feed from Ozh]]></description>
			<content:encoded><![CDATA[<p>在2010年，越来越多的个人独立博客出现在网络上，真正到了全民皆博的时代。而在大部分博主看来，wordpress绝对是最好的选择。当然了， 美观大方个性的wordpress皮肤也是必需的。<a href="http://webdesignledger.com/" target="_blank">WDL</a>的作者从大量的优秀的wordpress皮肤中精心挑选了下面这12款相当杰出的作品，更重要的是他们都 是免费的。</p>
<p>2010年最佳jQuery插件（排名不分先后）：(猛击皮肤标题或者缩略图可以直达demo页面)</p>
<h3><a href="http://shakenandstirredweb.com/331/introducing-our-first-free-wordpress-theme-shaken-grid" target="_blank">Shaken Grid</a></h3>
<p><a href="http://shakenandstirredweb.com/331/introducing-our-first-free-wordpress-theme-shaken-grid" target="_blank"><img title="wordpress_2010_最佳皮肤" src="http://images.uheed.com/iwanna/2011/01/03/wordpress-theme/wordpress_2010_5.jpg" alt="wordpress_2010_最佳皮肤" width="540" height="407" /></a><br />
<span id="more-6198"></span></p>
<h3><a href="http://wpshower.com/free-wordpress-themes/imbalance-free-wordpress-theme/" target="_blank">Imbalance</a></h3>
<p><a href="http://wpshower.com/free-wordpress-themes/imbalance-free-wordpress-theme/" target="_blank"><img title="wordpress_2010_最佳皮肤" src="http://images.uheed.com/iwanna/2011/01/03/wordpress-theme/wordpress_2010_4.jpg" alt="wordpress_2010_最佳皮肤" width="540" height="387" /></a></p>
<h3><a href="http://wordpress.site5.net/boldy/" target="_blank">Boldy</a> – <a href="http://www.site5.com/wp-themes/download.php?file=boldy.zip" target="_blank">download</a></h3>
<p><a href="http://wordpress.site5.net/boldy/" target="_blank"><img title="wordpress_2010_最佳皮肤" src="http://images.uheed.com/iwanna/2011/01/03/wordpress-theme/wordpress_2010_11.jpg" alt="wordpress_2010_最佳皮肤" width="540" height="457" /></a></p>
<h3><a href="http://graphpaperpress.com/themes/mansion/" target="_blank">Mansion</a></h3>
<p><a href="http://graphpaperpress.com/themes/mansion/" target="_blank"><img title="wordpress_2010_最佳皮肤" src="http://images.uheed.com/iwanna/2011/01/03/wordpress-theme/wordpress_2010_6.jpg" alt="wordpress_2010_最佳皮肤" width="540" height="290" /></a></p>
<h3><a href="http://www.smashingmagazine.com/2010/02/07/simplefolio-a-free-clean-portfolio-wordpress-theme/" target="_blank">Simplefolio</a></h3>
<p><a href="http://www.smashingmagazine.com/2010/02/07/simplefolio-a-free-clean-portfolio-wordpress-theme/" target="_blank"><img title="wordpress_2010_最佳皮肤" src="http://images.uheed.com/iwanna/2011/01/03/wordpress-theme/wordpress_2010_7.jpg" alt="wordpress_2010_最佳皮肤" width="540" height="373" /></a></p>
<h3><a href="http://blissfulblog.com/" target="_blank">Blissful Blog</a></h3>
<p><a href="http://blissfulblog.com/" target="_blank"><img title="wordpress_2010_最佳皮肤" src="http://images.uheed.com/iwanna/2011/01/03/wordpress-theme/wordpress_2010_8.jpg" alt="wordpress_2010_最佳皮肤" width="540" height="404" /></a></p>
<h3><a href="http://wordpress.site5.net/simplo/" target="_blank">Simplo</a> – <a href="http://www.site5.com/wp-themes/download.php?file=simplo.zip" target="_blank">download</a></h3>
<p><a href="http://wordpress.site5.net/simplo/" target="_blank"><img title="wordpress_2010_最佳皮肤" src="http://images.uheed.com/iwanna/2011/01/03/wordpress-theme/wordpress_2010_9.jpg" alt="wordpress_2010_最佳皮肤" width="540" height="398" /></a></p>
<h3><a href="http://www.organicthemes.com/themes/structure-theme/" target="_blank">Structure</a></h3>
<p><a href="http://www.organicthemes.com/themes/structure-theme/" target="_blank"><img title="wordpress_2010_最佳皮肤" src="http://images.uheed.com/iwanna/2011/01/03/wordpress-theme/wordpress_minimal_3.jpg" alt="wordpress_2010_最佳皮肤" width="540" height="398" /></a></p>
<h3><a href="http://fthrwght.com/autofocus/" target="_blank">AutoFocus+</a></h3>
<p><a href="http://fthrwght.com/autofocus/" target="_blank"><img title="wordpress_2010_最佳皮肤" src="http://images.uheed.com/iwanna/2011/01/03/wordpress-theme/wordpress_2010_10.jpg" alt="wordpress_2010_最佳皮肤" width="540" height="485" /></a></p>
<h3><a href="http://themify.me/themes/koi" target="_blank">Koi</a></h3>
<p><a href="http://themify.me/themes/koi" target="_blank"><img title="wordpress_2010_最佳皮肤" src="http://images.uheed.com/iwanna/2011/01/03/wordpress-theme/wordpress_2010_1.jpg" alt="wordpress_2010_最佳皮肤" width="540" height="411" /></a></p>
<h3><a href="http://www.woothemes.com/2010/09/skeptical/" target="_blank">Skeptical</a></h3>
<p><a href="http://www.woothemes.com/2010/09/skeptical/" target="_blank"><img title="wordpress_2010_最佳皮肤" src="http://images.uheed.com/iwanna/2011/01/03/wordpress-theme/wordpress_2010_2.jpg" alt="wordpress_2010_最佳皮肤" width="540" height="488" /></a></p>
<h3><a href="http://www.web2feel.com/peacekeeper/" target="_blank">Peacekeeper</a></h3>
<p><a href="http://www.web2feel.com/peacekeeper/" target="_blank"><img title="wordpress_2010_最佳皮肤" src="http://images.uheed.com/iwanna/2011/01/03/wordpress-theme/wordpress_2010_12.jpg" alt="wordpress_2010_最佳皮肤" width="540" height="454" /></a></p>
<hr />
<p>© <a href="http://www.iwanna.cn">我想网</a> Akon 所有 , 2011. |
<a href="http://www.iwanna.cn/archives/2011/01/03/6198/">永久链接</a> |
<a href="http://www.iwanna.cn/archives/2011/01/03/6198/#comments">没有评论</a> |
提交到
<a rel="nofollow" target="_blank" href="http://www.google.com/reader/view/feed/http://www.iwanna.cn/archives/2011/01/03/6198/">Google Reader</a>
<a rel="nofollow" target="_blank" href="http://www.xianguo.com/subscribe.php?url=http://www.iwanna.cn/archives/2011/01/03/6198/">鲜果</a>
<a rel="nofollow" target="_blank" href="http://www.zhuaxia.com/add_channel.php?url=http://www.iwanna.cn/archives/2011/01/03/6198/">抓虾</a>
<hr />
<script type="text/javascript"><!--
google_ad_client = "pub-2057344547305288";
/* 336x280,iwanna feed,created 10/3/10 */
google_ad_slot = "9738886183";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<hr />
</p>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.iwanna.cn/archives/2011/01/03/6198/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>10位顶级PHP大师的开发原则</title>
		<link>http://www.iwanna.cn/archives/2011/01/03/6180/</link>
		<comments>http://www.iwanna.cn/archives/2011/01/03/6180/#comments</comments>
		<pubDate>Mon, 03 Jan 2011 07:26:51 +0000</pubDate>
		<dc:creator>seasun</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Program]]></category>

		<guid isPermaLink="false">http://www.iwanna.cn/?p=6180</guid>
		<description><![CDATA[在Web开发/网站设计世界里，PHP是最流行的语言之一，从PHP里，你能够很容易的找到你所需的脚本，遗憾的是，很少人会去用“最佳做法”去写一个 PHP程序。这里，我们向大家介绍PHP的10种最佳实践，当然，每一种都是经过大师们证明而得出的。 1. 在合适的时候使用PHP – Rasmus Lerdorf 没有谁比PHP的创建者Rasmus Lerdorf明白PHP用在什么地方是更合理的，他于1995年发布了PHP这门语言，从那时起，PHP就像燎原之火，烧遍了整个开发阵营，改变了互联 网的世界。可是，Rasmus并不是因此而创建PHP的。PHP是为了解决web开发者的实际问题而诞生的。 和许多开源项目一样，PHP变得流行，流行的动机并不能用正常的哲学来进行解释，甚至流行得有些 孤芳自赏。它完全可以作为一个案例，一个解决各种Web问题的工具需求所引起的案例，因此当PHP刚出现的时候，这种工具需求全部聚焦到PHP的身上。 但是，你不能奢望PHP可以解决所有问题。Lerdorf是第一个承认PHP只是一种工具的人， 并且PHP也有很多力所不能及的情况。 根据工作的不同来选择合适的工具。我跑了很多家公司，为了说服他们部署和使用PHP，但是这并不 意味着PHP对所有问题都适用。它只是可以一个解决大部分问题的front-end脚步语言。 作为一个web开发者，尝试用PHP解决所有问题是不科学的，同时也会浪费你的时间。当PHP玩 不转的时候，不要犹豫，试用一下其他的语言吧。 2. 使用多表存储提高规模伸缩性 – Matt Mullenweg 没有人愿意质疑Matt Mullenweg在PHP方面的权威性，他开发了这个星球上最流行的blog系统,(依靠一个强大的社区力量支持)： WordPress. 创建Wordpress以后，Matt和他的团队启动了WordPress.com平台，一个基于WordPress MU的免费blog站点。现在，Wordpress.com已经拥有大约400万用户， 这些用户每天提供超过 140,000篇的日志。 (要查看更多Wordpress.com的统计情况，请点击这里.) 如果有人知道如何让网站的规模伸缩自如，这个人一定是Matt Mullenweg。2006年的时候 Matt对Wordpress的数据结构进行了前瞻性的改进，并且解释了为什么Wordpress MU对每个blog使用独立的MYSQL表格， 而不是把所有的blog数据都塞进一个巨大的表格。 我们测试过这个方法，但是发现如果要扩展它的伸缩性，代价太高。如果用一个整体的数据结构，在大 流量面前，你将会面临服务器硬件的问题。在MU里面。用户们都被分布到 独立的表格当中，并且可以轻易地组织起来。举个例子，WordPress.com把用户的数据分散存储到4096个数据库中，这些数据库可以分散大规模的 数据访问，实现流量和压力分流。 数据表的可迁移性让代码(blog)可以运行得更快，并且让系统具备更强的伸缩性。依靠强大的缓 存策略和灵活的数据库运用策略， Matt向人们展示了时下最流行的Facebook和Wordpress.com都可以在PHP下稳定运行，并且处理惊人的访问量。 3. 千万不要相信用户 – Dave Child Dave Child是Added Bytes (previously ilovejackdaniels.com) 网站的核心人物，这个网站以他出色的《cheat sheets [...]]]></description>
			<content:encoded><![CDATA[<p>在Web开发/网站设计世界里，PHP是最流行的语言之一，从PHP里，你能够很容易的找到你所需的脚本，遗憾的是，很少人会去用“最佳做法”去写一个 PHP程序。这里，我们向大家介绍PHP的10种最佳实践，当然，每一种都是经过大师们证明而得出的。</p>
<p><strong>1. 在合适的时候使用PHP –  Rasmus Lerdorf</strong></p>
<p>没有谁比PHP的创建者Rasmus  Lerdorf明白PHP用在什么地方是更合理的，他于1995年发布了PHP这门语言，从那时起，PHP就像燎原之火，烧遍了整个开发阵营，改变了互联  网的世界。可是，Rasmus并不是因此而创建PHP的。PHP是为了解决web开发者的实际问题而诞生的。</p>
<p>和许多开源项目一样，PHP变得流行，流行的动机并不能用正常的哲学来进行解释，甚至流行得有些 孤芳自赏。它完全可以作为一个案例，一个解决各种Web问题的工具需求所引起的案例，因此当PHP刚出现的时候，这种工具需求全部聚焦到PHP的身上。<br />
<span id="more-6180"></span><br />
但是，你不能奢望PHP可以解决所有问题。Lerdorf是第一个承认PHP只是一种工具的人， 并且PHP也有很多力所不能及的情况。</p>
<p>根据工作的不同来选择合适的工具。我跑了很多家公司，为了说服他们部署和使用PHP，但是这并不 意味着PHP对所有问题都适用。它只是可以一个解决大部分问题的front-end脚步语言。</p>
<p>作为一个web开发者，尝试用PHP解决所有问题是不科学的，同时也会浪费你的时间。当PHP玩 不转的时候，不要犹豫，试用一下其他的语言吧。</p>
<p><strong>2. 使用多表存储提高规模伸缩性 –  Matt Mullenweg</strong></p>
<p>没有人愿意质疑Matt  Mullenweg在PHP方面的权威性，他开发了这个星球上最流行的blog系统,(依靠一个强大的社区力量支持)： <a href="http://www.iwanna.cn/tags/wordpress-php-develope/" class="st_tag internal_tag" rel="tag" title="标签 Wordpress 下的日志">WordPress</a>.  创建Wordpress以后，Matt和他的团队启动了WordPress.com平台，一个基于WordPress  MU的免费blog站点。现在，<a href="http://www.iwanna.cn/tags/wordpress-php-develope/" class="st_tag internal_tag" rel="tag" title="标签 Wordpress 下的日志">Wordpress</a>.com已经拥有大约400万用户， 这些用户每天提供超过 140,000篇的日志。  (要查看更多Wordpress.com的统计情况，请点击这里.)</p>
<p>如果有人知道如何让网站的规模伸缩自如，这个人一定是Matt  Mullenweg。2006年的时候 Matt对Wordpress的数据结构进行了前瞻性的改进，并且解释了为什么Wordpress  MU对每个blog使用独立的MYSQL表格， 而不是把所有的blog数据都塞进一个巨大的表格。</p>
<p>我们测试过这个方法，但是发现如果要扩展它的伸缩性，代价太高。如果用一个整体的数据结构，在大 流量面前，你将会面临<a title="服务器" href="http://product.it168.com/list/b/0402_1.shtml" target="_blank">服务器</a>硬件的问题。在MU里面。用户们都被分布到 独立的表格当中，并且可以轻易地组织起来。举个例子，WordPress.com把用户的数据分散存储到4096个数据库中，这些数据库可以分散大规模的 数据访问，实现流量和压力分流。</p>
<p>数据表的可迁移性让代码(blog)可以运行得更快，并且让系统具备更强的伸缩性。依靠强大的缓 存策略和灵活的数据库运用策略，  Matt向人们展示了时下最流行的Facebook和Wordpress.com都可以在PHP下稳定运行，并且处理惊人的访问量。</p>
<p><strong>3. 千万不要相信用户 –  Dave Child</strong></p>
<p>Dave Child是Added Bytes (previously  ilovejackdaniels.com) 网站的核心人物，这个网站以他出色的《cheat sheets for many  programming languages》而闻名。 Dave为很多英国的公司服务，并且已经在编程世界里树立起相当的权威。</p>
<p>Dave为PHP开发者提供了很多深谋远虑的建议，并总结成了《writing secure  code in <a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag" title="标签 PHP 下的日志">PHP</a>》：千万不要相信你的用户，他们甚至可能会伤害你。</p>
<p>有一条web开发的基本原则，我重复多少遍都觉得不够，那就是：千万不要相信你的用户，同时要假 设你网站中的每个数据单元都是从用户那里收集来的恶意代 码。很多时候，你必须用javascript在客户端检验表单提交过来的内容，  如果你习惯了如此，那么，这是一个好习惯。如果安全性对你来说很重要，这就是最重要最需要学习的原则。</p>
<p>Dave目前正致力于为它的《Writing Secure  PHP》系列书籍整理实例，书的最后他说:</p>
<p>最后，变得偏执一点吧。除非你认为你的站点永远不会受到攻击，否则就正视所有的问题，当问题真正 发生的时候，你的情况会变得很糟。你需要把每个用户都看成会带来一场攻防站的黑客，想尽一切办法来保护站点的安全，同时想好相应问题的解决方案。</p>
<hr />
<p>© <a href="http://www.iwanna.cn">我想网</a> Akon 所有 , 2011. |
<a href="http://www.iwanna.cn/archives/2011/01/03/6180/">永久链接</a> |
<a href="http://www.iwanna.cn/archives/2011/01/03/6180/#comments">没有评论</a> |
提交到
<a rel="nofollow" target="_blank" href="http://www.google.com/reader/view/feed/http://www.iwanna.cn/archives/2011/01/03/6180/">Google Reader</a>
<a rel="nofollow" target="_blank" href="http://www.xianguo.com/subscribe.php?url=http://www.iwanna.cn/archives/2011/01/03/6180/">鲜果</a>
<a rel="nofollow" target="_blank" href="http://www.zhuaxia.com/add_channel.php?url=http://www.iwanna.cn/archives/2011/01/03/6180/">抓虾</a>
<hr />
<script type="text/javascript"><!--
google_ad_client = "pub-2057344547305288";
/* 336x280,iwanna feed,created 10/3/10 */
google_ad_slot = "9738886183";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<hr />
</p>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.iwanna.cn/archives/2011/01/03/6180/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>使用PHP自动生成密码的源代码</title>
		<link>http://www.iwanna.cn/archives/2010/12/09/6116/</link>
		<comments>http://www.iwanna.cn/archives/2010/12/09/6116/#comments</comments>
		<pubDate>Thu, 09 Dec 2010 14:45:33 +0000</pubDate>
		<dc:creator>seasun</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[程序源码]]></category>
		<category><![CDATA[Source-code]]></category>

		<guid isPermaLink="false">http://www.iwanna.cn/?p=6116</guid>
		<description><![CDATA[使用PHP自动生成密码 In this tutorial I will show you how to generate random passwords that are highly secure and extremely difficult to crack. However you can choose between various complexity/strength and you can set password length as well. Step 1. Let’s go through what we need to generate passwords. First we need a list of words [...]]]></description>
			<content:encoded><![CDATA[<p><strong>使用PHP自动生成密码</strong></p>
<p>In  this <a href="http://www.iwanna.cn/tags/tutorial/" class="st_tag internal_tag" rel="tag" title="标签 Tutorial 下的日志">tutorial</a> I will show you how to generate random passwords that are  highly secure and extremely difficult to crack. However you can choose  between various complexity/strength and you can set password length as  well.</p>
<p><strong>Step 1.</strong></p>
<p>Let’s  go through what we need to generate passwords. First we need a list of  words and/or characters what we can use for password generation. I don’t  offer using word lists as it is easier to guess and password recovery  tools are using such lists as well. So I will focus only on character  lists.</p>
<p>The idea is to create a string from the  characters and than in a loop we select an item from this string  (character list) one by one until we reach the requested length. To  realize this we will implement a function with 2 parameters. The first  is the length of the requested password and the second is the  strength/complexity of the password.      <strong></strong><br />
<span id="more-6116"></span><br />
<strong>Step  2.</strong></p>
<p>The function use case looks like this:<br />
<!--[endif]--></p>
<ul>
<li>Initializing  the <a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag" title="标签 PHP 下的日志">PHP</a> random generator using the actual time value.</li>
<li>Define 3 various strings for  the various password complexity.</li>
<li>Reset the password and length  counter variables</li>
<li>Create  a loop until the requested length and append a random character one by  one to the password string.</li>
<li>In the loop I made one more check to make all  character different in the generated password.</li>
<li>Return with the ready  password.</li>
</ul>
<p>It is quite simple and you can  generate really strong passwords with it.</p>
<p>The  complete code looks like this:</p>
<p><!--[if !supportLists]--><!--[endif]--><!--[if !supportLists]--><!--[endif]--><!--[if !supportLists]--><!--[endif]--><!--[if !supportLists]--><!--[endif]--><!--[if !supportLists]--><!--[endif]--> &lt;?php</p>
<p>function generatePassword($length=6,$level=2){</p>
<p>list($usec, $sec) = explode(&#8216; &#8217;, microtime());<br />
srand((float) $sec + ((float) $usec * 100000));</p>
<p>$validchars[1] = &#8221;0123456789abcdfghjkmnpqrstvwxyz&#8221;;<br />
$validchars[2] = &#8221;0123456789abcdfghjkmnpqrstvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ&#8221;;<br />
$validchars[3] = &#8221;0123456789_!@#$%&amp;*()-=+/abcdfghjkmnpqrstvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_!@#$%&amp;*()-=+/&#8221;;</p>
<p>$password  = &#8221;";<br />
$counter   = 0;</p>
<p>while ($counter &lt; $length) {<br />
$actChar = substr($validchars[$level], rand(0, strlen($validchars[$level])-1), 1);</p>
<p>// All character must be different<br />
if (!strstr($password, $actChar)) {<br />
$password .= $actChar;<br />
$counter++;<br />
}<br />
}</p>
<p>return $password;</p>
<p>}<br />
?&gt;</p>
<p><strong>Step 3.</strong></p>
<p>To make the script more usable let’s create an html page  where the visitor can set the requested length and strength of the  password. To do this we will create a simple form with 2 drop down box  where the visitor can select the password properties. In this example I  set the length list from 5 to 10 and the strength to Easy, Normal, and  Hard. When the visitor submits the form it will call itself and in this  phase not only shows the form again but processes the submitted values  and generates the requested password and shows it for the user.</p>
<p>The  HTML code is quite simple:</p>
<p>&lt;!DOCTYPE html PUBLIC &#8221;-//W3C//DTD XHTML 1.0 Transitional//EN&#8221; &#8221;DTD/xhtml1-transitional.dtd&#8221;&gt;<br />
&lt;html&gt;<br />
&lt;body&gt;<br />
&lt;form action=&#8221;&lt;?php echo $_SERVER['PHP_SELF']; ?&gt;&#8221; method=&#8221;post&#8221;&gt;<br />
&lt;table&gt;<br />
&lt;tr&gt;&lt;td&gt;Password length: &lt;/td&gt;&lt;td&gt;<br />
&lt;select name=&#8221;passlength&#8221;&gt;<br />
&lt;option value=&#8221;5&#8243;&gt;5&lt;/option&gt;<br />
&lt;option value=&#8221;6&#8243;&gt;6&lt;/option&gt;<br />
&lt;option value=&#8221;7&#8243;&gt;7&lt;/option&gt;<br />
&lt;option value=&#8221;8&#8243;&gt;8&lt;/option&gt;<br />
&lt;option value=&#8221;9&#8243;&gt;9&lt;/option&gt;<br />
&lt;option value=&#8221;10&#8243;&gt;10&lt;/option&gt;<br />
&lt;/select&gt;<br />
&lt;/td&gt;&lt;/tr&gt;<br />
&lt;tr&gt;&lt;td&gt;Password strength:&lt;/td&gt;&lt;td&gt;<br />
&lt;select name=&#8221;passstrength&#8221;&gt;<br />
&lt;option value=&#8221;1&#8243;&gt;Easy&lt;/option&gt;<br />
&lt;option value=&#8221;2&#8243;&gt;Normal&lt;/option&gt;<br />
&lt;option value=&#8221;3&#8243;&gt;Hard&lt;/option&gt;<br />
&lt;/select&gt;<br />
&lt;/td&gt;&lt;/tr&gt;<br />
&lt;tr&gt;&lt;td &gt;&lt;br/&gt;&lt;input type=&#8221;submit&#8221; name=&#8221;submitBtn&#8221; value=&#8221;Generate&#8221;&gt;&lt;/td&gt;&lt;/tr&gt;<br />
&lt;/table&gt;<br />
&lt;/form&gt;<br />
&lt;?php<br />
if (isset($_POST['submitBtn'])){<br />
echo &#8217;&lt;table&gt;&lt;tr&gt;&lt;td&gt;Generated password:&lt;/td&gt;&lt;td&gt;&#8217;;<br />
echo generatePassword($length,$strength);<br />
echo &#8217;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&#8217;;<br />
}<br />
?&gt;<br />
&lt;/body&gt;</p>
<p><strong>Step  4.</strong></p>
<p>Final words:<br />
As you  can see generating a random password is not so complex task. You can  integrate this script into your registration process to generate a  password for the user.</p>
<p>The complete script is the  following:</p>
<p>&lt;?php</p>
<p>function generatePassword($length=6,$level=2){</p>
<p>list($usec, $sec) = explode(&#8216; &#8217;, microtime());<br />
srand((float) $sec + ((float) $usec * 100000));</p>
<p>$validchars[1] = &#8221;0123456789abcdfghjkmnpqrstvwxyz&#8221;;<br />
$validchars[2] = &#8221;0123456789abcdfghjkmnpqrstvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ&#8221;;<br />
$validchars[3] = &#8221;0123456789_!@#$%&amp;*()-=+/abcdfghjkmnpqrstvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_!@#$%&amp;*()-=+/&#8221;;</p>
<p>$password  = &#8221;";<br />
$counter   = 0;</p>
<p>while ($counter &lt; $length) {<br />
$actChar = substr($validchars[$level], rand(0, strlen($validchars[$level])-1), 1);</p>
<p>// All character must be different<br />
if (!strstr($password, $actChar)) {<br />
$password .= $actChar;<br />
$counter++;<br />
}<br />
}</p>
<p>return $password;</p>
<p>}</p>
<p>?&gt;</p>
<p>&lt;!DOCTYPE html PUBLIC &#8221;-//W3C//DTD XHTML 1.0 Transitional//EN&#8221; &#8221;DTD/xhtml1-transitional.dtd&#8221;&gt;<br />
&lt;html&gt;<br />
&lt;body&gt;<br />
&lt;form action=&#8221;&lt;?php echo $_SERVER['PHP_SELF']; ?&gt;&#8221; method=&#8221;post&#8221;&gt;<br />
&lt;table&gt;<br />
&lt;tr&gt;&lt;td&gt;Password length: &lt;/td&gt;&lt;td&gt;<br />
&lt;select name=&#8221;passlength&#8221;&gt;<br />
&lt;option value=&#8221;5&#8243;&gt;5&lt;/option&gt;<br />
&lt;option value=&#8221;6&#8243;&gt;6&lt;/option&gt;<br />
&lt;option value=&#8221;7&#8243;&gt;7&lt;/option&gt;<br />
&lt;option value=&#8221;8&#8243;&gt;8&lt;/option&gt;<br />
&lt;option value=&#8221;9&#8243;&gt;9&lt;/option&gt;<br />
&lt;option value=&#8221;10&#8243;&gt;10&lt;/option&gt;<br />
&lt;/select&gt;<br />
&lt;/td&gt;&lt;/tr&gt;<br />
&lt;tr&gt;&lt;td&gt;Password strength:&lt;/td&gt;&lt;td&gt;<br />
&lt;select name=&#8221;passstrength&#8221;&gt;<br />
&lt;option value=&#8221;1&#8243;&gt;Easy&lt;/option&gt;<br />
&lt;option value=&#8221;2&#8243;&gt;Normal&lt;/option&gt;<br />
&lt;option value=&#8221;3&#8243;&gt;Hard&lt;/option&gt;<br />
&lt;/select&gt;<br />
&lt;/td&gt;&lt;/tr&gt;<br />
&lt;tr&gt;&lt;td &gt;&lt;br/&gt;&lt;input type=&#8221;submit&#8221; name=&#8221;submitBtn&#8221; value=&#8221;Generate&#8221;&gt;&lt;/td&gt;&lt;/tr&gt;<br />
&lt;/table&gt;<br />
&lt;/form&gt;<br />
&lt;?php<br />
if (isset($_POST['submitBtn'])){<br />
echo &#8217;&lt;table&gt;&lt;tr&gt;&lt;td&gt;Generated password:&lt;/td&gt;&lt;td&gt;&#8217;;<br />
echo generatePassword($length,$strength);<br />
echo &#8217;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&#8217;;<br />
}<br />
?&gt;<br />
&lt;/body&gt;</p>
<hr />
<p>© <a href="http://www.iwanna.cn">我想网</a> Akon 所有 , 2010. |
<a href="http://www.iwanna.cn/archives/2010/12/09/6116/">永久链接</a> |
<a href="http://www.iwanna.cn/archives/2010/12/09/6116/#comments">没有评论</a> |
提交到
<a rel="nofollow" target="_blank" href="http://www.google.com/reader/view/feed/http://www.iwanna.cn/archives/2010/12/09/6116/">Google Reader</a>
<a rel="nofollow" target="_blank" href="http://www.xianguo.com/subscribe.php?url=http://www.iwanna.cn/archives/2010/12/09/6116/">鲜果</a>
<a rel="nofollow" target="_blank" href="http://www.zhuaxia.com/add_channel.php?url=http://www.iwanna.cn/archives/2010/12/09/6116/">抓虾</a>
<hr />
<script type="text/javascript"><!--
google_ad_client = "pub-2057344547305288";
/* 336x280,iwanna feed,created 10/3/10 */
google_ad_slot = "9738886183";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<hr />
</p>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.iwanna.cn/archives/2010/12/09/6116/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>13个WordPress技巧和教程的网站</title>
		<link>http://www.iwanna.cn/archives/2010/12/05/6052/</link>
		<comments>http://www.iwanna.cn/archives/2010/12/05/6052/#comments</comments>
		<pubDate>Sun, 05 Dec 2010 14:01:10 +0000</pubDate>
		<dc:creator>seasun</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[站长工具]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://www.iwanna.cn/?p=6052</guid>
		<description><![CDATA[WordPress即使不是世上最流行，那也是数一数二的开源博客和内容管理系统。有超过250万的网站和博客采用这款屡获奖项的网络软件。并且 WordPress的潜在用户群也在日益扩张，他们中不乏开发者、设计人员、投稿人和自由作家这些独具技术和知识的群体。我自己的自由职业业务也有超过9 成与 WordPress多少有关系，并且我发现为客户提供高质量、经济实惠的个性化的WordPress网站会快速增加我的业务。 在这篇文章中，我为大家提供13个我经常去看一些技巧和教程的网站（排名不分先后）。我相信这些网站会增加你对WordPress的了解，让你使用起WordPress来更得心应手。有些网站可能你已经知道，但是不管怎样，这些网站介绍的东西，让WordPress更加完美。 WordPress.org 显然要说这个网站。任何一个用WordPress的人都至少去过一次这里。官网提供了使用WordPress所需要的任何东西，包括提供服务支持的论坛 ——论坛包罗万象，从插件到模板什么都有。当然，Codex部分是定制WordPress站点最好的地方。 Digging Into WordPress 这个网站不仅是极有帮助的一本同名书籍《深入挖挖掘WordPress》（《Digging IntoWordPress》）的官网，还是一个囊括从初级到高级，各种技巧和窍门的地方。每次我访问这里都能学到一些东西。 最新文章： 在Wordpress配置文件中加入FTP信息使升级更容易 wpbeginner 这个网站对新手来尤其有用。当然也提供一些高级技巧和窍门。 最新文章： 如 何为WordPress新建一个基于标签的社交小工具 WPengineer 专为WordPress提供相关技巧、新闻、插件、主题、教程和其他资源的相当不错的网站。 最新文章： 如 何注销后停止WordPress运行 WPVibe 这是一个高质量的站点，不仅专注于发布主题、插件和发行版本的新闻，还提供编码方面的技巧和窍门等知识。 最新文章： 最佳的搜索引擎优化（SEO）插件 WordPress Tavern 很喜欢这个使用酒馆主题的优秀的资源站点（啤酒瓶和啤酒杯比比皆是）。和上面的网站一样，它也是介绍有关WordPress的技巧。 最新文章： 软件 发行版本大全 wplift 这个网站提供一些列的WordPress服务，从安装到托管再到主题设计。另外网站也致力于提供WordPres博客插件和主题方面的帮助、教程和测评。 最新文章： 采 访Autoblogged插件作者Mark B WPSHOUT 这个关注WordPress发展的博客内容很全面，从基本主题设计到使用WordPress搭建CMS面面俱到。 最新文章： 如何制作豪华 主题 WordPress Arena WordPress免费资源、主题、方法、插件的等。这个网站已经发展成为我经常使用的手头资源。 最新文章： 如 何把分类和标签用作关键词 WPRECIPES 各种趣闻！每天都有快速、清晰、简洁的WordPress建站方法。 最新文章： [...]]]></description>
			<content:encoded><![CDATA[<p>WordPress即使不是世上最流行，那也是数一数二的开源博客和内容管理系统。有超过250万的网站和博客采用这款屡获奖项的网络软件。并且 WordPress的潜在用户群也在日益扩张，他们中不乏开发者、设计人员、投稿人和自由作家这些独具技术和知识的群体。我自己的自由职业业务也有超过9 成与 WordPress多少有关系，并且我发现为客户提供高质量、经济实惠的个性化的WordPress网站会快速增加我的业务。</p>
<p>在这篇文章中，我为大家提供<strong><a href="http://www.iwanna.cn/archives/2010/12/05/6052/" title="13个WordPress技巧和教程的网站">13个我经常去看一些技巧和教程的网站</a></strong>（排名不分先后）。我相信这些网站会增加你对WordPress的了解，让你使用起WordPress来更得心应手。有些网站可能你已经知道，但是不管怎样，这些网站介绍的东西，让WordPress更加完美。</p>
<p><strong><a href="http://www.iwanna.cn/tags/wordpress-php-develope/" class="st_tag internal_tag" rel="tag" title="标签 Wordpress 下的日志">WordPress</a>.org</strong><br />
<a href="http://images.uheed.com/iwanna/2010/12/05/wordpress-tech-tutorial/1602390255628073.jpg"><img src="http://images.uheed.com/iwanna/2010/12/05/wordpress-tech-tutorial/1602390255628073.jpg" alt="13个WordPress技巧和教程的网站 | iwanna.cn 我想网" height="200" /></a><br />
显然要说这个网站。任何一个用WordPress的人都至少去过一次这里。官网提供了使用WordPress所需要的任何东西，包括提供服务支持的论坛 ——论坛包罗万象，从插件到模板什么都有。当然，Codex部分是定制WordPress站点最好的地方。<br />
<span id="more-6052"></span><br />
<strong>Digging Into WordPress</strong><br />
<a href="http://images.uheed.com/iwanna/2010/12/05/wordpress-tech-tutorial/16023911385228718.jpg"><img src="http://images.uheed.com/iwanna/2010/12/05/wordpress-tech-tutorial/16023911385228718.jpg" alt="13个WordPress技巧和教程的网站 | iwanna.cn 我想网" height="200" /></a><br />
这个网站不仅是极有帮助的一本同名书籍《深入挖挖掘WordPress》（《Digging IntoWordPress》）的官网，还是一个囊括从初级到高级，各种技巧和窍门的地方。每次我访问这里都能学到一些东西。</p>
<p>最新文章：</p>
<ul>
<li><a href="http://digwp.com/2010/11/ftp-in-wpconfig/">在Wordpress配置文件中加入FTP信息使升级更容易</a></li>
</ul>
<p><strong>wpbeginner</strong><br />
<img src="http://images.uheed.com/iwanna/2010/12/05/wordpress-tech-tutorial/16023929660010.jpg" alt="13个WordPress技巧和教程的网站 | iwanna.cn 我想网" /></p>
<p>这个网站对新手来尤其有用。当然也提供一些高级技巧和窍门。</p>
<p>最新文章：</p>
<ul>
<li><a href="http://www.wpbeginner.com/plugins/how-to-create-a-tab-based-social-widget-for-wordpress/">如 何为WordPress新建一个基于标签的社交小工具</a></li>
</ul>
<p><strong>WPengineer</strong><br />
<a href="http://images.uheed.com/iwanna/2010/12/05/wordpress-tech-tutorial/1602393719926799.jpg"><img src="http://images.uheed.com/iwanna/2010/12/05/wordpress-tech-tutorial/1602393719926799.jpg" alt="13个WordPress技巧和教程的网站 | iwanna.cn 我想网" height="200" /></a></p>
<p>专为WordPress提供相关技巧、新闻、插件、主题、教程和其他资源的相当不错的网站。</p>
<p>最新文章：</p>
<ul>
<li><a href="http://wpengineer.com/2064/stop-wordpress-from-ever-logging-out/">如 何注销后停止WordPress运行</a></li>
</ul>
<p><strong>WPVibe</strong><br />
<img src="http://images.uheed.com/iwanna/2010/12/05/wordpress-tech-tutorial/1602394498617838.jpg" alt="13个WordPress技巧和教程的网站 | iwanna.cn 我想网" /><br />
这是一个高质量的站点，不仅专注于发布主题、插件和发行版本的新闻，还提供编码方面的技巧和窍门等知识。</p>
<p>最新文章：</p>
<ul>
<li><a href="http://wpvibe.com/best-wordpress-seo-plugin-296/">最佳的搜索引擎优化（SEO）插件</a></li>
</ul>
<p><strong>WordPress Tavern</strong></p>
<p><strong></strong><br />
<img src="http://images.uheed.com/iwanna/2010/12/05/wordpress-tech-tutorial/1602405420205947.jpg" alt="13个WordPress技巧和教程的网站 | iwanna.cn 我想网" /><br />
很喜欢这个使用酒馆主题的优秀的资源站点（啤酒瓶和啤酒杯比比皆是）。和上面的网站一样，它也是介绍有关WordPress的技巧。</p>
<p>最新文章：</p>
<ul>
<li><a href="http://www.wptavern.com/software-releases-and-the-kitchen-sink">软件 发行版本大全</a></li>
</ul>
<p><strong>wplift</strong><br />
<img src="http://images.uheed.com/iwanna/2010/12/05/wordpress-tech-tutorial/1602406429207507.jpg" alt="13个WordPress技巧和教程的网站 | iwanna.cn 我想网" /><br />
这个网站提供一些列的WordPress服务，从安装到托管再到主题设计。另外网站也致力于提供WordPres博客插件和主题方面的帮助、教程和测评。</p>
<p>最新文章：</p>
<ul>
<li><a href="http://wplift.com/interview-with-mark-b-creator-of-autoblogged-plugin">采 访Autoblogged插件作者Mark B</a></li>
</ul>
<p><strong>WPSHOUT</strong><br />
<img src="http://images.uheed.com/iwanna/2010/12/05/wordpress-tech-tutorial/16024071410994409.jpg" alt="13个WordPress技巧和教程的网站 | iwanna.cn 我想网" /><br />
这个关注WordPress发展的博客内容很全面，从基本主题设计到使用WordPress搭建CMS面面俱到。</p>
<p>最新文章：</p>
<ul>
<li><a href="http://wpshout.com/documenting-a-premium-theme/">如何制作豪华 主题</a></li>
</ul>
<p><strong>WordPress Arena</strong><br />
<img src="http://images.uheed.com/iwanna/2010/12/05/wordpress-tech-tutorial/160240853462498.jpg" alt="13个WordPress技巧和教程的网站 | iwanna.cn 我想网" /><br />
WordPress免费资源、主题、方法、插件的等。这个网站已经发展成为我经常使用的手头资源。</p>
<p>最新文章：</p>
<ul>
<li><a href="http://wparena.com/how-to/how-to-use-categories-and-tags-as-keywords/">如 何把分类和标签用作关键词</a></li>
</ul>
<p><strong>WPRECIPES</strong><br />
<img src="http://images.uheed.com/iwanna/2010/12/05/wordpress-tech-tutorial/16024091772328044.jpg" alt="13个WordPress技巧和教程的网站 | iwanna.cn 我想网" /><br />
各种趣闻！每天都有快速、清晰、简洁的WordPress建站方法。</p>
<p>最新文章：</p>
<ul>
<li><a href="http://www.wprecipes.com/how-to-count-your-blogroll-links">如何统计友链数 量</a></li>
<li><a href="http://www.wprecipes.com/wordpress-tip-how-to-make-term-edition-easier">WordPress 技巧：怎样更容易地编辑条目</a></li>
</ul>
<p><strong>WordPress Hacks</strong><br />
<img src="http://images.uheed.com/iwanna/2010/12/05/wordpress-tech-tutorial/160240101391847572.jpg" alt="13个WordPress技巧和教程的网站 | iwanna.cn 我想网" /><br />
除了发布各种各样的WordPress主题，提供WordPress插件测评之外，这个站点立足于涵盖Wordpress的整个周边世界，包括最新的WordPress技巧、新闻和使用方法。</p>
<p>最新文章：</p>
<ul>
<li><a href="http://wphacks.com/best-wordpress-widgets-for-your-blog/">最适合你博客的 WordPress小工具</a></li>
</ul>
<p><strong>Pro Blog Design</strong><br />
<img src="http://images.uheed.com/iwanna/2010/12/05/wordpress-tech-tutorial/16024011584526209.jpg" alt="13个WordPress技巧和教程的网站 | iwanna.cn 我想网" /><br />
严格意义上来讲算不上WordPress资源站，但是这个网站上关于WordPress的文章很经典。</p>
<p>最新文章：</p>
<ul>
<li><a href="http://www.problogdesign.com/wordpress/how-to-get-your-twitter-follower-number-in-plain-text/">何 以纯文本的方式获取你的推特粉丝数目</a></li>
</ul>
<p><strong><br />
</strong> <strong>Justin Tadlock</strong><br />
<img src="http://images.uheed.com/iwanna/2010/12/05/wordpress-tech-tutorial/16024112534579617.jpg" alt="13个WordPress技巧和教程的网站 | iwanna.cn 我想网" /><br />
Justin的网站里充满了关于WordPress的好东西，比如使用技巧和教程。我相信这其中的许多经常会用到。</p>
<p>最新文章：</p>
<ul>
<li><a href="http://justintadlock.com/archives/2010/11/08/sidebars-in-wordpress">WordPress 的侧栏</a></li>
</ul>
<p><strong>WordPress Snippets</strong><br />
<img src="http://images.uheed.com/iwanna/2010/12/05/wordpress-tech-tutorial/160241131990849913.jpg" alt="13个WordPress技巧和教程的网站 | iwanna.cn 我想网" /></p>
<p>小型的、可搜索的代码段，可以帮助你构建不可思议的WordPress主题。WPSnippets最大的特点是直截了当。无需多言，尽情的享受Snippets吧。</p>
<hr />
<p>© <a href="http://www.iwanna.cn">我想网</a> Akon 所有 , 2010. |
<a href="http://www.iwanna.cn/archives/2010/12/05/6052/">永久链接</a> |
<a href="http://www.iwanna.cn/archives/2010/12/05/6052/#comments">没有评论</a> |
提交到
<a rel="nofollow" target="_blank" href="http://www.google.com/reader/view/feed/http://www.iwanna.cn/archives/2010/12/05/6052/">Google Reader</a>
<a rel="nofollow" target="_blank" href="http://www.xianguo.com/subscribe.php?url=http://www.iwanna.cn/archives/2010/12/05/6052/">鲜果</a>
<a rel="nofollow" target="_blank" href="http://www.zhuaxia.com/add_channel.php?url=http://www.iwanna.cn/archives/2010/12/05/6052/">抓虾</a>
<hr />
<script type="text/javascript"><!--
google_ad_client = "pub-2057344547305288";
/* 336x280,iwanna feed,created 10/3/10 */
google_ad_slot = "9738886183";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<hr />
</p>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.iwanna.cn/archives/2010/12/05/6052/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>48个10月份最新的WordPress主题下载</title>
		<link>http://www.iwanna.cn/archives/2010/11/28/5948/</link>
		<comments>http://www.iwanna.cn/archives/2010/11/28/5948/#comments</comments>
		<pubDate>Sun, 28 Nov 2010 08:56:16 +0000</pubDate>
		<dc:creator>seasun</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[theme]]></category>

		<guid isPermaLink="false">http://www.iwanna.cn/?p=5948</guid>
		<description><![CDATA[今天分享：48个10月份最新的WordPress主题下载，其中有一半是免费的，有一半是收费的，希望有你喜欢的。 免费主题 Skeptical My Blue Construction Writer WordPress Theme Businezz Quality Control Cubicles Badgers Bayer Workfolio Clean Blog Theme AnimeLight GamePro Animes Record GamesMania Aroma Neonsential Carbonified Lithiumicious Heliumified Chromiumania Vanadiumitic Titaniumifize Fresh &#38; Clean Academica Modernist Typominima 收费主题 TheStyle Glider eStore Vision Jing Innova Construct Diner Caffeinated Crisp The Developer Sidelined Universe Photolist Orion [...]]]></description>
			<content:encoded><![CDATA[<p>今天分享：48个10月份最新的WordPress主题下载，其中有一半是免费的，有一半是收费的，希望有你喜欢的。</p>
<h2>免费主题</h2>
<h2>Skeptical</h2>
<p><a href="http://www.woothemes.com/2010/09/skeptical/" target="_blank"><img src="http://images.uheed.com/iwanna/2010/11/28/48-wordpress-themes/skeptical.jpg" alt="48个10月份最新的WordPress主题下载 | iwanna.cn 我想网" /></a><br />
<span id="more-5948"></span></p>
<h2>My Blue Construction</h2>
<p><a href="http://mythem.es/my/blue-construction" target="_blank"><img src="http://images.uheed.com/iwanna/2010/11/28/48-wordpress-themes/myblueconstruction.jpg" alt="48个10月份最新的WordPress主题下载 | iwanna.cn 我想网" /></a></p>
<h2>Writer <a href="http://www.iwanna.cn/tags/wordpress-php-develope/" class="st_tag internal_tag" rel="tag" title="标签 Wordpress 下的日志">WordPress</a> <a href="http://www.iwanna.cn/tags/theme/" class="st_tag internal_tag" rel="tag" title="标签 theme 下的日志">Theme</a></h2>
<p><a href="http://www.writerwordpresstheme.com/" target="_blank"><img src="http://images.uheed.com/iwanna/2010/11/28/48-wordpress-themes/writerwordpresstheme.jpg" alt="48个10月份最新的WordPress主题下载 | iwanna.cn 我想网" /></a></p>
<h2>Businezz</h2>
<p><a href="http://www.blogohblog.com/wordpress-theme-businezz/" target="_blank"><img src="http://images.uheed.com/iwanna/2010/11/28/48-wordpress-themes/businezz.jpg" alt="48个10月份最新的WordPress主题下载 | iwanna.cn 我想网" /></a></p>
<h2>Quality Control</h2>
<p><a href="http://getqualitycontrol.com/" target="_blank"><img src="http://images.uheed.com/iwanna/2010/11/28/48-wordpress-themes/qualitycontrol.jpg" alt="48个10月份最新的WordPress主题下载 | iwanna.cn 我想网" /></a></p>
<h2>Cubicles</h2>
<p><a href="http://wpcorner.com/cubicles-theme/" target="_blank"><img src="http://images.uheed.com/iwanna/2010/11/28/48-wordpress-themes/cubicles.jpg" alt="48个10月份最新的WordPress主题下载 | iwanna.cn 我想网" /></a></p>
<h2>Badgers</h2>
<p><a href="http://wpcorner.com/badgers-theme/" target="_blank"><img src="http://images.uheed.com/iwanna/2010/11/28/48-wordpress-themes/badgers.jpg" alt="48个10月份最新的WordPress主题下载 | iwanna.cn 我想网" /></a></p>
<h2>Bayer</h2>
<p><a href="http://wpcorner.com/bayer-theme/" target="_blank"><img src="http://images.uheed.com/iwanna/2010/11/28/48-wordpress-themes/bayer.jpg" alt="48个10月份最新的WordPress主题下载 | iwanna.cn 我想网" /></a></p>
<h2>Workfolio</h2>
<p><a href="http://wpcorner.com/workfolio-theme/" target="_blank"><img src="http://images.uheed.com/iwanna/2010/11/28/48-wordpress-themes/workfolio.jpg" alt="48个10月份最新的WordPress主题下载 | iwanna.cn 我想网" /></a></p>
<h2>Clean Blog Theme</h2>
<p><a href="http://wpcorner.com/clean-blog-theme/" target="_blank"><img src="http://images.uheed.com/iwanna/2010/11/28/48-wordpress-themes/cleanblogtheme.jpg" alt="48个10月份最新的WordPress主题下载 | iwanna.cn 我想网" /></a></p>
<h2>AnimeLight</h2>
<p><a href="http://newwpthemes.com/wordpress-theme/animelight/" target="_blank"><img src="http://images.uheed.com/iwanna/2010/11/28/48-wordpress-themes/animelight.jpg" alt="48个10月份最新的WordPress主题下载 | iwanna.cn 我想网" /></a></p>
<h2>GamePro</h2>
<p><a href="http://newwpthemes.com/wordpress-theme/gamepro/" target="_blank"><img src="http://images.uheed.com/iwanna/2010/11/28/48-wordpress-themes/gamepro.jpg" alt="48个10月份最新的WordPress主题下载 | iwanna.cn 我想网" /></a></p>
<h2>Animes</h2>
<p><a href="http://newwpthemes.com/wordpress-theme/animes/" target="_blank"><img src="http://images.uheed.com/iwanna/2010/11/28/48-wordpress-themes/animes.jpg" alt="48个10月份最新的WordPress主题下载 | iwanna.cn 我想网" /></a></p>
<h2>Record</h2>
<p><a href="http://newwpthemes.com/wordpress-theme/record/" target="_blank"><img src="http://images.uheed.com/iwanna/2010/11/28/48-wordpress-themes/record.jpg" alt="48个10月份最新的WordPress主题下载 | iwanna.cn 我想网" /></a></p>
<h2>GamesMania</h2>
<p><a href="http://newwpthemes.com/wordpress-theme/gamesmania/" target="_blank"><img src="http://images.uheed.com/iwanna/2010/11/28/48-wordpress-themes/gamesmania.jpg" alt="48个10月份最新的WordPress主题下载 | iwanna.cn 我想网" /></a></p>
<h2>Aroma</h2>
<p><a href="http://newwpthemes.com/wordpress-theme/aroma/" target="_blank"><img src="http://images.uheed.com/iwanna/2010/11/28/48-wordpress-themes/aroma.jpg" alt="48个10月份最新的WordPress主题下载 | iwanna.cn 我想网" /></a></p>
<h2>Neonsential</h2>
<p><a href="http://www.paddsolutions.com/wordpress-theme-neonsential/" target="_blank"><img src="http://images.uheed.com/iwanna/2010/11/28/48-wordpress-themes/neonsential.jpg" alt="48个10月份最新的WordPress主题下载 | iwanna.cn 我想网" /></a></p>
<h2>Carbonified</h2>
<p><a href="http://www.paddsolutions.com/wordpress-theme-carbonified/" target="_blank"><img src="http://images.uheed.com/iwanna/2010/11/28/48-wordpress-themes/carbonified.jpg" alt="48个10月份最新的WordPress主题下载 | iwanna.cn 我想网" /></a></p>
<h2>Lithiumicious</h2>
<p><a href="http://www.paddsolutions.com/wordpress-theme-lithiumicious/" target="_blank"><img src="http://images.uheed.com/iwanna/2010/11/28/48-wordpress-themes/lithiumicious.jpg" alt="48个10月份最新的WordPress主题下载 | iwanna.cn 我想网" /></a></p>
<h2>Heliumified</h2>
<h2><a href="http://www.paddsolutions.com/wordpress-theme-heliumified/" target="_blank"><img src="http://images.uheed.com/iwanna/2010/11/28/48-wordpress-themes/heliumified.jpg" alt="48个10月份最新的WordPress主题下载 | iwanna.cn 我想网" /></a></h2>
<h2>Chromiumania</h2>
<p><a href="http://www.paddsolutions.com/wordpress-theme-chromiumania/" target="_blank"><img src="http://images.uheed.com/iwanna/2010/11/28/48-wordpress-themes/chromiumania.jpg" alt="48个10月份最新的WordPress主题下载 | iwanna.cn 我想网" /></a></p>
<h2>Vanadiumitic</h2>
<p><a href="http://www.paddsolutions.com/wordpress-theme-vanadiumitic/" target="_blank"><img src="http://images.uheed.com/iwanna/2010/11/28/48-wordpress-themes/vanadiumitic.jpg" alt="48个10月份最新的WordPress主题下载 | iwanna.cn 我想网" /></a></p>
<h2>Titaniumifize</h2>
<p><a href="http://www.paddsolutions.com/wordpress-theme-titaniumifize/" target="_blank"><img src="http://images.uheed.com/iwanna/2010/11/28/48-wordpress-themes/titaniumifize.jpg" alt="48个10月份最新的WordPress主题下载 | iwanna.cn 我想网" /></a></p>
<h2>Fresh &amp; Clean</h2>
<p><a href="http://www.wpexplorer.com/fresh-clean-wordpress-theme-by-wpexplorer.html" target="_blank"><img src="http://images.uheed.com/iwanna/2010/11/28/48-wordpress-themes/freshandclean.jpg" alt="48个10月份最新的WordPress主题下载 | iwanna.cn 我想网" /></a></p>
<h2>Academica</h2>
<p><a href="http://www.smashingmagazine.com/2010/08/29/academica-free-wordpress-theme-for-educational-websites/" target="_blank"><img src="http://images.uheed.com/iwanna/2010/11/28/48-wordpress-themes/academica.jpg" alt="48个10月份最新的WordPress主题下载 | iwanna.cn 我想网" /></a></p>
<h2>Modernist</h2>
<p><a href="http://www.smashingmagazine.com/2010/08/21/modernist-free-wordpress-theme-with-focus-on-typography/" target="_blank"><img src="http://images.uheed.com/iwanna/2010/11/28/48-wordpress-themes/modernist.jpg" alt="48个10月份最新的WordPress主题下载 | iwanna.cn 我想网" /></a></p>
<h2>Typominima</h2>
<p><a href="http://typominima.blogsessive.com/" target="_blank"><img src="http://images.uheed.com/iwanna/2010/11/28/48-wordpress-themes/typominima.jpg" alt="48个10月份最新的WordPress主题下载 | iwanna.cn 我想网" /></a></p>
<h2>收费主题</h2>
<h2>TheStyle</h2>
<p><a href="http://www.elegantthemes.com/gallery/thestyle/" target="_blank"><img src="http://images.uheed.com/iwanna/2010/11/28/48-wordpress-themes/thestyle.jpg" alt="48个10月份最新的WordPress主题下载 | iwanna.cn 我想网" /></a></p>
<h2>Glider</h2>
<p><a href="http://www.elegantthemes.com/gallery/glider/" target="_blank"><img src="http://images.uheed.com/iwanna/2010/11/28/48-wordpress-themes/glider.jpg" alt="48个10月份最新的WordPress主题下载 | iwanna.cn 我想网" /></a></p>
<h2>eStore</h2>
<p><a href="http://www.elegantthemes.com/gallery/estore/" target="_blank"><img src="http://images.uheed.com/iwanna/2010/11/28/48-wordpress-themes/estore.jpg" alt="48个10月份最新的WordPress主题下载 | iwanna.cn 我想网" /></a></p>
<h2>Vision</h2>
<p><a href="http://themeforest.net/item/vision-wordpress-business-portfolio-theme/132228" target="_blank"><img src="http://images.uheed.com/iwanna/2010/11/28/48-wordpress-themes/vision.jpg" alt="48个10月份最新的WordPress主题下载 | iwanna.cn 我想网" /></a></p>
<h2>Jing</h2>
<p><a href="http://themeforest.net/item/jing-portfolio-business-photography-template/132106" target="_blank"><img src="http://images.uheed.com/iwanna/2010/11/28/48-wordpress-themes/jing.jpg" alt="48个10月份最新的WordPress主题下载 | iwanna.cn 我想网" /></a></p>
<h2>Innova Construct</h2>
<p><a href="http://themeforest.net/item/innova-construct-wordpress/132005" target="_blank"><img src="http://images.uheed.com/iwanna/2010/11/28/48-wordpress-themes/innovaconstruct.jpg" alt="48个10月份最新的WordPress主题下载 | iwanna.cn 我想网" /></a></p>
<h2>Diner</h2>
<p><a href="http://www.woothemes.com/2010/10/diner/" target="_blank"><img src="http://images.uheed.com/iwanna/2010/11/28/48-wordpress-themes/diner.jpg" alt="48个10月份最新的WordPress主题下载 | iwanna.cn 我想网" /></a></p>
<h2>Caffeinated</h2>
<p><a href="http://www.woothemes.com/2010/09/caffeinated/" target="_blank"><img src="http://images.uheed.com/iwanna/2010/11/28/48-wordpress-themes/caffeinated.jpg" alt="48个10月份最新的WordPress主题下载 | iwanna.cn 我想网" /></a></p>
<h2>Crisp</h2>
<p><a href="http://www.woothemes.com/2010/08/crisp/" target="_blank"><img src="http://images.uheed.com/iwanna/2010/11/28/48-wordpress-themes/crisp.jpg" alt="48个10月份最新的WordPress主题下载 | iwanna.cn 我想网" /></a></p>
<h2>The Developer</h2>
<p><a href="http://themeforest.net/item/the-developer-wp3-edition/122898" target="_blank"><img src="http://images.uheed.com/iwanna/2010/11/28/48-wordpress-themes/thedeveloper.jpg" alt="48个10月份最新的WordPress主题下载 | iwanna.cn 我想网" /></a></p>
<h2>Sidelined</h2>
<p><a href="http://themeforest.net/item/sidelined-a-flexible-modular-wordpress-3-theme/121219" target="_blank"><img src="http://images.uheed.com/iwanna/2010/11/28/48-wordpress-themes/sidelined.jpg" alt="48个10月份最新的WordPress主题下载 | iwanna.cn 我想网" /></a></p>
<h2>Universe</h2>
<p><a href="http://themeforest.net/item/universe-corporate-business-wordpress-theme-2/120830" target="_blank"><img src="http://images.uheed.com/iwanna/2010/11/28/48-wordpress-themes/universe.jpg" alt="48个10月份最新的WordPress主题下载 | iwanna.cn 我想网" /></a></p>
<h2>Photolist</h2>
<p><a href="http://www.obox-design.com/themes_page.cfm/theme/photolist" target="_blank"><img src="http://images.uheed.com/iwanna/2010/11/28/48-wordpress-themes/photolist.jpg" alt="48个10月份最新的WordPress主题下载 | iwanna.cn 我想网" /></a></p>
<h2>Orion Business and Portfolio</h2>
<p><a href="http://www.mojo-themes.com/item/orion-business-wordpress-theme/" target="_blank"><img src="http://images.uheed.com/iwanna/2010/11/28/48-wordpress-themes/orion.jpg" alt="48个10月份最新的WordPress主题下载 | iwanna.cn 我想网" /></a></p>
<h2>Absencion Portfolio &amp; Business</h2>
<p><a href="http://www.mojo-themes.com/item/absencion-portfolio-and-business-wordpress-theme/" target="_blank"><img src="http://images.uheed.com/iwanna/2010/11/28/48-wordpress-themes/absencion.jpg" alt="48个10月份最新的WordPress主题下载 | iwanna.cn 我想网" /></a></p>
<h2>Red Fred</h2>
<p><a href="http://themes.kubasto.com/redfred/" target="_blank"><img src="http://images.uheed.com/iwanna/2010/11/28/48-wordpress-themes/redfred.jpg" alt="48个10月份最新的WordPress主题下载 | iwanna.cn 我想网" /></a></p>
<h2>JobRoller</h2>
<p><a href="http://appthemes.com/themes/jobroller/" target="_blank"><img src="http://images.uheed.com/iwanna/2010/11/28/48-wordpress-themes/jobroller.jpg" alt="48个10月份最新的WordPress主题下载 | iwanna.cn 我想网" /></a></p>
<h2>Penelope</h2>
<p><a href="http://www.cssigniter.com/ignite/Themes/penelope/" target="_blank"><img src="http://images.uheed.com/iwanna/2010/11/28/48-wordpress-themes/penelope.jpg" alt="48个10月份最新的WordPress主题下载 | iwanna.cn 我想网" /></a></p>
<h2>Sophocles</h2>
<p><a href="http://www.cssigniter.com/ignite/Themes/sophocles/" target="_blank"><img src="http://images.uheed.com/iwanna/2010/11/28/48-wordpress-themes/sophocles.jpg" alt="48个10月份最新的WordPress主题下载 | iwanna.cn 我想网" /></a></p>
<h2>Foodilicious</h2>
<p><a href="http://templatic.com/cms-themes/foodilicious" target="_blank"><img src="http://images.uheed.com/iwanna/2010/11/28/48-wordpress-themes/foodilicious.jpg" alt="48个10月份最新的WordPress主题下载 | iwanna.cn 我想网" /></a></p>
<h2>VideoBlogger</h2>
<p><a href="http://www.proudthemes.com/2010/05/videoblogger/" target="_blank"><img src="http://images.uheed.com/iwanna/2010/11/28/48-wordpress-themes/videoblogger.jpg" alt="48个10月份最新的WordPress主题下载 | iwanna.cn 我想网" /></a></p>
<hr />
<p>© <a href="http://www.iwanna.cn">我想网</a> Akon 所有 , 2010. |
<a href="http://www.iwanna.cn/archives/2010/11/28/5948/">永久链接</a> |
<a href="http://www.iwanna.cn/archives/2010/11/28/5948/#comments">没有评论</a> |
提交到
<a rel="nofollow" target="_blank" href="http://www.google.com/reader/view/feed/http://www.iwanna.cn/archives/2010/11/28/5948/">Google Reader</a>
<a rel="nofollow" target="_blank" href="http://www.xianguo.com/subscribe.php?url=http://www.iwanna.cn/archives/2010/11/28/5948/">鲜果</a>
<a rel="nofollow" target="_blank" href="http://www.zhuaxia.com/add_channel.php?url=http://www.iwanna.cn/archives/2010/11/28/5948/">抓虾</a>
<hr />
<script type="text/javascript"><!--
google_ad_client = "pub-2057344547305288";
/* 336x280,iwanna feed,created 10/3/10 */
google_ad_slot = "9738886183";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<hr />
</p>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.iwanna.cn/archives/2010/11/28/5948/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress：timestamp 函数的时差(timezone)问题</title>
		<link>http://www.iwanna.cn/archives/2010/11/21/5866/</link>
		<comments>http://www.iwanna.cn/archives/2010/11/21/5866/#comments</comments>
		<pubDate>Sun, 21 Nov 2010 14:44:06 +0000</pubDate>
		<dc:creator>seasun</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[程序源码]]></category>
		<category><![CDATA[Source-code]]></category>

		<guid isPermaLink="false">http://www.iwanna.cn/?p=5866</guid>
		<description><![CDATA[最早发现这个时差问题是在我们首页添加24小时内热文(显示浏览最多十篇文章)后发现的，平时每天更新20-30篇，即 使扣除8小时影响也不大，但在某个周末的最近24小时文章刚好够10篇时，它只显示几篇给我，当时就诧异了。当时没想过根源是 timestamp 函数，只是想简单 hack 一下就好，将 wp-postviews 插件里 get_timespan_most_viewed 函数中的 $limit_date = current_time(’timestamp’) &#8211; ($days*86400); 改为 $limit_date = current_time(’timestamp’) &#8211; ($days*86400) &#8211; 28800; // 8小时就是 8×60&#215;60=28800秒 所以今天在把我们首页第一篇文章的时间显示方式改为 xxx mins ago 时，8小时时差又出现了，于是毫不犹豫的暴力 hack 了，同样是把 &#60;?php echo human_time_diff(get_the_time(’U&#8217;), current_time(’timestamp’)) . ‘ ago’; ?&#62; 改成 &#60;?php echo human_time_diff(get_the_time(’U&#8217;), current_time(’timestamp’) &#8211; 28800 ) . ‘ ago’; ?&#62; 当然我这样指标不治本，有兴趣折腾的同学可以直接到 wp-includes/formatting.php [...]]]></description>
			<content:encoded><![CDATA[<p>最早发现这个时差问题是在我们<a rel="nofollow" href="http://www.iwanna.cn/" target="_blank">首页</a>添加24小时内热文(显示浏览最多十篇文章)后发现的，平时每天更新20-30篇，即 使扣除8小时影响也不大，但在某个周末的最近24小时文章刚好够10篇时，它只显示几篇给我，当时就诧异了。当时没想过根源是 timestamp  函数，只是想简单 hack 一下就好，将 wp-postviews 插件里 get_timespan_most_viewed 函数中的</p>
<blockquote><p>$limit_date = current_time(’timestamp’) &#8211; ($days*86400);</p></blockquote>
<p>改为</p>
<blockquote><p>$limit_date = current_time(’timestamp’) &#8211; ($days*86400) &#8211;  28800;</p></blockquote>
<p>// 8小时就是 8×60&#215;60=28800秒</p>
<p>所以今天在把我们首页第一篇文章的时间显示方式改为 xxx mins ago 时，8小时时差又出现了，于是毫不犹豫的暴力 hack  了，同样是把</p>
<blockquote><p>&lt;?<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag" title="标签 PHP 下的日志">php</a> echo human_time_diff(get_the_time(’U&#8217;),  current_time(’timestamp’)) . ‘ ago’; ?&gt;</p></blockquote>
<p>改成</p>
<blockquote><p>&lt;?php echo human_time_diff(get_the_time(’U&#8217;),  current_time(’timestamp’) &#8211; 28800 ) . ‘ ago’; ?&gt;</p></blockquote>
<p>当然我这样指标不治本，有兴趣折腾的同学可以直接到 wp-includes/formatting.php 里修改  human_time_diff。就解决 human_time_diff 函数的 timezone  问题而言，我这个方法简单有效(网上N多老外哭求这个时差问题都没有答案，哈哈哈)，但究其根源还是要解决 timestamp 函数的时差问题。<br />
<span id="more-5866"></span><br />
参考<a rel="nofollow" href="http://core.trac.wordpress.org/ticket/8662" target="_blank">这里</a>，有三种解决方案，其中比较简洁的 一个是，在 wp-includes/functions.php 第66行</p>
<blockquote><p>case ‘timestamp’:<br />
return ( $gmt ) ? time() : time() + ( get_option( ‘gmt_offset’ ) * 3600  );<br />
break;</p></blockquote>
<p>下面添加</p>
<blockquote><p>case ‘timestampgmt’:<br />
return ( $gmt ) ? strtotime(gmdate(”Y-m-d H:i:s”)) :  strtotime(gmdate(”Y-m-d H:i:s”)) + ( get_option( ‘gmt_offset’ ) * 3600  );<br />
break;</p></blockquote>
<p>然后再要用 timestamp 改用 timestampgmt 就好了。</p>
<p><span style="text-decoration: underline;"># 注：请自行以上代码中的将全角引号改为半角</span></p>
<hr />
<p>© <a href="http://www.iwanna.cn">我想网</a> Akon 所有 , 2010. |
<a href="http://www.iwanna.cn/archives/2010/11/21/5866/">永久链接</a> |
<a href="http://www.iwanna.cn/archives/2010/11/21/5866/#comments">没有评论</a> |
提交到
<a rel="nofollow" target="_blank" href="http://www.google.com/reader/view/feed/http://www.iwanna.cn/archives/2010/11/21/5866/">Google Reader</a>
<a rel="nofollow" target="_blank" href="http://www.xianguo.com/subscribe.php?url=http://www.iwanna.cn/archives/2010/11/21/5866/">鲜果</a>
<a rel="nofollow" target="_blank" href="http://www.zhuaxia.com/add_channel.php?url=http://www.iwanna.cn/archives/2010/11/21/5866/">抓虾</a>
<hr />
<script type="text/javascript"><!--
google_ad_client = "pub-2057344547305288";
/* 336x280,iwanna feed,created 10/3/10 */
google_ad_slot = "9738886183";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<hr />
</p>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.iwanna.cn/archives/2010/11/21/5866/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WP Super Cache 安装与设置方法</title>
		<link>http://www.iwanna.cn/archives/2010/11/21/5841/</link>
		<comments>http://www.iwanna.cn/archives/2010/11/21/5841/#comments</comments>
		<pubDate>Sun, 21 Nov 2010 08:55:41 +0000</pubDate>
		<dc:creator>seasun</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://www.iwanna.cn/?p=5841</guid>
		<description><![CDATA[WordPress 的插件越来越多,速度也越来越慢,咋整? 静态化! 今天主要是把流程 Step by Step 一下,不用理解为啥这么设置, 只需要知道设置后会变的很快 所谓提前优化是万恶之源的意思就是说,之前网站做的越烂,优化的空间就越多 和老板说看,之前多烂多烂,俺给你省了多少多少钱,一般都能拿奖金 静态化也一样,之前一大堆插件,开个页面上百次MYSQL查询,或烂人写的没效率SQL会让人不禁抓栏杆撕床单 WP Super Cache 并不是100%静态化,不过这个不重要,他把最卡的部分搞定了即可 WP Super Cache 他唯一的缺点就是如果你在改主题或搞啥插件,后台设置了前台看不出变化,为毛?下面有解决方案 OK, let&#8217;s gou 首先，永久连接不能使用默认格式 修改永久链接格式,中文推荐采用 /%post_id%.html (这下你知道我的.orz哪里来了吧) 如果你和我一样蛋疼愿意为每篇文章写一个英语的post slug 建议采用这样的格式：/%postname%.html (百分号外面的随意写) 这里我一二三四五六七都标注了就不介绍了吧,常规装插件也是这个套路 那些个神马ftp时代都已经过去鸟过去鸟 装完后激活一下 激活了,但他说还需要去设置一把, Rock it 凡是推荐的都打钩,无脑输出嘛 需要注意的是(miao)的用户不 要开Compress pages so they’re served more quickly to visitors. (Recommended) 因为默认已经压缩了,再压缩一次一是可能乱码,而是增加不必要的损耗变得更慢 需要注意的是Don&#8217;t cache for known users的意思是对已经登录的用户不缓存 [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.iwanna.cn/tags/wordpress-php-develope/" class="st_tag internal_tag" rel="tag" title="标签 Wordpress 下的日志">WordPress</a> 的插件越来越多,速度也越来越慢,咋整?</p>
<p>静态化!</p>
<p>今天主要是把流程 Step by Step 一下,不用理解为啥这么设置, 只需要知道设置后会变的很快</p>
<p>所谓提前优化是万恶之源的意思就是说,之前网站做的越烂,优化的空间就越多<br />
和老板说看,之前多烂多烂,俺给你省了多少多少钱,一般都能拿奖金<br />
静态化也一样,之前一大堆插件,开个页面上百次MYSQL查询,或烂人写的没效率SQL会让人不禁抓栏杆撕床单</p>
<p>WP Super Cache 并不是100%静态化,不过这个不重要,他把最卡的部分搞定了即可</p>
<p>WP Super Cache 他唯一的缺点就是如果你在改主题或搞啥插件,后台设置了前台看不出变化,为毛?下面有解决方案</p>
<p>OK, let&#8217;s gou</p>
<ol>
<li>首先，永久连接不能使用默认格式</li>
<li>修改永久链接格式,中文推荐采用 /%post_id%.html (这下你知道我的.orz哪里来了吧)<br />
如果你和我一样蛋疼愿意为每篇文章写一个英语的post  slug<br />
建议采用这样的格式：/%postname%.html (百分号外面的随意写)</li>
</ol>
<p><span id="more-5841"></span><br />
<a title="我想网" href="http://www.iwanna.cn/" target="_blank"><img title="supercache1" src="http://images.uheed.com/iwanna/2010/11/21/wp-super-cache/supercache1.png" alt="WP Super Cache 安装与设置方法 | iwanna.cn 我想网" width="654" height="672" /></a><br />
这里我一二三四五六七都标注了就不介绍了吧,常规装插件也是这个套路</p>
<p>那些个神马ftp时代都已经过去鸟过去鸟</p>
<p><a title="我想网" href="http://www.iwanna.cn/" target="_blank"><img title="supercache2" src="http://images.uheed.com/iwanna/2010/11/21/wp-super-cache/supercache2.png" alt="WP Super Cache 安装与设置方法 | iwanna.cn 我想网" width="687" height="198" /></a><br />
装完后激活一下</p>
<p><a title="我想网" href="http://www.iwanna.cn/" target="_blank"><img title="supercache3" src="http://images.uheed.com/iwanna/2010/11/21/wp-super-cache/supercache3.png" alt="WP Super Cache 安装与设置方法 | iwanna.cn 我想网" width="614" height="178" /></a><br />
激活了,但他说还需要去设置一把, Rock it</p>
<p><a title="我想网" href="http://www.iwanna.cn/" target="_blank"><img title="supercache4" src="http://images.uheed.com/iwanna/2010/11/21/wp-super-cache/supercache4.png" alt="WP Super Cache 安装与设置方法 | iwanna.cn 我想网" width="649" height="803" /></a></p>
<p>凡是推荐的都打钩,无脑输出嘛</p>
<p><strong>需要注意的是<a href="http://miao.in/" target="_blank">(miao)</a>的用户不 要开Compress pages</strong> so they’re served more quickly to visitors.  (Recommended)</p>
<p>因为默认已经压缩了,再压缩一次一是可能乱码,而是增加不必要的损耗变得更慢</p>
<p><strong>需要注意的是</strong>Don&#8217;t cache for known users的意思是对已经登录的用户不缓存</p>
<p>这就解决的后台改主题无法更新的缺点</p>
<p>也就是说,平时的时候这个选项不打钩,当你需要改主题或调试插件什么时候就打他,改完了再去掉</p>
<p><a title="我想网" href="http://www.iwanna.cn/" target="_blank"><img title="supercache5" src="http://images.uheed.com/iwanna/2010/11/21/wp-super-cache/supercache5.png" alt="WP Super Cache 安装与设置方法 | iwanna.cn 我想网" width="648" height="1150" /></a></p>
<p>因为我们选择了最快的mod_rewrite 方式,所以继续往下拉,会看到一坨螺旋状大黄色的容器,点里头的update  mod_rewrite rules</p>
<p><a title="我想网" href="http://www.iwanna.cn/" target="_blank"><img title="supercache6" src="http://images.uheed.com/iwanna/2010/11/21/wp-super-cache/supercache6.png" alt="WP Super Cache 安装与设置方法 | iwanna.cn 我想网" width="652" height="206" /></a></p>
<p>不出意外会给个绿色的确认,某某.htaccess被插了&#8230;</p>
<p><a title="我想网" href="http://www.iwanna.cn/" target="_blank"><img title="supercache7" src="http://images.uheed.com/iwanna/2010/11/21/wp-super-cache/supercache7.png" alt="WP Super Cache 安装与设置方法 | iwanna.cn 我想网" width="647" height="442" /></a></p>
<p>有个激动人心的功能上几个版本才加进来的叫Preload,具体有兴趣可以看我写过的<a href="http://ooxx.me/preload-cache-wp-super-cache.orz" target="_blank">Preload</a> 就不累赘再说一次了</p>
<p><a title="我想网" href="http://www.iwanna.cn/" target="_blank"><img title="supercache8" src="http://images.uheed.com/iwanna/2010/11/21/wp-super-cache/supercache8.png" alt="WP Super Cache 安装与设置方法 | iwanna.cn 我想网" width="584" height="82" /></a></p>
<p>全都搞定后去前台页面,右键查看源代码,拉到最下面,会有三行状态告诉你已经搞定鸟</p>
<p>FAQ:</p>
<p>Q: 我流量那么小,有必要搞这个么?<br />
A: 搞这个纯粹为了自High,和流量没关系,例如打开自己的网站快个两三秒不是一键很爽的事咩?</p>
<p>Q: 那个过期时间我能改咩?<br />
A: 建议用默认的</p>
<blockquote><p>Preload 模式下更改过期时间,会导致全站文件一遍遍的重新生成,这是完全没必要的<br />
普通模式下更改过期时间,太短或太长都会导致CPU飙升,得不偿失,除非你流量大一个月五六千才有必要</p></blockquote>
<p>Q: 我发表新日志,或访客留言后他会全站再静态化一次么?<br />
A:不用担心,使用起来和没有装是一样的,有内容更新它会重新生成对应的页面的静态文件,没有更新的就没必要再去重新生成一次</p>
<p>Q: 这个对SEO有没有影响?<br />
A: 有,SEO里爬虫对页面打开速度比较敏感,</p>
<blockquote><p>常规模式下第一次访问才生成,到期后回收掉,也就是说第一次比较慢<br />
Preload模式先给你都静态了,不管何时访问都快,对SEO更好</p></blockquote>
<p>Q: 乱码啦乱死人啦～～～</p>
<p>A: 关掉 Compress pages so they’re served more quickly to visitors.  (Recommended)</p>
<p>还有啥Q请留言</p>
<hr />
<p>© <a href="http://www.iwanna.cn">我想网</a> Akon 所有 , 2010. |
<a href="http://www.iwanna.cn/archives/2010/11/21/5841/">永久链接</a> |
<a href="http://www.iwanna.cn/archives/2010/11/21/5841/#comments">没有评论</a> |
提交到
<a rel="nofollow" target="_blank" href="http://www.google.com/reader/view/feed/http://www.iwanna.cn/archives/2010/11/21/5841/">Google Reader</a>
<a rel="nofollow" target="_blank" href="http://www.xianguo.com/subscribe.php?url=http://www.iwanna.cn/archives/2010/11/21/5841/">鲜果</a>
<a rel="nofollow" target="_blank" href="http://www.zhuaxia.com/add_channel.php?url=http://www.iwanna.cn/archives/2010/11/21/5841/">抓虾</a>
<hr />
<script type="text/javascript"><!--
google_ad_client = "pub-2057344547305288";
/* 336x280,iwanna feed,created 10/3/10 */
google_ad_slot = "9738886183";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<hr />
</p>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.iwanna.cn/archives/2010/11/21/5841/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress 自动采集 插件汇总</title>
		<link>http://www.iwanna.cn/archives/2010/11/14/5807/</link>
		<comments>http://www.iwanna.cn/archives/2010/11/14/5807/#comments</comments>
		<pubDate>Sun, 14 Nov 2010 14:16:25 +0000</pubDate>
		<dc:creator>seasun</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.iwanna.cn/?p=5807</guid>
		<description><![CDATA[wordpress自动采集插件-smartrss 功能特征： 随心所欲地把自己喜欢的RSS里面的文章自动发布到自己的wordpress 博客上，使得 wordpress 具有了类似于有些 CMS 的自动采集功能。 使用方法： 1、下载jay_smart_rss.zip（http://www.jaylee.cn/wp-content/uploads /jay_smart_rss.zip，若下载地址失效，请自行上网搜索本插件），解压后把jay_smart_rss.php、wp- cron.php 和wp-cron-update-rss.php上传到/wp-content/plugins/目录下；把wp_smartrss.php和 wp_smartrss_hide.php上传到博客根目录下。 2、在插件管理页面激活jay_smart_rss。成功激活后，选项下面会多出一个Smart RSS，点击“Smart RSS”，然后在Add New后面添加你想要发布到你的博客上的文章源RSS地址，选择相应的目录，然后“Save”。 3、在浏览器里输入“http:// 你的博客地址/wp_smartrss.php”，如果看到系统开始读取你设定的RSS地址，同时插入文章成功，恭喜你，大功即将告成。 4、完成第3步后，到插件管理界面激活插件wp-cron.php和wp-cron-update-rss.php，不出意外的话，你的博客从此可以自动 从设定的RSS读取文章并自动在相应的目录发布出来了。程序在自动更新期间博客页面底部会出现如下提示：All News is Auto Updating, Supported by Jay Smart RSS wordpress自动采集插件 -Caffeinated Content 是一个非常强大的WordPress插件，根据关键词搜索Youtube、Yahoo Answer、Articles、Files而获取相关内容，可保留原文也可翻译成多个国家语言，并可以定时定量自动发布到你的博客上的插件工具。 下载地址：Caffeinated Content 下载解压后上传到plugins根目录下，到后台激活即可，完全破解使用，内有注册码，放心使用。 wordpress自 动采集插件-WP-o-Matic 是一款效果非常不错的WordPress采集插件，虽然少了自动分类功能，但该插件在各个方面都表现的尚佳，相对于wordpress采集插件 Caffeinated Content来说，wp-o-matic是不错的选择，通过RSS完成blog的自动采集。 WP-o-Matic 插件是博客联盟见过的最狠的一个 wordpress 采集插件——只需在后台设定 Rss 源以及采集的时间，WP-o-Matic就会自动执行。它甚至可以将对方网站的附件以及图片等都采集，跟国内的cms系统有得一拼，完全无需站长耗心耗 力。 下载地址：wp-o-matic WP-o-Matic安装使用方法： 1、解压后上传插件到你的plugins根目录。 2、需要在火狐或safari中使用激活WP-o-Matic插件。 [...]]]></description>
			<content:encoded><![CDATA[<div>
<p><strong>wordpress自动采集插件-smartrss</strong></p>
<p>功能特征：<br />
随心所欲地把自己喜欢的RSS里面的文章自动发布到自己的wordpress 博客上，使得 <a href="http://www.iwanna.cn/tags/wordpress-php-develope/" class="st_tag internal_tag" rel="tag" title="标签 Wordpress 下的日志">wordpress</a> 具有了类似于有些 CMS  的自动采集功能。<br />
使用方法：<br />
1、下载jay_smart_rss.zip（<a href="http://www.jaylee.cn/wp-content/uploads/jay_smart_rss.zip" target="_blank">http://www.jaylee.cn/wp-content/uploads  /jay_smart_rss.zip</a>，若下载地址失效，请自行上网搜索本插件），解压后把jay_smart_rss.<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag" title="标签 PHP 下的日志">php</a>、wp- cron.<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag" title="标签 PHP 下的日志">php</a>  和wp-cron-update-rss.php上传到/wp-content/plugins/目录下；把wp_smartrss.php和  wp_smartrss_hide.php上传到博客根目录下。<br />
2、在插件管理页面激活jay_smart_rss。成功激活后，选项下面会多出一个Smart RSS，点击“Smart RSS”，然后在Add  New后面添加你想要发布到你的博客上的文章源RSS地址，选择相应的目录，然后“Save”。<br />
3、在浏览器里输入“<a href="http://xn--6qqu0hg1d3b242az30c/wp_smartrss.php" target="_blank">http:// 你的博客地址/wp_smartrss.php</a>”，如果看到系统开始读取你设定的RSS地址，同时插入文章成功，恭喜你，大功即将告成。<br />
4、完成第3步后，到插件管理界面激活插件wp-cron.php和wp-cron-update-rss.php，不出意外的话，你的博客从此可以自动  从设定的RSS读取文章并自动在相应的目录发布出来了。程序在自动更新期间博客页面底部会出现如下提示：All News is Auto  Updating, Supported by Jay Smart RSS<br />
<strong>wordpress自动采集插件 -Caffeinated Content</strong></p>
<p><strong> </strong><br />
是一个非常强大的WordPress插件，根据关键词搜索Youtube、Yahoo  Answer、Articles、Files而获取相关内容，可保留原文也可翻译成多个国家语言，并可以定时定量自动发布到你的博客上的插件工具。<br />
下载地址：Caffeinated Content<br />
下载解压后上传到plugins根目录下，到后台激活即可，完全破解使用，内有注册码，放心使用。</p>
<p><strong>wordpress自 动采集插件-WP-o-Matic</strong></p>
<p><strong> </strong><br />
是一款效果非常不错的WordPress采集插件，虽然少了自动分类功能，但该插件在各个方面都表现的尚佳，相对于wordpress采集插件 Caffeinated Content来说，wp-o-matic是不错的选择，通过RSS完成blog的自动采集。<br />
WP-o-Matic  插件是博客联盟见过的最狠的一个 wordpress 采集插件——只需在后台设定 Rss  源以及采集的时间，WP-o-Matic就会自动执行。它甚至可以将对方网站的附件以及图片等都采集，跟国内的cms系统有得一拼，完全无需站长耗心耗 力。<br />
下载地址：wp-o-matic<br />
WP-o-Matic安装使用方法：<br />
1、解压后上传插件到你的plugins根目录。<br />
2、需要在火狐或safari中使用激活WP-o-Matic插件。<br />
3、激活插件后设置栏出现WP-o-Matic选项点击进入第一步的设置。<br />
4、进行Add  campaign里进行采集设置，主要在feeds里添加要采集的目标站的feeds，categories选择采集分类。<br />
5、在options里设置采集路径等，默认就行，Cache images要求建立个“Cache”文件夹并修改权限为777。每次采集都需要在add  campaign执行，addcampaign设置完成后点击submit后，如果未设置好，他会提示你，直到Campaign added  successfully. Edit it or fetch it now后点击fetch it now。</p>
<p><strong>wordpress 自动采集插件-autoblogged</strong></p>
<p><strong> </strong><br />
（这个本版本Autoblogged仅支持包括 WordPress 2.7x 以及之前的版本。并且用英文版本WordPress程序）</p>
<p>可 以自动根据关键词获得YouTube及Yahoo answer等内容，进而实现博客内容自动发布的目的<br />
简介：AutoBlogged  是一个强大的自动通过RSS 订阅发布到WP博客的插件，你可以用它建立你的自动网赚博客，也可以建立你自己的博客群（blog  farm），通过这个插件你可以生成视频、图片或者文章博客等，可以说是一个比较简单的英文网赚方式了，大致特性如下：<br />
* 支持图片及视频发布<br />
* 自动通过文章源获得关键字<br />
* 自定义 Post 模板<br />
* 自动生成缩略图<br />
* 完全支持 WordPress 2.6  以上版本<br />
* 可配置多 RSS feed 源<br />
* 支持 RSS 0.9, 0.91, 0.92, 1.0, 2.0, Atom  0.3, 1.0 feeds.<br />
* 内建 feed 缓存<br />
* 还不止这些，各位玩儿家慢慢挖掘吧 … …</p>
<p>这个插件 安装很简单，安装方法与其它 WP插件无异，使用方法我也不做过多介绍了，希望用得开心。</p>
<p><strong>wordpress自动采集插 件-FeedWordPress</strong></p>
<p>这个插件用的很不错，主要是读取feed  来实现你的博文更新的。恋吧用的感觉一直不错！并且官方更新的也很快！建议不要用汉化包，就用英文版WordPress和  FeedWordPress原插件！<br />
FeedWordPress is an Atom/RSS aggregator for  WordPress. It syndicates content from Atom or RSS that you choose into  your WordPress blog.<br />
This means that you can syndicate content from  any blog, newsfeed or other source that you choose. Best of all, once  it’s setup, FeedWordPress runs automatically.<br />
After you have  downloaded FeedWordPress, uploaded it to your WordPress plug-ins folder  and activated it from your WP admin panel, you can have several  different customization options to choose from:<br />
插件发布地址（貌似无法打开），官方下载地址页面</p>
<p><strong>wordpress自动采集插件-BDP RSS  Aggregator</strong></p>
<p>通过BDP RSS Aggregator 这个wordpress  插件，可以聚合多个blog的内容。适用于拥有多个博客的blogger，或者资源聚合和分享类的blogger，以及群组blogger。</p>
<p>BDP  RSS Aggregator 插件主要是聚合标题以及部分摘要，并不会全文现实内容，也不会把对方的文章导入到自己的数据库里面。详见  aggregated blog feeds：聚合多个博客的内容一文。</p>
<p><strong> </strong></p>
<p><strong>wordpress 自动采集插件-FeedWordPress</strong></p>
<p>FeedWordPress 是一个rss  聚合插件，可以聚合其他博客的内容源现实到自己的博客上，并且是以全文的形式。你可以点此下载中文版。</p>
<p><strong>wordpress 自动采集插件-Friends RSS Aggregator (FRA)</strong></p>
<p>Friends RSS  Aggregator (FRA) 这个插件可以通过RSS聚合，也只是现实文章的标题，发布日期等。</p>
<p>inlineRSS</p>
<p>Inlinefeed  支持RSS, RDF, XML or HTML等几种格式，通过Inlinefeed可以让Rss源的文章现实在特定文章内。</p>
<p><strong>wordpress 自动采集插件-GetRSS</strong></p>
<p>激活GetRSS插件后，可以使用如下的代码聚合 rss 的文章。</p>
<p>把 rss地址换成你想聚合的rss地址就可以了，5是显示文章数量，可以修改</p>
</div>
<hr />
<p>© <a href="http://www.iwanna.cn">我想网</a> Akon 所有 , 2010. |
<a href="http://www.iwanna.cn/archives/2010/11/14/5807/">永久链接</a> |
<a href="http://www.iwanna.cn/archives/2010/11/14/5807/#comments">2 条评论</a> |
提交到
<a rel="nofollow" target="_blank" href="http://www.google.com/reader/view/feed/http://www.iwanna.cn/archives/2010/11/14/5807/">Google Reader</a>
<a rel="nofollow" target="_blank" href="http://www.xianguo.com/subscribe.php?url=http://www.iwanna.cn/archives/2010/11/14/5807/">鲜果</a>
<a rel="nofollow" target="_blank" href="http://www.zhuaxia.com/add_channel.php?url=http://www.iwanna.cn/archives/2010/11/14/5807/">抓虾</a>
<hr />
<script type="text/javascript"><!--
google_ad_client = "pub-2057344547305288";
/* 336x280,iwanna feed,created 10/3/10 */
google_ad_slot = "9738886183";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<hr />
</p>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.iwanna.cn/archives/2010/11/14/5807/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>PHP的可变变量名</title>
		<link>http://www.iwanna.cn/archives/2010/11/09/5746/</link>
		<comments>http://www.iwanna.cn/archives/2010/11/09/5746/#comments</comments>
		<pubDate>Mon, 08 Nov 2010 16:13:57 +0000</pubDate>
		<dc:creator>seasun</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.iwanna.cn/?p=5746</guid>
		<description><![CDATA[有时候可变的变量名会给编程带来很大的方便。也就是说变量名可以被动态的命名和使用。通常变量通过下面这样的语句来命名 ： &#60;?php $a = 'hello'; ?&#62; 可变变量名指的是使用一个变量的值作为这个变量的名称。在上面的例子中，通过使用两个$符号，你可以把hello设置成一个变量 的名称，就像下面那样。 &#60;?php $$a = 'world'; ?&#62; 通过上面的两个语句，有两个变量被定义：变量$a，装的内容是”hello” 以及变量$hello， 装的内容是 “world”。 于是，下面的语言： &#60;?php echo "$a ${$a}"; ?&#62; 跟下面的语句的输出完全一致： &#60;?php echo "$a $hello"; ?&#62; 它们都输出：hello world。 为了使用数组的可变变量名，你需要解决一个歧义问题。就是，如果你写$$a[1]，解析器需要明白究 竟你的意思是要把$a[1]当成一个变量，还是要把$$a当 成变量、[1]指的是这个变量的索引。解决这个歧义问题的语法是：第一种情况使用${$a[1]}，第二种 情况使用${$a}[1]。 类属性也可以通过可变属性名来访问。可变属性名从产生调用所在的变量的访问范围内获取。例如，如果你的表达式是这样的：$foo-&#62;$bar， 那么运行时将会在本地变量范围内寻找变量$bar，它的值将会做为$foo对 象的一个属性名。如果$bar是个数组也可以使用。 例1 可变变量名 &#60;?php class foo { var $bar = 'I am bar.'; } $foo = new [...]]]></description>
			<content:encoded><![CDATA[<p>有时候可变的变量名会给编程带来很大的方便。也就是说变量名可以被动态的命名和使用。通常变量通过下面这样的语句来命名 ：</p>
<p><code> &lt;?<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag" title="标签 PHP 下的日志">php</a><br />
$a = 'hello';<br />
?&gt; </code></p>
<p>可变变量名指的是使用一个变量的值作为这个变量的名称。在上面的例子中，通过使用两个$符号，你可以把<em>hello</em>设置成一个变量 的名称，就像下面那样。</p>
<p><code> &lt;?php<br />
$$a = 'world';<br />
?&gt; </code><br />
<span id="more-5746"></span></p>
<p>通过上面的两个语句，有两个变量被定义：<var>变量<var>$a</var></var>，装的内容是”hello” 以及变量<var><var>$hello</var></var>， 装的内容是 “world”。  于是，下面的语言：</p>
<p><code> &lt;?php<br />
echo "$a ${$a}";<br />
?&gt; </code></p>
<p>跟下面的语句的输出完全一致：</p>
<p><code> &lt;?php<br />
echo "$a $hello";<br />
?&gt; </code></p>
<p>它们都输出：hello world。</p>
<p>为了使用数组的可变变量名，你需要解决一个歧义问题。就是，如果你写<var><var>$$a[1]</var></var>，解析器需要明白究 竟你的意思是要把<var><var>$a[1]</var></var>当成一个变量，还是要把<var><var>$$a</var></var>当 成变量、[1]指的是这个变量的索引。解决这个歧义问题的语法是：第一种情况使用<var><var>${$a[1]}</var></var>，第二种 情况使用<var><var>${$a}[1]</var></var>。</p>
<p>类属性也可以通过可变属性名来访问。可变属性名从产生调用所在的变量的访问范围内获取。例如，如果你的表达式是这样的：<var><var>$foo-&gt;$bar</var></var>， 那么运行时将会在本地变量范围内寻找变量<var><var>$bar</var></var>，它的值将会做为<var><var>$foo</var></var>对 象的一个属性名。如果<var><var>$bar</var></var>是个数组也可以使用。</p>
<p><strong>例1 可变变量名</strong></p>
<p><code> &lt;?php<br />
class foo {<br />
var $bar = 'I am bar.';<br />
}</code></p>
<p>$foo = new foo();<br />
$bar = &#8216;bar&#8217;;<br />
$baz = array(&#8216;foo&#8217;, &#8216;bar&#8217;, &#8216;baz&#8217;, &#8216;quux&#8217;);<br />
echo $foo-&gt;$bar . &#8220;\n&#8221;;<br />
echo $foo-&gt;$baz[1] . &#8220;\n&#8221;;<br />
?&gt;</p>
<p>上面的例子将会输出下面的结果：</p>
<p>I am bar.<br />
I am bar.<br />
<strong>警告</strong>请注意，可变变量名不能用于PHP函数和类里的<a href="http://il2.php.net/manual/en/language.variables.superglobals.php" target="_blank">超 级全局数组变量</a>上。变量<em>$this</em>也是一个不能动态取名的特殊变量。</p>
<hr />
<p>© <a href="http://www.iwanna.cn">我想网</a> Akon 所有 , 2010. |
<a href="http://www.iwanna.cn/archives/2010/11/09/5746/">永久链接</a> |
<a href="http://www.iwanna.cn/archives/2010/11/09/5746/#comments">没有评论</a> |
提交到
<a rel="nofollow" target="_blank" href="http://www.google.com/reader/view/feed/http://www.iwanna.cn/archives/2010/11/09/5746/">Google Reader</a>
<a rel="nofollow" target="_blank" href="http://www.xianguo.com/subscribe.php?url=http://www.iwanna.cn/archives/2010/11/09/5746/">鲜果</a>
<a rel="nofollow" target="_blank" href="http://www.zhuaxia.com/add_channel.php?url=http://www.iwanna.cn/archives/2010/11/09/5746/">抓虾</a>
<hr />
<script type="text/javascript"><!--
google_ad_client = "pub-2057344547305288";
/* 336x280,iwanna feed,created 10/3/10 */
google_ad_slot = "9738886183";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<hr />
</p>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.iwanna.cn/archives/2010/11/09/5746/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress亦歌音乐分享插件！</title>
		<link>http://www.iwanna.cn/archives/2010/11/08/5743/</link>
		<comments>http://www.iwanna.cn/archives/2010/11/08/5743/#comments</comments>
		<pubDate>Mon, 08 Nov 2010 14:04:17 +0000</pubDate>
		<dc:creator>seasun</dc:creator>
				<category><![CDATA[NetSoft]]></category>
		<category><![CDATA[Website]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[OnlineTool]]></category>

		<guid isPermaLink="false">http://www.iwanna.cn/?p=5743</guid>
		<description><![CDATA[今天在博客的读者栏中发现的不错的一个站点提供的播放插件，好东西自然要强烈推荐下的，哈~~ 晓星帮我们做了在WordPress中进行歌曲分享的插件。感谢晓星！ WordPress搭建的博客中，增加这个插件后，会在撰写文章时，多看到一个工具图标，是亦歌的logo。 这个工具可以让作者输入关键词，搜索出指定歌曲，选定歌曲后在文章中会出现亦歌迷你播放器，播放这首歌，简单方便！效果如下： 如果您在博客中向朋友们推荐您喜爱的歌曲，一定记得使用这个插件哦！ 在这里查看详细信息和安装方法：http://www.1g1g.com/extensions.html#wp-mini-player © 我想网 Akon 所有 , 2010. &#124; 永久链接 &#124; 没有评论 &#124; 提交到 Google Reader 鲜果 抓虾 Feed enhanced by Better Feed from Ozh]]></description>
			<content:encoded><![CDATA[<p><strong>今天在博客的读者栏中发现的不错的一个站点提供的播放插件，好东西自然要强烈推荐下的，哈~~</strong></p>
<blockquote><p>晓星帮我们做了在WordPress中进行歌曲分享的插件。感谢晓星！</p>
<p>WordPress搭建的博客中，增加这个插件后，会在撰写文章时，多看到一个工具图标，是亦歌的logo。</p>
<p><a href="http://blog.1g1g.com/wp-content/uploads/2010/11/wp-1g1g-button.png"><img title="wp-1g1g-button" src="http://blog.1g1g.com/wp-content/uploads/2010/11/wp-1g1g-button.png" alt="" width="144" height="72" /></a></p>
<p>这个工具可以让作者输入关键词，搜索出指定歌曲，选定歌曲后在文章中会出现亦歌迷你播放器，播放这首歌，简单方便！效果如下：</p>
<p><object id="1gMiniPlayer" width="200px" height="24px" type="application/x-shockwave-flash" data="http://public.1g1g.com/miniplayer/miniPlayer.swf"><param name="movie" value="http://public.1g1g.com/miniplayer/miniPlayer.swf" /><param name="allowScriptAccess" value="always" /><param name="FlashVars" value="play=#1289" /><param name="wmode" value="transparent" /></object>如果您在博客中向朋友们推荐您喜爱的歌曲，一定记得使用这个插件哦！</p>
<p>在这里查看详细信息和安装方法：<a href="http://www.1g1g.com/extensions.html#wp-mini-player" target="_blank">http://www.1g1g.com/extensions.html#wp-mini-player</a></p></blockquote>
<hr />
<p>© <a href="http://www.iwanna.cn">我想网</a> Akon 所有 , 2010. |
<a href="http://www.iwanna.cn/archives/2010/11/08/5743/">永久链接</a> |
<a href="http://www.iwanna.cn/archives/2010/11/08/5743/#comments">没有评论</a> |
提交到
<a rel="nofollow" target="_blank" href="http://www.google.com/reader/view/feed/http://www.iwanna.cn/archives/2010/11/08/5743/">Google Reader</a>
<a rel="nofollow" target="_blank" href="http://www.xianguo.com/subscribe.php?url=http://www.iwanna.cn/archives/2010/11/08/5743/">鲜果</a>
<a rel="nofollow" target="_blank" href="http://www.zhuaxia.com/add_channel.php?url=http://www.iwanna.cn/archives/2010/11/08/5743/">抓虾</a>
<hr />
<script type="text/javascript"><!--
google_ad_client = "pub-2057344547305288";
/* 336x280,iwanna feed,created 10/3/10 */
google_ad_slot = "9738886183";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<hr />
</p>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.iwanna.cn/archives/2010/11/08/5743/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>13个WordPress提速技巧</title>
		<link>http://www.iwanna.cn/archives/2010/10/17/5574/</link>
		<comments>http://www.iwanna.cn/archives/2010/10/17/5574/#comments</comments>
		<pubDate>Sun, 17 Oct 2010 13:12:31 +0000</pubDate>
		<dc:creator>seasun</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.iwanna.cn/?p=5574</guid>
		<description><![CDATA[性能是一个网站成功的非常关键因素，任何人都不喜欢访问速度超慢的网站。WordPress 的开放性造就 WordPress 有着成千上万的插件，使得 WordPress 比以其他 CMS 程序更受欢迎，但是开放也在一定程度上使得 WordPress 的性能不是很好，所以当你发现你的 WordPress 站点性能很差，你应该尝试通过下面的方式去优化它： 一些最基本，简单的提速方法 1. 更新 WordPress 到最新的发行版本 WordPress 每次版本的升级都有对性能的改进，所以升级到 WordPress 最新的发行版本是改进性能的第一步。 2. 删除没用的插件和更新正在使用的插件 删除任何你不再使用的插件，并从服务器上删除它们，这样会明显加速 WordPress 速度，因为 WordPress 运行的时候会检查每个插件是否被启用，并且导入激活的插件。 另外最好把现在使用的插件更新到最新版本，因为插件的开发者发布新版本一般来说他们应该是在某种程度上优化了插件工作效率。 3. 最小化 PHP 和数据库查询 如果每次导入你服务器上的一个页面，服务器都要执行 PHP 语句和数据库查询，这样速度是不会快的，如果你把一些 PHP 语句直接改成静态的 HTML 代码，这样每次导入页面，浏览器只要读取 HTML 就好了。 4. 使用 PHPmyAdmin 优化和修复数据库 我们至少应该每个星期登陆 PHPMyAdmin 去优化下数据库，选择 WordPress 数据库，选择所有的表，选择优化数据表和修复，你会惊奇的发现这个技巧的效果非常好，它节省了数据库的 10% 的空间，并且效率也提高了。 使用 PHPmyAdmin [...]]]></description>
			<content:encoded><![CDATA[<p>性能是一个网站成功的非常关键因素，任何人都不喜欢访问速度超慢的网站。<a href="http://www.iwanna.cn/tags/wordpress-php-develope/" class="st_tag internal_tag" rel="tag" title="标签 Wordpress 下的日志">WordPress</a> 的开放性造就 <a href="http://www.iwanna.cn/tags/wordpress-php-develope/" class="st_tag internal_tag" rel="tag" title="标签 Wordpress 下的日志">WordPress</a>  有着成千上万的插件，使得 <a href="http://www.iwanna.cn/tags/wordpress-php-develope/" class="st_tag internal_tag" rel="tag" title="标签 Wordpress 下的日志">WordPress</a> 比以其他 CMS 程序更受欢迎，但是开放也在一定程度上使得 <a href="http://www.iwanna.cn/tags/wordpress-php-develope/" class="st_tag internal_tag" rel="tag" title="标签 Wordpress 下的日志">WordPress</a>  的性能不是很好，所以当你发现你的 <a href="http://www.iwanna.cn/tags/wordpress-php-develope/" class="st_tag internal_tag" rel="tag" title="标签 Wordpress 下的日志">WordPress</a> 站点性能很差，你应该尝试通过下面的方式去优化它：</p>
<h2>一些最基本，简单的提速方法</h2>
<p><strong>1. 更新 WordPress 到最新的发行版本</strong></p>
<p>WordPress 每次版本的升级都有对性能的改进，所以升级到 WordPress 最新的发行版本是改进性能的第一步。</p>
<p><strong>2. 删除没用的插件和更新正在使用的插件</strong></p>
<p>删除任何你不再使用的插件，并从服务器上删除它们，这样会明显加速 WordPress 速度，因为 WordPress  运行的时候会检查每个插件是否被启用，并且导入激活的插件。</p>
<p>另外最好把现在使用的插件更新到最新版本，因为插件的开发者发布新版本一般来说他们应该是在某种程度上优化了插件工作效率。<br />
<span id="more-5574"></span><br />
<strong>3. 最小化 <a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag" title="标签 PHP 下的日志">PHP</a> 和数据库查询</strong></p>
<p>如果每次导入你服务器上的一个页面，服务器都要执行 PHP 语句和数据库查询，这样速度是不会快的，如果你把一些 PHP  语句直接改成静态的 HTML 代码，这样每次导入页面，浏览器只要读取 HTML 就好了。</p>
<p><strong>4. 使用 PHPmyAdmin 优化和修复数据库</strong></p>
<p>我们至少应该每个星期登陆 PHPMyAdmin 去优化下数据库，选择 WordPress  数据库，选择所有的表，选择优化数据表和修复，你会惊奇的发现这个技巧的效果非常好，它节省了数据库的 10% 的空间，并且效率也提高了。</p>
<p><a title="我想网" href="http://www.iwanna.cn/" target="_blank"><img src="http://images.uheed.com/iwanna/2010/10/17/optimize-wordpress-speed/PHPMyAdmin-Optimize-Table.jpg" alt="PHPMyAdmin  Optimize Table" /></a><br />
使用 PHPmyAdmin 优化和修复数据库</p>
<h2><a name="toc-2"></a>优化图片和其他静态文件</h2>
<p><strong>5. 使用可靠的图片存储服务</strong></p>
<p>可以尝试把一些常用的网页图片，CSS，JavaScript 和其他一些静态文件存到 Amazon S3  这样的存储服务中，你会发现服务器的 CPU 时间和内存使用会下降很多，这里有一个<a href="http://www.labnol.org/internet/host-images-files-on-amazon-s3-storage/4923/" target="_blank"> Amazon S3 的向导</a>。</p>
<p><a title="我想网" href="http://www.iwanna.cn/" target="_blank"><img src="http://images.uheed.com/iwanna/2010/10/17/optimize-wordpress-speed/amazon-s3.jpg" alt="Amazon S3" /></a><br />
使用 Amazon S3 存储图片</p>
<p>不过 Amazon 的 S3 存储服务收费的，价格虽然比较低的，但是个人感觉还是不特别适合国内的 blogger。</p>
<p><strong>6. 通过 <a href="http://toki-woki.net/p/Shrink-O-Matic/" target="_blank">Shrink  O’Matic </a>这个工具来优化图片</strong></p>
<p>Shrink O’Matic 是一个 AIR 程序，它能非常容易批量修改图片，并且支持 JPG, GIF 和 PNG  格式。只要简单的拖拉图片，它就能帮你修改图片的大小，另外它还有一些选项，让你能够选择输出大小，名字和格式。</p>
<p><a title="我想网" href="http://www.iwanna.cn/" target="_blank"><img src="http://images.uheed.com/iwanna/2010/10/17/optimize-wordpress-speed/Shrink-O-Matic.jpg" alt="Shrink  O’Matic" /></a><br />
Shrink O’Matic</p>
<h2><a name="toc-3"></a>全面提高性能</h2>
<p><strong>7. 安装 WP Super Cache 插件</strong></p>
<p>关于 <a href="http://fairyfish.net/2008/10/27/wp-super-cache/">WP  Super Cache</a> 这个插件，我已经有详细的介绍。这里简单说，就是它能够产生静态的 HTML 文件，这些 HTML  文件产生之后，你的服务器就不用再去运行 PHP 脚本和数据库查询，所以它能够明显的加快你的博客速度。</p>
<p><strong>8. PHP Speedy WP</strong></p>
<p><a href="http://aciddrop.com/2008/12/11/php-speedy-wp-05-now-works-with-wordpress-27/" target="_blank">PHP Speedy WP </a>能够会自动把所有的 JS 和 CSS  文件组合成两个文件，这样就非常简单的加速 WordPress 站点和提高你的博客的响应时间。并且 CSS 的背景图片被转换成 data  URIs，就大大降低了 HTTP 请求，并且重要的是，它和 IE 兼容，尽管 IE 不支持 data URIs。但是不幸的是，PHP  speedy 还有一些缺陷，组装之后的 JavaScript 文件是放在页面顶部而不是底部，所以这个会在 WP Super Cache  开启的时候不工作，当然了已经有人提供了<a href="http://www.prelovac.com/vladimir/optimize-wordpress-page-loading-time-with-php-speedy-and-wp-super-cache" target="_blank">解决方案</a>。</p>
<p><a title="我想网" href="http://www.iwanna.cn/" target="_blank"><img src="http://images.uheed.com/iwanna/2010/10/17/optimize-wordpress-speed/php-speedy-wp.jpg" alt="PHP Speedy  WP" /></a><br />
PHP Speedy WP</p>
<p><strong>9. WP CSS</strong></p>
<p>这个插件会 GZIP 压缩和删除 CSS 文件中的空白，并且会把 style.css 文件中的 @import  直接放入，这个插件还可以设置 CSS 文件的缓存过期时间。</p>
<p><strong>10. DB Cache</strong></p>
<p><a href="http://madlabsmedia.com/admin/public/index.php/" target="_blank">DB  Cache</a> 这个插件在给定的时间内可以缓存数据库的每一次查询，并且速度很快，而且只用到很少的磁盘空间用于缓存。</p>
<p><strong>11. 使用 Google 的 AJAX Libraries API 来提速</strong></p>
<p><a href="http://fairyfish.net/2008/05/29/google-ajax-libraries-api/">AJAX  Libraries API</a> 就是 Google 把一些非常流行 Javsacript 框架（jQuery, prototype,  script.aculo.us, MooTools, dojo）放到 Google 的服务器上，使得大家可以充分使用 Google  的服务器资源之外，更重要的是能够提高你的速度。另外<a href="http://fairyfish.net/2008/07/09/wordpress-plugin-google-ajax-libraries/">WordPress  也有 AJAX Libraries 相关的插件</a>。</p>
<p><strong>12. 显示页面导入时间和查询次数</strong></p>
<p>这里有段代码能够让你插入到你的模板中让你知道页面导入的时间，和有多少数据库查询，这个技巧能够让你知道你博客优化的程度。</p>
<pre>在 &lt;?php timer_stop(1); ?&gt;  秒钟有 &lt;?php echo get_num_queries(); ?&gt; 次查询。
</pre>
<p><strong>13. Optimize DB</strong></p>
<p>MySQL 是一个非常好的数据库，但是它不能自己整理和清理碎片和垃圾。Optimize DB  这个插件可以运行优化数据库的命令，加速你的 WordPress 数据库的速度，这里有一篇关于<a href="http://fairyfish.net/2008/12/14/optimize-db/"> Optimize DB 插件</a>的 详细介绍。</p>
<hr />
<p>© <a href="http://www.iwanna.cn">我想网</a> Akon 所有 , 2010. |
<a href="http://www.iwanna.cn/archives/2010/10/17/5574/">永久链接</a> |
<a href="http://www.iwanna.cn/archives/2010/10/17/5574/#comments">没有评论</a> |
提交到
<a rel="nofollow" target="_blank" href="http://www.google.com/reader/view/feed/http://www.iwanna.cn/archives/2010/10/17/5574/">Google Reader</a>
<a rel="nofollow" target="_blank" href="http://www.xianguo.com/subscribe.php?url=http://www.iwanna.cn/archives/2010/10/17/5574/">鲜果</a>
<a rel="nofollow" target="_blank" href="http://www.zhuaxia.com/add_channel.php?url=http://www.iwanna.cn/archives/2010/10/17/5574/">抓虾</a>
<hr />
<script type="text/javascript"><!--
google_ad_client = "pub-2057344547305288";
/* 336x280,iwanna feed,created 10/3/10 */
google_ad_slot = "9738886183";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<hr />
</p>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.iwanna.cn/archives/2010/10/17/5574/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>10大最佳WordPress 插件推荐</title>
		<link>http://www.iwanna.cn/archives/2010/09/17/5284/</link>
		<comments>http://www.iwanna.cn/archives/2010/09/17/5284/#comments</comments>
		<pubDate>Thu, 16 Sep 2010 16:56:05 +0000</pubDate>
		<dc:creator>seasun</dc:creator>
				<category><![CDATA[Plugin]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.iwanna.cn/?p=5284</guid>
		<description><![CDATA[WordPress Plugin扩展插件众多，使用这些插件可以轻松的扩展和定制WordPress的功能，由于WordPress插件实在太多，因此对于初学者来说会看得眼花缭乱，因此我这里就介绍十个我自己觉得不错的WordPress插件，我挑选的规则是插件的功能要实用且高效，有些插件如果占用过多系统资源，我就不会介绍。通过这些插件，希望能对刚接触WordPress的朋友有所帮助。 1.反垃圾留言：Akismet 一个很不错的反垃圾留言插件，总体来说效果还可以，有时候会有误判和漏判，大多数情况下可以拦截垃圾留言和评论，使用前需要先申请一个WordPress.Com 的API KEY才行。 2.缓存和静态化：cos-html-cache 做为一个WordPress静态化插件，cos-html-cache可以将首页和文章页自动生成静态HTML文件，提高了系统的性能，减少了WordPress占 用的系统资源，虽然目录页没有静态化，不过也可以安装WP Super Cache来配合使用。 3.计数统计：WP-PostViews WP-PostViews是一个文章计数统计插件，可以在文章中显示浏览数，还提供了一些统计功能，比如一定时间内浏览最多，评论最多等等，占用的 系统资源也不多。对于使用静态化插件的WordPress来说，需要使用JavaScript 版本的WP-PostViews ，否则会无法计数。这个插件需要修改模板文件。 4.页面导航：WP-PageNavi WP-PageNavi可以在页面底部增加一个翻页功能，比默认的分页更方便一些。这个插件需要修改模板文件。 5.相关文章：Simple Tags Simple Tags是一个Tags管理插件，启用后可以在文章和Feed中添加相关文章，用起来很方便，Simple Tags的批量Tags管理虽然有些缺陷， 但是比WordPress官方的Tags管理 还是方便一些。 6.搜索引擎优化：All in One SEO Pack 使用All in One SEO Pack可以在不修改模板的情况下对WordPress进行SEO搜索引擎 优化，还可以给每篇页面添加独立的关键词和摘要，加速和优化Google等搜索引擎的索引，使用这个插件可能会增加一些系统资源的使用，因此最好在静态化 的WordPress下使用。 7.Google Sitemaps：Google XML Sitemaps Google XML Sitemaps可以自动生成WordPress的Google Sitemaps并将其修改到robots文件中，有利于Google的索引，当然你也可以登录到Google Webmasters中手动提交你的Google Sitemaps。 8.评论留言：WordPress Thread Comment WordPress Thread Comment是一个针对WordPress评论功能的增强插 件，让用户能够对已有评论进行回复讨论，并将结果嵌套或成串显示，效果不错。结合Subscribe To [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.iwanna.cn/tags/wordpress-php-develope/" class="st_tag internal_tag" rel="tag" title="标签 Wordpress 下的日志">WordPress</a> Plugin扩展插件众多，使用这些插件可以轻松的扩展和定制WordPress的功能，由于WordPress插件实在太多，因此对于初学者来说会看得眼花缭乱，因此我这里就介绍十个我自己觉得不错的WordPress插件，我挑选的规则是插件的功能要实用且高效，有些插件如果占用过多系统资源，我就不会介绍。通过这些插件，希望能对刚接触WordPress的朋友有所帮助。</p>
<h3>1.反垃圾留言：<a href="http://akismet.com/" target="_blank">Akismet</a></h3>
<p>一个很不错的反垃圾留言插件，总体来说效果还可以，有时候会有误判和漏判，大多数情况下可以拦截垃圾留言和评论，使用前需要先申请一个WordPress.Com 的API KEY才行。</p>
<h3>2.缓存和静态化：<a href="http://www.storyday.com/tag/cos-html-cache" target="_blank">cos-html-cache</a></h3>
<p>做为一个<a href="http://www.williamlong.info/archives/1211.html" target="_blank">WordPress静态化插件</a>，cos-<a rel="nofollow" href="http://www.woiweb.net/category/html" target="_blank">html</a>-cache可以将首页和文章页自动生成静态HTML文件，提高了系统的性能，减少了WordPress占 用的系统资源，虽然目录页没有静态化，不过也可以安装<a href="http://wordpress.org/extend/plugins/wp-super-cache/" target="_blank">WP Super Cache</a>来配合使用。<br />
<span id="more-5284"></span></p>
<h3>3.计数统计：<a href="http://lesterchan.net/wordpress/readme/wp-postviews.html" target="_blank">WP-PostViews</a></h3>
<p>WP-PostViews是一个文章计数统计插件，可以在文章中显示浏览数，还提供了一些统计功能，比如一定时间内浏览最多，评论最多等等，占用的 系统资源也不多。对于使用静态化插件的WordPress来说，需要使用<a href="http://www.williamlong.info/archives/1177.html" target="_blank">JavaScript 版本的WP-PostViews</a> ，否则会无法计数。这个插件需要修改模板文件。</p>
<h3>4.页面导航：<a href="http://lesterchan.net/wordpress/readme/wp-pagenavi.html" target="_blank">WP-PageNavi</a></h3>
<p>WP-PageNavi可以在页面底部增加一个翻页功能，比默认的分页更方便一些。这个插件需要修改模板文件。</p>
<h3>5.相关文章：<a href="http://wordpress.org/extend/plugins/simple-tags" target="_blank">Simple Tags</a></h3>
<p>Simple  Tags是一个Tags管理插件，启用后可以在文章和Feed中添加相关文章，用起来很方便，Simple Tags的批量Tags管理虽然有些<a href="http://www.williamlong.info/archives/1185.html" target="_blank">缺陷</a>， 但是比WordPress官方的Tags管理 还是方便一些。</p>
<h3>6.搜索引擎优化：<a href="http://wordpress.org/extend/plugins/all-in-one-seo-pack/" target="_blank">All in One SEO Pack</a></h3>
<p>使用All in One SEO Pack可以在不修改模板的情况下对WordPress进行SEO搜索引擎 优化，还可以给每篇页面添加独立的关键词和摘要，加速和优化Google等搜索引擎的索引，使用这个插件可能会增加一些系统资源的使用，因此最好在静态化 的WordPress下使用。</p>
<h3>7.Google Sitemaps：<a href="http://www.arnebrachhold.de/redir/sitemap-home/" target="_blank">Google  XML Sitemaps</a></h3>
<p>Google XML Sitemaps可以自动生成WordPress的Google  Sitemaps并将其修改到robots文件中，有利于Google的索引，当然你也可以登录到Google Webmasters中手动提交你的<a href="http://www.williamlong.info/archives/327.html" target="_blank">Google  Sitemaps</a>。</p>
<h3>8.评论留言：<a href="http://blog.2i2j.com/plugins/wordpress-thread-comment" target="_blank">WordPress Thread Comment</a></h3>
<p>WordPress Thread  Comment是一个针对WordPress评论功能的增强插 件，让用户能够对已有评论进行回复讨论，并将结果嵌套或成串显示，效果不错。结合<a href="http://wordpress.org/extend/plugins/subscribe-to-comments/" target="_blank">Subscribe To Comments</a>进行邮件评论提醒的话，可以形成很好的互动讨论气氛。</p>
<h3>9.RSS Feed：<a href="http://www.feedburner.com/fb/a/help/wordpress_quickstart" target="_blank">FeedBurner FeedSmith</a></h3>
<p>FeedBurner FeedSmith可以将WordPress自己的Feed转发 到FeedBurner等Feed托管服务，以节省系统资源和带宽，此插件稍加修改（将feedburner|feedvalidator修改为 feedsky|feedburner|feedvalidator）即可应用于FeedSky上。</p>
<h3>10.数据库：<a href="http://www.ilfilosofo.com/blog/wp-db-backup" target="_blank">WordPress Database Backup</a></h3>
<p>WordPress Database  Backup可以设置每天或者每周自动备份WordPress数据库，可以选择备 份到服务器、下载到本地或者自动发送到某个信箱，对于中文数据库的支持也很好。</p>
<hr />
<p>© <a href="http://www.iwanna.cn">我想网</a> Akon 所有 , 2010. |
<a href="http://www.iwanna.cn/archives/2010/09/17/5284/">永久链接</a> |
<a href="http://www.iwanna.cn/archives/2010/09/17/5284/#comments">1条评论</a> |
提交到
<a rel="nofollow" target="_blank" href="http://www.google.com/reader/view/feed/http://www.iwanna.cn/archives/2010/09/17/5284/">Google Reader</a>
<a rel="nofollow" target="_blank" href="http://www.xianguo.com/subscribe.php?url=http://www.iwanna.cn/archives/2010/09/17/5284/">鲜果</a>
<a rel="nofollow" target="_blank" href="http://www.zhuaxia.com/add_channel.php?url=http://www.iwanna.cn/archives/2010/09/17/5284/">抓虾</a>
<hr />
<script type="text/javascript"><!--
google_ad_client = "pub-2057344547305288";
/* 336x280,iwanna feed,created 10/3/10 */
google_ad_slot = "9738886183";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<hr />
</p>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.iwanna.cn/archives/2010/09/17/5284/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Drupal 7：你需要了解的事实</title>
		<link>http://www.iwanna.cn/archives/2010/09/13/5260/</link>
		<comments>http://www.iwanna.cn/archives/2010/09/13/5260/#comments</comments>
		<pubDate>Mon, 13 Sep 2010 14:54:26 +0000</pubDate>
		<dc:creator>seasun</dc:creator>
				<category><![CDATA[Drupal]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.iwanna.cn/?p=5260</guid>
		<description><![CDATA[Drupal是一个内容管理系统（CMS），也是一个内容管理框架（CMF）。因此，它既是一种应用程序，能够帮助开发者外的其它人员建立复杂的网 站；同时，它也是一种开发架构，能够帮助开发人员快速定制和开发应用程序。围绕Drupal，已经发展起来一个庞大的用户社区，热衷于改进该软件，并支持它的实际应用。 经过两年多的酝酿和6600多次重大更新，Drupal 7 即将发布。其中的重大变化会对最终用户，网站建设者和开发者带来很好的影响。本文探讨了Drupal 7 一些最显著的新功能。首先，让我们介绍一些入门者必须了解的Drupal基本知识&#8230; Drupal的基础知识 在 Drupal中有五个层次： 1。 数据 &#8211; 在Drupal中，表现为&#8217;节点&#8217;（文章，评论，用户）。 2。 模块 &#8211; 即Drupal中的一些功能插件，用来扩展你的网站的功能。 3。 区块，菜单 &#8211; 提供一个网页区域，其中包括导航。 4。 用户权限 &#8211; 基于角色，控制哪些是用户可以看到的，哪些是用户可以做到的。 5。 主题 &#8211; 通过模板，以XHTML和CSS的形式对网站的基础数据加以呈现。 ‘节点’是Drupal的核心概念，这是用于指代某一特点内容单元（例 如，一篇博客文章、一条新闻、一个食谱，等）的通用术语。由于管理员可以创建任何所需的内容类型（包括自定义的字段类型），每个网站上能够添加什么内容， 也是非常灵活的。内容也可以通过分类系统，分类或加上标签。 模块化是Drupal获得成功的主要原因之一，目前已经有超过6000多种 不同的模块，为Drupal增加各种功能，目前所有模块都是免费提供的。在框架层面，模块化是通过挂接机制进行函数定义、捕捉到其他模块所产生事件，实现 Drupal API 的灵活性的。 现在你已经有了基本的知识，让我们看看Drupal 7的新功能&#8230; Drupal的7可 用性 强大的功能带来用户界面的复杂性，Drupal历来被认为是令人迷惑和勇于使用的。为了改善Drupal的用户体验，专门雇用了 Mark Boulton 和 Leisa Reichelt，为Drupal 7创建和测试新的设计。该项目由Acquia资助，这是Drupal创始人Dries Buytaert建立的公司。重新设计的目的是： 1。 让最频繁使用的功能更加容易完成，让较不频繁的任务也可以实现。 2。 为80％的用户设计。 3。 [...]]]></description>
			<content:encoded><![CDATA[<p>Drupal是一个内容管理系统（CMS），也是一个内容管理框架（CMF）。因此，它既是一种应用程序，能够帮助开发者外的其它人员建立复杂的网 站；同时，它也是一种开发架构，能够帮助开发人员快速定制和开发应用程序。围绕Drupal，已经发展起来一个庞大的用户社区，热衷于改进该软件，并支持它的实际应用。</p>
<p>经过两年多的酝酿和6600多次重大更新，<a href="http://www.iwanna.cn/tags/drupal/" class="st_tag internal_tag" rel="tag" title="标签 Drupal 下的日志">Drupal</a> 7  即将发布。其中的重大变化会对最终用户，网站建设者和开发者带来很好的影响。本文探讨了Drupal 7  一些最显著的新功能。首先，让我们介绍一些入门者必须了解的Drupal基本知识&#8230;</p>
<p>Drupal的基础知识</p>
<p>在 Drupal中有五个层次：<br />
1。 数据 &#8211; 在Drupal中，表现为&#8217;节点&#8217;（文章，评论，用户）。<br />
2。 模块 &#8211;  即Drupal中的一些功能插件，用来扩展你的网站的功能。<br />
3。 区块，菜单 &#8211; 提供一个网页区域，其中包括导航。<br />
4。  用户权限 &#8211; 基于角色，控制哪些是用户可以看到的，哪些是用户可以做到的。<br />
5。 主题 &#8211;  通过模板，以XHTML和CSS的形式对网站的基础数据加以呈现。<br />
<span id="more-5260"></span><br />
‘节点’是Drupal的核心概念，这是用于指代某一特点内容单元（例 如，一篇博客文章、一条新闻、一个食谱，等）的通用术语。由于管理员可以创建任何所需的内容类型（包括自定义的字段类型），每个网站上能够添加什么内容， 也是非常灵活的。内容也可以通过分类系统，分类或加上标签。</p>
<p>模块化是Drupal获得成功的主要原因之一，目前已经有超过6000多种 不同的模块，为Drupal增加各种功能，目前所有模块都是免费提供的。在框架层面，模块化是通过挂接机制进行函数定义、捕捉到其他模块所产生事件，实现 Drupal API 的灵活性的。<br />
现在你已经有了基本的知识，让我们看看Drupal 7的新功能&#8230;</p>
<p>Drupal的7可 用性</p>
<p>强大的功能带来用户界面的复杂性，Drupal历来被认为是令人迷惑和勇于使用的。为了改善Drupal的用户体验，专门雇用了 Mark Boulton 和 Leisa Reichelt，为Drupal  7创建和测试新的设计。该项目由Acquia资助，这是Drupal创始人Dries Buytaert建立的公司。重新设计的目的是：<br />
1。  让最频繁使用的功能更加容易完成，让较不频繁的任务也可以实现。<br />
2。 为80％的用户设计。<br />
3。  给内容创建者（用户）以特权。他们用大部分时间来管理内容。<br />
4。 让默认设置更聪明。</p>
<p>Drupal的用户界面的最显着的改善 在于层叠技术的运用。可用性实验室的测试发现，许多从其他CMS系统转移过来的用户，习惯于一个专门化的内容管理和创作后端。在Drupal中，他们发现 很难区分网站不同管理界面。</p>
<p>Drupal  7使用的层叠技术，结合了两者的优点。原位编辑和专门的、更加简洁的后端管理界面。它的优点是，你可以立即从任何地方进入管理模式，在网站上改变设置，然 后返回到原来的位置，保持上下文（图1）的关联。Drupal界面中的另一个重要改进是新增的控制台（仪表盘），提供了获取用户相关信息和用户角色所对应 功能（图2）的一种快捷方式。<br />
表单经过重新设计，使用字段集和垂直制表符来压缩屏幕上战胜的空间（图3）。上下文关联的链接是一种方便的新功能。鼠标悬停在区块上时，会出现齿轮图标； 点击后会出现一系列的菜单项，列出用户可用的功能项。这些菜单对页面上的每个区块都是可用的，并且可以通过编程（图4）来操纵。</p>
<p><a title="Figure 1 - Drupal 7 Overlay1" href="http://www.linuxuser.co.uk/features/drupal-7-everything-you-need-to-know/attachment/figure-2-drupal-7-overlay1/" target="_blank"><img title="Figure 1 - Drupal 7 Overlay1" src="http://images.uheed.com/iwanna/2010/09/13/drupal7/Figure-2-Drupal-7-Overlay1-150x150.jpg" alt="Figure 1 - Drupal 7 Overlay1" /></a> </dt>
</dl>
<dl>
<dt><a title="Figure 6 - Drupal 7 Image Styles" href="http://www.linuxuser.co.uk/features/drupal-7-everything-you-need-to-know/attachment/figure-10-drupal-7-image-styles/" target="_blank"><img title="Figure 6 - Drupal 7 Image Styles" src="http://images.uheed.com/iwanna/2010/09/13/drupal7/Figure-10-Drupal-7-Image-Styles-150x150.jpg" alt="Figure 6 - Drupal 7 Image  Styles" /></a> </dt>
</dl>
<dt> </dt>
<dl>
<dt><a title="Figure 2 - Drupal 7 Dashboard1" href="http://www.linuxuser.co.uk/features/drupal-7-everything-you-need-to-know/attachment/figure-3-drupal-7-dashboard1/" target="_blank"><img title="Figure 2 - Drupal 7 Dashboard1" src="http://images.uheed.com/iwanna/2010/09/13/drupal7/Figure-3-Drupal-7-Dashboard1-150x150.jpg" alt="Figure 2 - Drupal 7  Dashboard1" /></a> </dt>
</dl>
<dl>
<dt><a title="Figure 3 - Drupal 7 Forms1" href="http://www.linuxuser.co.uk/features/drupal-7-everything-you-need-to-know/attachment/figure-4-drupal-7-forms1/" target="_blank"><img title="Figure 3 - Drupal 7 Forms1" src="http://images.uheed.com/iwanna/2010/09/13/drupal7/Figure-4-Drupal-7-Forms1-150x150.jpg" alt="Figure 3 - Drupal 7 Forms1" /></a> </dt>
</dl>
<dl>
<dt><a title="Figure 5 - Drupal 7 RDFa in markup" href="http://www.linuxuser.co.uk/features/drupal-7-everything-you-need-to-know/attachment/figure-8-drupal-7-rdfa-in-markup/" target="_blank"><img title="Figure 5 - Drupal 7 RDFa in markup" src="http://images.uheed.com/iwanna/2010/09/13/drupal7/Figure-8-Drupal-7-RDFa-in-markup-150x77.jpg" alt="Figure 5 - Drupal 7  RDFa in markup" /></a> </dt>
</dl>
<dl>
<dt><a title="Figure 4 - Drupal 7 Contextual Links1" href="http://www.linuxuser.co.uk/features/drupal-7-everything-you-need-to-know/attachment/figure-5-drupal-7-contextual-links1/" target="_blank"><img title="Figure 4 - Drupal 7 Contextual Links1" src="http://images.uheed.com/iwanna/2010/09/13/drupal7/Figure-5-Drupal-7-Contextual-Links1-150x150.jpg" alt="Figure 4 - Drupal 7  Contextual Links1" /></a> </dt>
</dl>
<dl>
<dt><a title="drupal icon" href="http://www.linuxuser.co.uk/features/drupal-7-everything-you-need-to-know/attachment/drupal-icon/" target="_blank"><img title="drupal icon" src="http://images.uheed.com/iwanna/2010/09/13/drupal7/drupal-icon-150x150.jpg" alt="drupal icon" /></a></p>
<p>安装Drupal时，可选 择一个名为“install profile”的安装配置文件。利用该文件，能够建立包括示范数据和配置的网站，让用户能够初步了解如何  使用该系统。如果选择最小安装模式，可创建一个不包含示范数据的网站，因此更适合有经验的用户。</p>
<p>较小的用户体验改进，包括本地时区处理和 更好、更简洁的密码强度管理组件。</p>
<p>另外，Drupal的文档团队已经对帮助系统进行了扩充，使之更为详细、更有组织，包括通向 drupal.org手册页面的链接。</p>
<p>语义Web<br />
语义Web提供了以下好处：<br />
1。 程序和站点可以交换信息。<br />
2。 搜索引擎可以在结果中显示更多相关信息。<br />
3。 数据mashers可以整合来自不同数据集的数据，以寻找新的，惊人的混合效果。</p>
<p>资源描述框架（RDF）是W3C的倡导的一种基于非集中架构的开放式知识建模和共享标准。知识分散开世界假设的W3C标准。关于任何实体的信息， 都可以分解为包括主题、谓主和宾语的三元组合。下面是一个例子：</p>
<p>“用户喜欢Linux”在RDF中表现为三个部分：主语是“用户”，谓语 是“喜欢”，“宾语”则是Linux。</p>
<p>Drupal 7通过为内容定义RDF映射，实现了 <a href="http://www.w3.org/TR/xhtml-rdfa-primer/" target="_blank">RDFa规范</a> 。核心Drupal主题输出RDF元数据和可以人工识读的视视觉信息。事实上，Drupal在数据组织方式上与RDFa已经非常相似：带有属性和关系的类 型实例。最重要的区别是，Drupal的结构隐藏在数据库中，而RDF的结构是在网页上公开的。</p>
<p>Drupal  7引入了一个新的抽象层称为实体类型，包括节点、用户、评论、文件、术语和词汇等实体类型。默认的映射被提供给RDFa，因此对于每个实体类型，包括：标 题、该实体的各个字段、创建和更新日期、创建者、评论数，以及（评论）的答复等等。因此，在每个评论和它的上级节点，以及每个评论与其所回复的节点之间， 存在某种关系。Drupal提供以下的RDF词汇表：<br />
1。 FOAF &#8211; 朋友的朋友。<br />
2。 SIOC &#8211;  通过语义层关联的网上社区。<br />
3。 SKOS &#8211; 简单知识组织系统。<br />
4. DC – Dublin 核心元数据标准 (Fig  5).</p>
<p>PHP数据对象</p>
<p>Drupal  已经支持PHP数据对象（PDO），这是一种轻量统一数据访问接口。PDO提供了一种数据库抽象层，使Drupal能够支持更广泛的后端数据库，包括 MySQL和PostgreSQL，Informix，Oracle，ODBC和SQLite。</p>
<p>网页设计</p>
<p>这在  Drupal 社区中被称为“主题化”。Drupal 7 缺省采用 Stark 主题，即‘无主题 Drupal’.  这是应那些希望得到一种基本架构，从而展开网页设计工作的设计师们的要求提供的。总体而言，在Drupal  7的主题化提供了更强的功能，但却是以复杂性为代价的。主题化的显着变化在于：<br />
1。 <a href="http://www.jquery.com/" target="_blank">JQuery</a> 1.8 被纳入 Drupal核心。<br />
2。  文件和图像功能的变化使主题化更加容易。<br />
3。 以表为基础的主题将被删除。Bluemarine 和 Pushbutton  主题将不再保留。<br />
4. 可通过复制通向drupal.org主题的链接，添加新的主题。<br />
5.  模板经过清理，命名的改变让其中的项目更易理解。例如，左/右侧边栏成为主边栏/次边栏。<br />
6。  为所有主题函数增加了预处理函数。以前只模板拥有预处理函数。预处理函数也可以通过设置theme_hook_suggestions或 <a href="http://www.iwanna.cn/tags/theme/" class="st_tag internal_tag" rel="tag" title="标签 theme 下的日志">theme</a>_hook_suggestion，定义要使用的主题重写建议。<br />
7。 增加了最外层模板以处理渲染功能。<br />
8。  隐藏，渲染和显示函数具备极大的灵活性，使主题设计者能够以任何次序，任意多次地输出内容，如：提交按钮可以在表单的顶部或底部。<br />
9。  函数hook_page_alter允许在网页内容呈现前对页面主题项目进行最后的修改。任何修饰接口均可使用。<br />
10。 更多区块。<br />
11。 硬编码的变量更少，因为这些现在都已经以区块的方式出现。即使是一个网页的主要内容，也是区块。<br />
12。  主题覆写更灵活。可以比以前版本更多地实现本地化。<br />
13。  两个新增函数，可使节点的打印输出更精细：render（）和hide（）。以前，精细控制打印输出的粒度非常困难。<br />
14。  html.tpl.php是一个新的主题页面包装模板。它成为最外层的容器，在Drupal 6 中page.tpl.<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag" title="标签 PHP 下的日志">php</a> 得以实现。  事实上，html.tpl.<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag" title="标签 PHP 下的日志">php</a> 调用了 page.tpl.<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag" title="标签 PHP 下的日志">php</a>。不幸的是，迁移Drupal 6主题到Drupal  7的文档是落后于代码的开发。请大家关注 <a href="http://drupal.org/update/theme/6/7" target="_blank">此页</a> 以追踪工作的进展。在编写本报告时，已经有不止52项修改。</p>
<p>单元测试</p>
<p>测试模块已从SimpleTest迁移到核心模块。 成为工作流程的一个组成部分。大大改善了核心模块的开发方式，增加了开发者完成重要API修改的信心。Drupal的测试重点，不是单元测试，而是功能测 试。这意味着测试的编写注重接口的整体测试，而不是单独的函数或者代码块。</p>
<p>安全</p>
<p>Drupal拥有良好的安全纪 录，Drupal 7实现了以下改进：<br />
1。 受保护的cron.php &#8211; cron只会在提供相关密钥的情况下运行。<br />
2。  使用更强大的密码哈希值，并兼容便携式PHP的密码哈希框架。以前Drupal使用的是MD5，离安全还有很大的差距。<br />
3。  对登录尝试进行限制，以防止强行密码猜测。同时，实现了更好的过载控制API，允许限制用户对资源进行访问的时间窗变量和标识符。<br />
4。  此前，只有第一个用户（管理员，又名&#8217;用户/ 1&#8242;）有权更新站点，现在有一种新的权限，允许其它用户进行网站更新。<br />
5。  节点访问也被彻底改革，实现了更精细的节点查看、编辑、删除和创建控制。该节点访问接口已改进，更加成熟和灵活。</p>
<p>文件和图像管理</p>
<p>文件API提供了一个抽象层，可访问几乎任何普通的文件类型。它使用PHP流包装，允许多种模块之间更多的协作。因此，模块之间交互时，通常不再 需要了解其它模块对文件系统的调用。</p>
<p>流是一种资源对象，具备可进行流处理的特征。可以通过线性方式读取或写入，可通过fseek（）在其 中任何位置进行检索。在Drupal 7中，流是通过scheme://target的方式引用的。Scheme代表协议或  编码。例如，&#8217;http&#8217;，&#8217;public&#8217;和&#8217;private&#8217;。target  代表所需资源，可以是文件系统（public://images/logo.jpg）中的文件。这些资源的处理工作由幕后的PHP包装函数完成。</p>
<p>图像处理</p>
<p>在过去，实现图像处理需要很多工作，要下载并安装ImageAPI，ImageCache，FileField或 ImageField等更多此类模块。所幸这些功能已被添加到Drupal 7，使用户们的生活更容易（图6）。</p>
<p>字段和令牌</p>
<p>内 容构建工具包（CCK）是一个用户贡献的模块，可为内容类型增加字段。在Drupal 7中，CCD已被添加到核心中，称为 Field  API。字段可以添加到任何实体，并可以包括RDF信息。Field API还提供了灵活的存储后端，使字段可以与第三方系统更好地配合。</p>
<p>令 牌是另一个被集成到Drupal 7中的用户贡献模块。提供更有意义的值，取代文本占位符，实现了可扩展的API函数集。令牌遵从  [$type:$name]的格式，其中 $type 是令牌的一种通用类型 (如 ‘节点’、 ‘用户’、 或 ‘评论’) ，$name  则是指定点位符的名称。例如，[节点：标题]。令牌也可通过[$类型：$指针：$名称]的形式进行链接，其中$类型是正常的令牌类型，$指针是指向另一个 令牌类型的引用，而$name是一个给定的占位符名称。例如，[节点：作者：邮件]。在该示例中，‘作者’是指向创建节点的‘用户’帐户的指针。‘邮件’ 是任何‘用户’可用的一个点位符。字段值也可以被访问，例如：[node:my-cck-field:2]。最常见的用户令牌应用，是自动生成自定义网 址。令牌也被用于高级操控，在有新评论添加到其内容时，邮件通知用户。</p>
<p>系统要求</p>
<p>Drupal  7要求的最低版本为：PHP 5.2 和 MySQL v5.0.15；PHP 内存使用：40 &#8211; 64MB。请参阅 <a href="http://drupal.org/requirements" target="_blank">这里</a> 的系统需求列表。</p>
<p>升级</p>
<p>从Drupal  6到新版本的升级需要不少工作，但已经有一些文档可供参考。对于开发人员，代码升级模块可帮助他们移植代码到Drupal 7。</p>
<p>性能<br />
Drupal 7的运行速度会比 Drupal 6慢。从本质上讲，Drupal  7为可扩展性牺牲了速度。这是由于更多大的公司（财富500，如微软，IBM和Gap  Gemini）得以参与Drupal项目。但是，未缓存的网页性能有所提高。所以匿名用户会掌握您网站速度更快。对于登录用户，Drupal的系统会进行 更少的查询，以实现更好的性能。</p>
<p>总之</p>
<p>期待中的Drupal  7发布，无论对于用户，还是开发人员，都是一个重要的里程碑。对用户而言，Drupal  7解决了一些用户体验问题，使新用户能够更容易地体验到Drupal的丰富性和强大功能。对开发人员而言，Drupal  7提供了建立网站所需要的灵活性和定制能力，可满足个人网站和大型企业网站部署的需要。最后，用Drupal创始人Dries  Buytaert的话说，“奇迹正在发生”。</p>
<hr />
<p>© <a href="http://www.iwanna.cn">我想网</a> Akon 所有 , 2010. |
<a href="http://www.iwanna.cn/archives/2010/09/13/5260/">永久链接</a> |
<a href="http://www.iwanna.cn/archives/2010/09/13/5260/#comments">没有评论</a> |
提交到
<a rel="nofollow" target="_blank" href="http://www.google.com/reader/view/feed/http://www.iwanna.cn/archives/2010/09/13/5260/">Google Reader</a>
<a rel="nofollow" target="_blank" href="http://www.xianguo.com/subscribe.php?url=http://www.iwanna.cn/archives/2010/09/13/5260/">鲜果</a>
<a rel="nofollow" target="_blank" href="http://www.zhuaxia.com/add_channel.php?url=http://www.iwanna.cn/archives/2010/09/13/5260/">抓虾</a>
<hr />
<script type="text/javascript"><!--
google_ad_client = "pub-2057344547305288";
/* 336x280,iwanna feed,created 10/3/10 */
google_ad_slot = "9738886183";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<hr />
</p>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.iwanna.cn/archives/2010/09/13/5260/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>21 个为您的网站和博客提供的免费视频播放器</title>
		<link>http://www.iwanna.cn/archives/2010/09/12/5239/</link>
		<comments>http://www.iwanna.cn/archives/2010/09/12/5239/#comments</comments>
		<pubDate>Sun, 12 Sep 2010 14:56:59 +0000</pubDate>
		<dc:creator>seasun</dc:creator>
				<category><![CDATA[Tool]]></category>
		<category><![CDATA[WEB]]></category>
		<category><![CDATA[Website]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[站长工具]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://www.iwanna.cn/?p=5239</guid>
		<description><![CDATA[很多设计师在都会在他们的网站使用视频播放器。在线视频播放器无需为简单的用户和Web开发人员提供过多的介 绍，它简单易用，为您建站时提供了灵活性和创造性，您可以添加无限数量的视频，并根据你的想法安排它们的专辑标题、艺术家的名字或年份，这些都完全取决于 你！ 如今，有超过100万的网络媒体相关的资源可以用。与其花费时间去做那些研究，还不如选择使用一些最好的并且免费的网站视频/媒体播放器的插件。下面就是 本站为您收集的非常有价值的免费的视频播放器，不仅有网站上应用的视频播放器，而且对于wordpress爱好者，还有专门为 wordperss定制的插件啊，如果你正在寻找此类资源，那么，赶紧来看下吧。 1. Flowplayer Flowplayer是一个开源（GPL 3的）网络上的视频播放器。它用来将视频流嵌入到您的网页。专为网站拥有者，开发商，爱好者，企业和认真的程序员。使用Flowplayer，你可以定制 自己的播放器并放到你的网站来接收网络上的视频。 特性: 它是完全自由和开放源码 你可以在几分钟内建立您的播放器 流畅如丝 — 它已经全面地优化并隐藏了边缘弯曲和下载堵塞等行为. 时间轴展示非常流畅，有两种不同的自动隐藏模式：“隐藏”和“滑动”效果。 可接收来自任何地方的视频流 – 使用行业标准协议的RTMP或HTTP流与最常见的Web服务器的lighttpd，Apache，nginx或IIS或从众所周知的内容传递网络 Akamai公司，Amazon Cloudfront，Highwinds，HDDN，SimpleCDN和更多的视频。 扩展性 — Flowplayer是使用Flash技术，确保98％的互联网用户可以看到您的影片。另外还有一个独立的javascript API来帮助你改变与Flash进行通信的方式。 如何安装: 有详细的安装指南可利 用帮你创建视频播放器。 官 方链接 2. Video LightBox Video LightBox是一个免费的向导程序，它可以帮助您轻松地将视频嵌入到网站，网页或博客，只需点击几下，而无需编写代码。 Video LightBox免费用于非商业用途，商业网站使用需要许可费用。Video LightBox的企业版提供了一个额外的选项，可以消除VideoLightBox.com的版权信息同时可在视频中增加你自己的水印。 特性: 嵌入的FLV，MP4，3GP等视频文件 新增YouTube，Facebook和谷歌视频，metacafe，Vimeo，MySpace的视频 Mac和Windows版本 符合XHTML标准 自动创建缩略图 添加标题 拥有很多华丽的主题 内置FTP 如何安装: 有Video LightBox团队在他们网站上提供的 详细的安装指南。 官方链接 3. [...]]]></description>
			<content:encoded><![CDATA[<p>很多设计师在都会在他们的网站使用<strong>视频播放器</strong>。在线视频播放器无需为简单的用户和Web开发人员提供过多的介 绍，它简单易用，为您建站时提供了灵活性和创造性，您可以添加无限数量的视频，并根据你的想法安排它们的专辑标题、艺术家的名字或年份，这些都完全取决于 你！<br />
如今，有超过100万的网络媒体相关的资源可以用。与其花费时间去做那些研究，还不如选择使用一些最好的并且免费的网站视频/媒体播放器的插件。下面就是 本站为您收集的非常有价值的免费的视频播放器，不仅有网站上应用的视频播放器，而且对于wordpress爱好者，还有专门为 wordperss定制的插件啊，如果你正在寻找此类资源，那么，赶紧来看下吧。</p>
<h3>1. Flowplayer</h3>
<p><a rel="external nofollow" href="http://flowplayer.org/" target="_blank"><img title="iwanna.cn | 21 个为您的网站和博客提供的免费视频播放器" src="http://images.uheed.com/iwanna/2010/09/12/free-video-players/fvpftw-01.jpg" alt="iwanna.cn | 21 个为您的网站和博客提供的免费视频播放器" width="560" /></a><br />
Flowplayer是一个开源（GPL  3的）网络上的视频播放器。它用来将视频流嵌入到您的网页。专为网站拥有者，开发商，爱好者，企业和认真的程序员。使用Flowplayer，你可以定制 自己的播放器并放到你的网站来接收网络上的视频。<br />
<span id="more-5239"></span><br />
<strong>特性: </strong></p>
<ul>
<li>它是完全自由和开放源码</li>
<li>你可以在几分钟内建立您的播放器</li>
<li>流畅如丝 — 它已经全面地优化并隐藏了边缘弯曲和下载堵塞等行为. 时间轴展示非常流畅，有两种不同的自动隐藏模式：“隐藏”和“滑动”效果。</li>
<li>可接收来自任何地方的视频流 –  使用行业标准协议的RTMP或HTTP流与最常见的Web服务器的lighttpd，Apache，nginx或IIS或从众所周知的内容传递网络 Akamai公司，Amazon Cloudfront，Highwinds，HDDN，SimpleCDN和更多的视频。</li>
<li>扩展性 — Flowplayer是使用Flash技术，确保98％的互联网用户可以看到您的影片。另外还有一个独立的javascript API来帮助你改变与Flash进行通信的方式。</li>
</ul>
<p><strong>如何安装: </strong><br />
有<a rel="external nofollow" href="http://flowplayer.org/setup/howto/" target="_blank"><strong>详细的安装指南</strong></a>可利 用帮你创建视频播放器。<br />
<a rel="external nofollow" href="http://flowplayer.org/" target="_blank">官 方链接</a></p>
<h3>2. Video LightBox</h3>
<p><a rel="external nofollow" href="http://videolightbox.com/" target="_blank"><img title="iwanna.cn | 21 个为您的网站和博客提供的免费视频播放器" src="http://images.uheed.com/iwanna/2010/09/12/free-video-players/fvpftw-02.jpg" alt="iwanna.cn | 21 个为您的网站和博客提供的免费视频播放器" width="560" /></a></p>
<p>Video LightBox是一个免费的向导程序，它可以帮助您轻松地将视频嵌入到网站，网页或博客，只需点击几下，而无需编写代码。</p>
<p>Video LightBox免费用于非商业用途，商业网站使用需要许可费用。Video  LightBox的企业版提供了一个额外的选项，可以消除VideoLightBox.com的版权信息同时可在视频中增加你自己的水印。</p>
<p><strong>特性: </strong></p>
<ul>
<li>嵌入的FLV，MP4，3GP等视频文件</li>
<li>新增YouTube，Facebook和谷歌视频，metacafe，Vimeo，MySpace的视频</li>
<li>Mac和Windows版本</li>
<li>符合XHTML标准</li>
<li>自动创建缩略图</li>
<li>添加标题</li>
<li>拥有很多华丽的主题</li>
<li>内置FTP</li>
</ul>
<p><strong>如何安装: </strong></p>
<p>有Video LightBox团队在他们网站上提供的 <a rel="external nofollow" href="http://videolightbox.com/#help" target="_blank"><strong>详细的安装指南</strong></a>。<br />
<a rel="external nofollow" href="http://videolightbox.com/" target="_blank">官方链接</a></p>
<h3>3. JW Player</h3>
<p><a rel="external nofollow" href="http://www.longtailvideo.com/players/jw-flv-player/" target="_blank"><img title="iwanna.cn | 21 个为您的网站和博客提供的免费视频播放器" src="http://images.uheed.com/iwanna/2010/09/12/free-video-players/fvpftw-03.jpg" alt="iwanna.cn | 21 个为您的网站和博客提供的免费视频播放器" width="560" /></a></p>
<p>JW Player是一款方便的和灵活的flash视频播放器，它支持Adobe Flash Player可以处理的任何格式（FLV,  H.264, MP4, MP3, AAC, JPG, PNG and  GIF），它也支持多种流媒体和流媒体和播放列表格式（包括RMTP协议，即HTTP，以及更多），开放的Flashvar设置及JavaScript  API的可扩展性。</p>
<p><strong>特性: </strong></p>
<ul>
<li>可更改JW Player的皮肤来匹配你的站点；设计您自己或检出JW Player的自定义皮肤库。</li>
<li>良好的插件系统 – 通过插件，您的播放器可以做任何事情。 您可以建立与开发SDK和资源，或浏览我们的插件自己拿来分析，评分，以及更多。</li>
<li>无忧视频管理</li>
</ul>
<p><strong>如何安装: </strong></p>
<p>本指南将告诉您如何在Flash V5的环境下安装JW Player。首先，从网上下载安装ZIP包，其中包含你开始时的所有文件。<br />
第1步：上传播放器文件到网站 –  将player.swf，yt.swf和swfobject.js文件从您的网站解压缩，请确保您已上传所有必要的影片，歌曲或您网站的图片。<br />
第2步：在html中嵌入播放器代码 –  在你的HTML页面中嵌入下面的代码。注：如果您放置的文件在不同的目录中，请确保设置此代码中相应的参数。</p>
<pre>&lt;p id='preview'&gt;The player will show in this paragraph&lt;/p&gt;
&lt;script type='text/javascript' src='swfobject.js'&gt;&lt;/script&gt;
&lt;script type='text/javascript'&gt;
var s1 = new SWFObject('player.swf','player','400','300','9');
s1.addParam('allowfullscreen','true');
s1.addParam('allowscriptaccess','always');
s1.addParam('flashvars','file=video.flv');
s1.write('preview');
&lt;/script&gt;</pre>
<p>注意上述的FlashVars参数包含了使用不同的皮肤插件或列表的配置变量，要迅速建立FlashVars的，使用安装向导，只需选择一个例子， 选择您要使用的变量并粘贴到您的网页的代码，就是这么简单。</p>
<p>有 <a rel="external nofollow" href="http://www.longtailvideo.com/support/jw-player" target="_blank"><strong>详细的安装指南</strong></a> 提供如何在你的站点中创建视频播放器。</p>
<p><a rel="external nofollow" href="http://www.longtailvideo.com/players/jw-flv-player/" target="_blank">官方链接</a></p>
<h3>4. GDD FLVPlayer</h3>
<p><a rel="external nofollow" href="http://www.gdd.ro/free-flash-flv-player" target="_blank"><img title="iwanna.cn | 21 个为您的网站和博客提供的免费视频播放器" src="http://images.uheed.com/iwanna/2010/09/12/free-video-players/fvpftw-04.jpg" alt="iwanna.cn | 21 个为您的网站和博客提供的免费视频播放器" width="560" /></a></p>
<p>GDD FLVPlayer是一个基于网络的免费软件，它可以播放FLV/mp4 (MPEG-4 为FLash编码视频文件)文件，使用GDD  FLVPlayer，你可以很容易地播放你的FLV/mp4影片，因为它并不需要复杂的Flash创作工具和Flash开发工具。</p>
<p><strong>特性: </strong></p>
<ul>
<li>完全定制的控制面板</li>
<li>只需几下点击就可在网站发布您的FLV或MP4视频</li>
<li>只需几秒就可添加视频到您的Flash项目中</li>
<li>播放广告或任何自定义介绍</li>
<li>在播放器中使用自己的LOGO</li>
<li>使用你想要的任何尺寸</li>
<li>没有欺骗，完全是免费的</li>
<li>没有特殊的编程技能的要求</li>
</ul>
<p><strong>如何安装: </strong></p>
<p>每个可下载的Player ZIP文件中都会有一个“howto”的指南。</p>
<p><a rel="external nofollow" href="http://www.gdd.ro/free-flash-flv-player" target="_blank">官方链接</a></p>
<h3>5. MC Media Player</h3>
<p><a rel="external nofollow" href="http://www.mcmediaplayer.com/" target="_blank"><img title="iwanna.cn | 21 个为您的网站和博客提供的免费视频播放器" src="http://images.uheed.com/iwanna/2010/09/12/free-video-players/fvpftw-05.jpg" alt="iwanna.cn | 21 个为您的网站和博客提供的免费视频播放器" width="560" /></a></p>
<p>有一个 安装工具 的球员可以用MC的媒体播放器的网站，其中你可以创建你自己的。</p>
<p>MC Media Player是一个基于Flash的在网页中嵌入视频, 音频和图像的媒体，它免费应用于非盈利和商业网站。<br />
目前有两种版本的播放器：MC 经典（以前已知为720 × 360版）和MC 牛郎星（测试版），名称很有意思。</p>
<ul>
<li>MC 牛郎星 — 单一文件的视频播放器，都容易建立和定制，支持FLV和H.264的（渐进式下载和RTMP数据流）。</li>
<li>MC 经典 — 这是我们原始的播放器，但现在是在停产（寿命终结）阶段，也就是说，它不再是正在开发中。.</li>
</ul>
<p><strong>特性: </strong></p>
<ul>
<li>可定制的界面</li>
<li>可以运行在MC Media Player’s的服务器或你自己的服务器</li>
<li>R可调整大小尺寸和纵横比</li>
</ul>
<p><strong>如何安装: </strong></p>
<p>在其官网上有一个 <a rel="external nofollow" href="http://www.mcmediaplayer.com/setup/index.html" target="_blank"><strong>安装工具</strong></a> 可以用来指点你创建播放器。<br />
<a rel="external nofollow" href="http://www.mcmediaplayer.com/" target="_blank">官方链接</a></p>
<h3>6. Video Player Pro</h3>
<p><a rel="external nofollow" href="http://videoplayerpro.com/" target="_blank"><img title="iwanna.cn | 21 个为您的网站和博客提供的免费视频播放器" src="http://images.uheed.com/iwanna/2010/09/12/free-video-players/fvpftw-06.jpg" alt="iwanna.cn | 21 个为您的网站和博客提供的免费视频播放器" width="560" /></a></p>
<p><strong>特性: </strong></p>
<ul>
<li>Video Player Pro根据你自己的需要采用不同的版本</li>
<li>不需要Flash编程实现</li>
</ul>
<p><strong>如何安装: </strong></p>
<p>有一个非常详细的 <a rel="external nofollow" href="http://movieplayerpro.com/support.html" target="_blank"><strong>视频教程</strong></a> 可在网上了解的安装和设置过程。</p>
<p><a rel="external nofollow" href="http://videoplayerpro.com/" target="_blank">官方链接</a></p>
<h3>7. VISCOM <a href="http://www.iwanna.cn/tags/web/" class="st_tag internal_tag" rel="tag" title="标签 Web 下的日志">Web</a> Player</h3>
<p><a rel="external nofollow" href="http://www.viscomsoft.com/products/webplayer/index.html" target="_blank"><img title="iwanna.cn | 21 个为您的网站和博客提供的免费视频播放器" src="http://images.uheed.com/iwanna/2010/09/12/free-video-players/fvpftw-07.jpg" alt="iwanna.cn | 21 个为您的网站和博客提供的免费视频播放器" width="560" /></a></p>
<p>是一个免费的平台独立的Web网站视频播放器，它用一种简单，方便的方法来添加单个或多个视频到任何网站，包括视频共享网站，在线培训，远程教育和 学习，你的博客，Myspace，论坛等。<br />
<strong>特性: </strong></p>
<ul>
<li>Support streaming flv video from your web site.</li>
<li>支持XML播放列表，你可以向您的播放器中添加一个或多个电影</li>
<li>启用或禁用视频缩略图列表</li>
<li>支持全屏幕播放</li>
<li>支持播放下一个视频，如果超过一个电影</li>
<li>支持宽高比控制</li>
<li>不需懂编码知识就可以轻松个性化你的播放器</li>
<li>内置高质量皮肤，免费的YouTube风格，Quick time player的风格，Window media player风格，Real  player风格，标准播放器的风格</li>
</ul>
<p><a rel="external nofollow" href="http://www.viscomsoft.com/products/webplayer/index.html" target="_blank">官方链接</a></p>
<h3>8. SS4UPlayer</h3>
<p><a rel="external nofollow" href="http://www.softsolutions4uindia.com/SS4UPlayer" target="_blank"><img title="iwanna.cn | 21 个为您的网站和博客提供的免费视频播放器" src="http://images.uheed.com/iwanna/2010/09/12/free-video-players/fvpftw-08.jpg" alt="iwanna.cn | 21 个为您的网站和博客提供的免费视频播放器" width="560" /></a></p>
<p>SS4UPlayer是一个灵活的基于互联网的视频播放器，同时支持流和渐进式下载。可工作在Windows和Linux平台。它支持如 FLV，264，MP4，MP3的音乐格式播放。它可以通过JavaScript设置flashvar。基于XML的换肤功能，使您可以完全自定义的颜 色，工具条颜色和大小，透明度，字体类型，字体颜色和字体大小。<br />
<strong>特性: </strong></p>
<ul>
<li>播放/暂停，寻道，定时器，全屏，音量条，预览图像</li>
<li>你可以载入你自己的logo.</li>
<li>完全Flash AS3的类和包</li>
<li>可以通过Flash的var参数指定使用JavaScript或XML文件方式加裁视频</li>
<li>支持使用XML播放列表</li>
<li>支持流及渐近式下载</li>
<li>非常稳定</li>
</ul>
<p><strong>如何安装: </strong></p>
<p>每个可下载的Player ZIP文件中都有一份说细的安装指南或者你可以直接下载<a rel="external nofollow" href="http://www.softsolutions4uindia.com/public/resources/SS4UPlayer%20-%20A%20free%20Flash%20Video%20Player.pdf" target="_blank"><strong>Installation  PDF guide</strong></a>的安装指南。<br />
<a rel="external nofollow" href="http://www.softsolutions4uindia.com/SS4UPlayer" target="_blank">官方链接</a></p>
<h3>9. Anarchy Media Player</h3>
<p><a rel="external nofollow" href="http://an-archos.com/anarchy-media-player/" target="_blank"><img title="iwanna.cn | 21 个为您的网站和博客提供的免费视频播放器" src="http://images.uheed.com/iwanna/2010/09/12/free-video-players/fvpftw-09.jpg" alt="iwanna.cn | 21 个为您的网站和博客提供的免费视频播放器" width="560" /></a></p>
<p>Anarchy  Media播放器是为所有那些想要在出版的音像内容网站中简单应用，而且它可以使得任何可直接播放的在您的网页上的MP3，Flash  flv或QuickTime MOV链接直接播放，同时可以选择隐藏的下载链接。使用GNU通用公共许可证。</p>
<p><strong>如何安装: </strong></p>
<p>详细安装请参考这个 <a rel="external nofollow" href="http://an-archos.com/anarchy-media-player/#install" target="_blank"><strong>链接</strong></a></p>
<p><a rel="external nofollow" href="http://an-archos.com/anarchy-media-player/" target="_blank">官方链接</a> <a rel="external nofollow" href="http://an-archos.com/wp-content/uploads/File/anarchy_media_js.zip" target="_blank">下 载插件</a></p>
<h3>10. SublimeVideo (尚未发布)</h3>
<p><a rel="external nofollow" href="http://jilion.com/sublime/video" target="_blank"><img title="iwanna.cn | 21 个为您的网站和博客提供的免费视频播放器" src="http://images.uheed.com/iwanna/2010/09/12/free-video-players/fvpftw-10.jpg" alt="iwanna.cn | 21 个为您的网站和博客提供的免费视频播放器" width="560" /></a></p>
<p>SublimeVideo是HTML5的视频播放器，让您轻松地在任何使用最新的网页标准的网页，博客或网站中嵌入视频。<br />
浏览器制造商仍然致力于全面支持HTML5视频规范，因此现在SublimeVideo仍是在实验状态，只能工作在少数浏览器下。但是，长期的目标是让它 可在所有的现代浏览器上工作。<br />
SublimeVideo将很快免费发布（至少用于非商业用途）。</p>
<p><strong>特性: </strong></p>
<ul>
<li>全窗口模式 – 这将最大限度地提高视频尺寸以适应浏览器的窗口。在你在浏览器中最大化看视频时，如果你还想访问其他应用程序它是很方便的。</li>
<li>全屏幕模式 – 目前只在最新的WebKit中得以支持，您可以通过ALT键激活此上全窗口按钮点击模式。</li>
<li>HTML5视频的好处 – 没有浏览器插件，无Flash依赖！ 您也可以跳到视频的任何地方，而不必等待它的缓冲区。</li>
<li>独立的纯JavaScript库</li>
</ul>
<p><a rel="external nofollow" href="http://jilion.com/sublime/video" target="_blank">官方链接</a></p>
<h1>wordpress的免费视频播放器插件</h1>
<h3>11. WP Media Player</h3>
<p><a rel="external nofollow" href="http://ruslany.net/wp-media-player/" target="_blank"><img title="iwanna.cn | 21 个为您的网站和博客提供的免费视频播放器" src="http://images.uheed.com/iwanna/2010/09/12/free-video-players/fvpftw-11.jpg" alt="iwanna.cn | 21 个为您的网站和博客提供的免费视频播放器" width="560" /></a></p>
<p>WP Media Player是一个基于Silverlight的wordpress媒体播放插件，它可 以用于播放在同一博客或网页中一个或多个播放器。还可用于播放自己主机上的或外部的托管视频服务器上的视频。</p>
<p><strong>特性: </strong></p>
<ul>
<li>6种播放器样式</li>
<li>跟踪并报告影片已经看过多少次</li>
<li>默认播放器配置设置，如大小，缩略图，自动装载和自动播放</li>
<li>每个Player实例的配置，可用于自定义每一个在博客内或文章中的Player设置</li>
<li>视频文件的上传和选择是充分考虑结合了wordpress的用户编辑界面</li>
</ul>
<p><strong>如何安装: </strong></p>
<p>详细安装请参考这个 <a rel="external nofollow" href="http://ruslany.net/wp-media-player/" target="_blank"><strong>链接</strong></a></p>
<p><a rel="external nofollow" href="http://ruslany.net/wp-media-player/" target="_blank">官方链接</a> <a rel="external nofollow" href="http://ruslany.net/download/wp-media-player.0.8.zip" target="_blank">下载插件</a></p>
<h3>12. Flash Video Player</h3>
<p><a rel="external nofollow" href="http://www.mac-dev.net/blog/" target="_blank"><img title="iwanna.cn | 21 个为您的网站和博客提供的免费视频播放器" src="http://images.uheed.com/iwanna/2010/09/12/free-video-players/fvpftw-12.jpg" alt="iwanna.cn | 21 个为您的网站和博客提供的免费视频播放器" width="560" /></a><br />
wordpress的 Flash视频插件，允许向wordpress站使用符合标准的标 记语言来添加加视频（和其他媒体），是领先的开放源码软件。安装快捷，方便，无需额外安装/编码/<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag" title="标签 PHP 下的日志">PHP</a>。  这个插件是少痕迹，不创建表，卸载干净。第5版提供了播放器皮肤的全面支持, 与谷歌分析的整合, 并且有能力显示来自长尾解决方案的广告。</p>
<p><strong>特性: </strong></p>
<ul>
<li>强健的选项菜单定制功能</li>
<li>谷歌分析功能</li>
<li>长尾广告解决方案</li>
<li>兼容XHTML</li>
<li>无后顾之忧！无数据库表和卸载干净</li>
<li>播放列表，简易信息聚合，原子，XSPF，RTMP数据</li>
<li>组件化</li>
</ul>
<p><strong>如何安装: </strong><br />
如需详细的安装请参考这个 <a rel="external nofollow" href="http://www.mac-dev.net/blog/" target="_blank"><strong>链接</strong></a></p>
<p><a rel="external nofollow" href="http://www.mac-dev.net/blog/" target="_blank">官方链接</a> <a rel="external nofollow" href="http://www.mac-dev.net/blog/files/flash-video-player.5.0.4.zip" target="_blank">下载 插件</a></p>
<h3>13. Anarchy Media Player</h3>
<p><a rel="external nofollow" href="http://an-archos.com/anarchy-media-player/" target="_blank"><img title="iwanna.cn | 21 个为您的网站和博客提供的免费视频播放器" src="http://images.uheed.com/iwanna/2010/09/12/free-video-players/fvpftw-13.jpg" alt="iwanna.cn | 21 个为您的网站和博客提供的免费视频播放器" width="560" /></a><br />
wordpress的Anarchy  Media Player 2.5可以播放在你网页中合适的播放器中任何简单的href链接，如mp3, flv, Quicktime mov,  mp4, m4v, m4a, m4b, 3gp以及Windows的wmv, avi和asf文件等。wordpress的版本也将按钮添加到编辑器中以用来嵌入Flash的SWF和主导的电影如YouTube, Google Video, iFilm,  DailyMotion, Revver, Metacafe, MySpace, Apple iTunes iMix，和GoEar  players.</p>
<p><strong>如何安装: </strong></p>
<p>如需详细的安装请参考这个 <a rel="external nofollow" href="http://an-archos.com/anarchy-media-player/#install" target="_blank"><strong>链接</strong></a></p>
<p><a rel="external nofollow" href="http://an-archos.com/anarchy-media-player/" target="_blank">官方链接</a> <a rel="external nofollow" href="http://an-archos.com/wp-content/uploads/File/anarchy_media.zip" target="_blank">下载 插件</a></p>
<h3>14. All in One Video Pack</h3>
<p><a rel="external nofollow" href="http://wordpress.org/extend/plugins/all-in-one-video-pack/" target="_blank"><img title="iwanna.cn | 21 个为您的网站和博客提供的免费视频播放器" src="http://images.uheed.com/iwanna/2010/09/12/free-video-players/fvpftw-14.jpg" alt="iwanna.cn | 21 个为您的网站和博客提供的免费视频播放器" width="560" /></a></p>
<p>这不仅是一个视频嵌入工具 –  它包含你可能需要的所有视频和富媒体的功能，包括上传/录制/直接导入影片到您的文章，使用在线视频编辑器来编辑和混排内容，视频评论，管理和跟踪您的视 频内容，创建播放列表等等。<br />
<strong>特性: </strong></p>
<ul>
<li>上传，从摄像头录制并且直接导入所有富媒体到您的博客文章</li>
<li>让读者和用户添加视频和音频的意见，并参与影片合作</li>
<li>通过管理控制台管理和跟踪互动视频</li>
<li>允许视频广告</li>
<li>完整的管理功能，您来决定谁可以添加和编辑每个视频</li>
<li>支持150多个视频，音频和图像文件格式和编解码器</li>
</ul>
<p><strong>如何安装: </strong></p>
<p>对于安装及其他常见问题请参考这个 <a rel="external nofollow" href="http://www.kaltura.org/forums/applications-and-cms-extensions/wordpress-kaltura-plugin-all-one-video-pack-forums" target="_blank"><strong>链 接</strong></a></p>
<p><a rel="external nofollow" href="http://wordpress.org/extend/plugins/all-in-one-video-pack/" target="_blank">官方链接</a> <a rel="external nofollow" href="http://downloads.wordpress.org/plugin/all-in-one-video-pack.2.4.1.zip" target="_blank">下 载插件</a></p>
<h3>15. Viper’s Video Quicktags</h3>
<p><a rel="external nofollow" href="http://wordpress.org/extend/plugins/vipers-video-quicktags/" target="_blank"><img title="iwanna.cn | 21 个为您的网站和博客提供的免费视频播放器" src="http://images.uheed.com/iwanna/2010/09/12/free-video-players/fvpftw-15.jpg" alt="iwanna.cn | 21 个为您的网站和博客提供的免费视频播放器" width="560" /></a></p>
<p>厌倦了从YouTube等网站复制和粘贴的嵌入HTML吗？那么请你试试这个插件。<br />
只是简单的按一下其中一个新的按钮，这个插件就加进了写作的屏幕（包括丰富的编辑器），然后粘贴网址，这样视频就出现在提示框中了 –  就是这么简单。你可以完全配置如何显示的视频（宽度，高度，颜色，网页上的排列）等等。<br />
<strong>特性: </strong></p>
<ul>
<li>支持的文件类型：Flash视频文件，QuickTime，通用视频文件</li>
<li>目前，支持多种大型视频网站如YouTube（包括播放列表）, Google Video, DailyMotion, Vimeo etc</li>
</ul>
<p><strong>如何安装: </strong></p>
<p>如需详细的安装请参考这个 <a rel="external nofollow" href="http://wordpress.org/extend/plugins/vipers-video-quicktags/installation/" target="_blank"><strong>链 接</strong></a></p>
<p><a rel="external nofollow" href="http://wordpress.org/extend/plugins/vipers-video-quicktags/" target="_blank">官方链接</a> <a rel="external nofollow" href="http://downloads.wordpress.org/plugin/vipers-video-quicktags.zip" target="_blank">下 载插件</a></p>
<h3>16. Smart YouTube</h3>
<p><a rel="external nofollow" href="http://wordpress.org/extend/plugins/smart-youtube/" target="_blank"><img title="iwanna.cn | 21 个为您的网站和博客提供的免费视频播放器" src="http://images.uheed.com/iwanna/2010/09/12/free-video-players/fvpftw-16.jpg" alt="iwanna.cn | 21 个为您的网站和博客提供的免费视频播放器" width="560" /></a></p>
<p>Smart YouTube是一个Wordpress的YouTube插 件，让您轻松地插入Youtube视频/播放列表在您的文章，评论和RSS摘要。<br />
这个插件的主要是为了在你博客文章中正确地嵌入Youtube视频，这个视频还会在你的RSS摘要中完全显示出来。</p>
<p><strong>特性: </strong></p>
<ul>
<li>简单的嵌入Youtube视频和播放列表</li>
<li>支持最新的高质量的视频协议(360p和HD quality 720p)</li>
<li>允许完全的YouTube定制（颜色，边框，全屏）</li>
<li>支持视频深层链接</li>
<li>可工作在iPod和iPhone</li>
<li>提供一个侧栏小工具</li>
<li>生成XHTML代码</li>
</ul>
<p><strong>如何安装: </strong></p>
<p>如需详细的安装请参考这个 <a rel="external nofollow" href="http://wordpress.org/extend/plugins/smart-youtube/installation/" target="_blank"><strong>链 接</strong></a></p>
<p><a rel="external nofollow" href="http://wordpress.org/extend/plugins/smart-youtube/" target="_blank">官方链接</a> <a rel="external nofollow" href="http://downloads.wordpress.org/plugin/smart-youtube.zip" target="_blank">下载插件</a></p>
<h3>17. Embedded Video</h3>
<p><a rel="external nofollow" href="http://wordpress.org/extend/plugins/embedded-video-with-link/" target="_blank"><img title="iwanna.cn | 21 个为您的网站和博客提供的免费视频播放器" src="http://images.uheed.com/iwanna/2010/09/12/free-video-players/fvpftw-17.jpg" alt="iwanna.cn | 21 个为您的网站和博客提供的免费视频播放器" width="560" /></a></p>
<p>该插件是用来简单地嵌入视频到一个博客帖子上，这些视频可以和外部门户网站如YouTube，谷歌视频和许多许多其他的集成，或者他们可以上传到 Web服务器或远程服务器做集成，另外可以自动生成一个相应的特定的视频门户网站的链接或下载到本地文件的链接，如有需要。链接文字也可配置。此外，该视 频可以轻松地集成在使用内置的所见即所得的编辑器中。该插件生成XHTML的有效代码并可以工作在WP2.5版本及以上。</p>
<p><strong>特性: </strong></p>
<ul>
<li>支持文件格式: flv, swf, mov, qt, wmv, mpg, mpeg, mpe, asf, asx, wax, wmv,  wmx, avi</li>
<li>当前支持视频门户: YouTube, Google Video, dailymotion, MyVideo, Clipfish,  Sevenload, Revver, Metacafé, Yahoo! Video, ifilm, MySpace Video,  Brightcove, aniBOOM, vimeo, GUBA, Garage TV, GameVideos, vSocial, Veoh,  Gametrailers.</li>
</ul>
<p><strong>如何安装: </strong></p>
<p>如需详细的安装请参考这个 <a rel="external nofollow" href="http://wordpress.org/extend/plugins/embedded-video-with-link/installation/" target="_blank"><strong>链 接</strong></a></p>
<p><a rel="external nofollow" href="http://wordpress.org/extend/plugins/embedded-video-with-link/" target="_blank">官方链 接</a> <a rel="external nofollow" href="http://downloads.wordpress.org/plugin/embedded-video-with-link.4.1.zip" target="_blank">下 载插件</a></p>
<h3>18. wordTube</h3>
<p><a rel="external nofollow" href="http://wordpress.org/extend/plugins/wordtube/" target="_blank"><img title="iwanna.cn | 21 个为您的网站和博客提供的免费视频播放器" src="http://images.uheed.com/iwanna/2010/09/12/free-video-players/fvpftw-18.jpg" alt="iwanna.cn | 21 个为您的网站和博客提供的免费视频播放器" width="560" /></a></p>
<p>这个插件管理的JW的FLV媒体播放器5.1，让你可以轻松的在Wordpress的文章和页面中放置 音乐，视频或Flash电影。<br />
wordTube支持流媒体视频格式（格式 .FLV或.swf）文件，音频文件MP3，JPG，GIF或PNG  grafic文件。使用wordTube你可以简单在您的博客中插入标签[media id="media id"]或播放列表[playlist  id="playlist id"]。<br />
插入这样的标记你不需要改变所见即所得模式或特殊的HTML知识，您可以显示一个简单的媒体文件（即一个flv格式）或您的所有媒体文件的播放列表。<br />
<strong>如何安装: </strong></p>
<p>如需详细的安装请参考这个 <a rel="external nofollow" href="http://wordpress.org/extend/plugins/wordtube/installation/" target="_blank"><strong>链 接</strong></a></p>
<p><a rel="external nofollow" href="http://alexrabe.de/wordpress-plugins/wordtube/" target="_blank">官方链接</a> <a rel="external nofollow" href="http://downloads.wordpress.org/plugin/wordtube.zip" target="_blank">下载插件</a></p>
<h3>19. ProPlayer</h3>
<p><a rel="external nofollow" href="http://wordpress.org/extend/plugins/proplayer/" target="_blank"><img title="iwanna.cn | 21 个为您的网站和博客提供的免费视频播放器" src="http://images.uheed.com/iwanna/2010/09/12/free-video-players/fvpftw-19.jpg" alt="iwanna.cn | 21 个为您的网站和博客提供的免费视频播放器" width="560" /></a></p>
<p>可把在线视频如(YouTube, Vimeo, Veoh, Youku, Dailymotion, etc..)等通过JW  FLV播放器放置在你的文章中。</p>
<p><strong>特性: </strong></p>
<ul>
<li>27种不同的皮肤</li>
<li>自定义播放列表</li>
<li>视频评分</li>
<li>音频可视化</li>
</ul>
<p><strong>如何安装: </strong></p>
<p>如需详细的安装请参考这个 <a rel="external nofollow" href="http://wordpress.org/extend/plugins/proplayer/installation/" target="_blank"><strong>链 接</strong></a></p>
<p><a rel="external nofollow" href="http://wordpress.org/extend/plugins/proplayer/" target="_blank">官方链接</a> <a rel="external nofollow" href="http://downloads.wordpress.org/plugin/proplayer.zip" target="_blank">下载插件</a></p>
<h3>20. SeeTheFace</h3>
<p><a rel="external nofollow" href="http://www.seetheface.com/plugins/wordpress/" target="_blank"><img title="iwanna.cn | 21 个为您的网站和博客提供的免费视频播放器" src="http://images.uheed.com/iwanna/2010/09/12/free-video-players/fvpftw-20.jpg" alt="iwanna.cn | 21 个为您的网站和博客提供的免费视频播放器" width="560" /></a></p>
<p>WordPress的 SeeTheFace插件可以瞬间升级您的文字博客到视频博客。<br />
在SiteClip的帮助下用户将能够方便地使用Publisher的视频信息记录和过滤器。此外，SiteClip内在的机制使其有可能和任何种类的网 站结合起来，不论其类型和复杂性的机制。 SiteClip可以内置在电子商务，教育/信息和新闻，社区，拍卖网站以及工作门户网站，一个管理单元等。</p>
<p><strong>如何安装: </strong></p>
<p>如需详细的安装请参考这个 <a rel="external nofollow" href="http://www.seetheface.com/plugins/wordpress/#install" target="_blank"><strong>链接</strong></a></p>
<p><a rel="external nofollow" href="http://www.seetheface.com/plugins/wordpress/" target="_blank">官方链接</a> <a rel="external nofollow" href="http://www.seetheface.com/files/plugins/seetheface_wordpress.zip" target="_blank">下 载插件</a></p>
<h3>21. FLV Embed</h3>
<p><a rel="external nofollow" href="http://www.channel-ai.com/blog/plugins/flv-embed/" target="_blank"><img title="iwanna.cn | 21 个为您的网站和博客提供的免费视频播放器" src="http://images.uheed.com/iwanna/2010/09/12/free-video-players/fvpftw-21.jpg" alt="iwanna.cn | 21 个为您的网站和博客提供的免费视频播放器" width="560" /></a></p>
<p>FLV Embed是一个Wordpress插件用来简化添加到 您的博客（视频）Flash视频的过程。用于商业用途和执行，你需要购买球员的许可证。如果你想了解FLV视频编码以及为什么你使用FLV，Jeroen 也写了一篇出色的文章，你可以在他的网站上找到。</p>
<p><strong>特性: </strong></p>
<ul>
<li>执行一个标准的插件标记的样式</li>
<li>嵌入一个FLV文件，它的最简单的方法</li>
<li>高度便携，可扩展和面向未来的标签</li>
<li>兼容XHTML</li>
</ul>
<p><strong>如何安装: </strong></p>
<p>如需详细的安装请参考这个 <a rel="external nofollow" href="http://www.channel-ai.com/blog/plugins/flv-embed/#install" target="_blank"><strong>链 接</strong></a></p>
<p><a rel="external nofollow" href="http://www.channel-ai.com/blog/plugins/flv-embed/" target="_blank">官方链接</a> <a rel="external nofollow" href="http://downloads.wordpress.org/plugin/flv-embed.zip" target="_blank">下载插件</a></p>
<hr />
<p>© <a href="http://www.iwanna.cn">我想网</a> Akon 所有 , 2010. |
<a href="http://www.iwanna.cn/archives/2010/09/12/5239/">永久链接</a> |
<a href="http://www.iwanna.cn/archives/2010/09/12/5239/#comments">没有评论</a> |
提交到
<a rel="nofollow" target="_blank" href="http://www.google.com/reader/view/feed/http://www.iwanna.cn/archives/2010/09/12/5239/">Google Reader</a>
<a rel="nofollow" target="_blank" href="http://www.xianguo.com/subscribe.php?url=http://www.iwanna.cn/archives/2010/09/12/5239/">鲜果</a>
<a rel="nofollow" target="_blank" href="http://www.zhuaxia.com/add_channel.php?url=http://www.iwanna.cn/archives/2010/09/12/5239/">抓虾</a>
<hr />
<script type="text/javascript"><!--
google_ad_client = "pub-2057344547305288";
/* 336x280,iwanna feed,created 10/3/10 */
google_ad_slot = "9738886183";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<hr />
</p>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.iwanna.cn/archives/2010/09/12/5239/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>利用PHP为大图片生成缩略图代码实现</title>
		<link>http://www.iwanna.cn/archives/2010/09/12/5237/</link>
		<comments>http://www.iwanna.cn/archives/2010/09/12/5237/#comments</comments>
		<pubDate>Sun, 12 Sep 2010 14:52:08 +0000</pubDate>
		<dc:creator>seasun</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[程序源码]]></category>
		<category><![CDATA[Source-code]]></category>

		<guid isPermaLink="false">http://www.iwanna.cn/?p=5237</guid>
		<description><![CDATA[&#60;?php /** * 生成缩略图 * * @param string $imagePath 图片路径 * @param string $thumb 生成缩略图名称 * @param integer $width 生成缩略图最大宽度 * @param integer $height 生成缩略图最大高度 * * @author Silver * @link http://www.zdyi.com */ function resizeImage($imagePath, $thumb, $width = 200, $height = 200) { list($imageWidth, $imageHeight) = getimagesize($imagePath); $imagePath = imagecreatefromjpeg($imagePath); if ($width &#38;&#38; ($imageWidth &#60; [...]]]></description>
			<content:encoded><![CDATA[<p><code id="code0">&lt;?<a href="http://www.iwanna.cn/tags/php/" class="st_tag internal_tag" rel="tag" title="标签 PHP 下的日志">php</a><br />
/**<br />
* 生成缩略图<br />
*<br />
* @param string $imagePath 图片路径<br />
* @param string $thumb 生成缩略图名称<br />
* @param integer $width 生成缩略图最大宽度<br />
* @param integer $height 生成缩略图最大高度<br />
*<br />
* @author Silver<br />
* @link http://www.zdyi.com<br />
*/<br />
function resizeImage($imagePath, $thumb, $width = 200, $height = 200)<br />
{<br />
list($imageWidth, $imageHeight) = getimagesize($imagePath);<br />
$imagePath = imagecreatefromjpeg($imagePath);<br />
if ($width &amp;&amp; ($imageWidth &lt; $imageHeight))<br />
{<br />
$width = ($height / $imageHeight) * $imageWidth;<br />
}<br />
else<br />
{<br />
$height = ($width / $imageWidth) * $imageHeight;<br />
}<br />
$image = imagecreatetruecolor($width, $height);<br />
imagecopyresampled($image, $imagePath, 0, 0, 0, 0, $width, $height,  $imageWidth, $imageHeight);<br />
imagepng($image, $thumb);<br />
imagedestroy($image);<br />
}<br />
resizeImage('test.jpg', 'test_thumb.jpg');<br />
?&gt;</code></p>
<hr />
<p>© <a href="http://www.iwanna.cn">我想网</a> Akon 所有 , 2010. |
<a href="http://www.iwanna.cn/archives/2010/09/12/5237/">永久链接</a> |
<a href="http://www.iwanna.cn/archives/2010/09/12/5237/#comments">没有评论</a> |
提交到
<a rel="nofollow" target="_blank" href="http://www.google.com/reader/view/feed/http://www.iwanna.cn/archives/2010/09/12/5237/">Google Reader</a>
<a rel="nofollow" target="_blank" href="http://www.xianguo.com/subscribe.php?url=http://www.iwanna.cn/archives/2010/09/12/5237/">鲜果</a>
<a rel="nofollow" target="_blank" href="http://www.zhuaxia.com/add_channel.php?url=http://www.iwanna.cn/archives/2010/09/12/5237/">抓虾</a>
<hr />
<script type="text/javascript"><!--
google_ad_client = "pub-2057344547305288";
/* 336x280,iwanna feed,created 10/3/10 */
google_ad_slot = "9738886183";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<hr />
</p>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.iwanna.cn/archives/2010/09/12/5237/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

