<?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; runPHP</title>
	<atom:link href="http://blog.hi3b.com/archives/tag/runphp/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.hi3b.com</link>
	<description>Hi3B附設Blog</description>
	<lastBuildDate>Fri, 03 Feb 2012 01:44:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>如何在 WordPress 文章中插入 php 程式</title>
		<link>http://blog.hi3b.com/archives/201</link>
		<comments>http://blog.hi3b.com/archives/201#comments</comments>
		<pubDate>Sun, 27 May 2007 07:57:41 +0000</pubDate>
		<dc:creator>工友 from Hi3B</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Plugin]]></category>
		<category><![CDATA[runPHP]]></category>
		<category><![CDATA[插件]]></category>

		<guid isPermaLink="false">http://blog.hi3b.com/archives/201</guid>
		<description><![CDATA[WordPress 的文章中，原本只能寫入文字的文章。並不能在文章中隱藏 php 執行程式的執行結果。 runPHP 這個插件，提供這個可能性。對於，WordPress 2.0 以上的程式，可下載 runPHP 2.2.2 &#8211; .zip 檔。解壓縮後置入 plugins 目錄下。並在外掛功能中予以啟用。 我們可試著建立一個分頁 (page) ，其中寫一個簡單的測試碼來試看 php 的可行性。如下 : &#60; ?php $curDate = date(&#8216;Y-m-d H:i:s&#8217;); echo &#8220;\n&#8221;; echo &#8216;現在的時間是 : &#8216; . $curDate; echo &#8220;\n&#8221;; ?&#62; 注意 : 寫這些碼，要在 html 碼的狀態下時寫入，而不可在預覽狀態下寫入。寫完後別忘了在寫文章的狀態欄的右下方，要把 run PHP code? 選為啟用。另外，管理主選單選項中的寫作項內 &#8220;自動修正錯誤的巢狀 XHTML 語法&#8221; 的功能要設為 off 不使用。 寫完以上的碼後儲存並查閱這一頁，就會看到上頭所寫的碼已經確實的執行了。若無法執行，則可能是上述的幾項程序中沒弄對。 這一個插件，提供了我們可在 [...]]]></description>
			<content:encoded><![CDATA[<p>WordPress 的文章中，原本只能寫入文字的文章。並不能在文章中隱藏 php 執行程式的執行結果。</p>
<p><a href="http://www.nosq.com/blog/2006/01/runphp-plugin-for-wordpress/">runPHP</a> 這個插件，提供這個可能性。對於，WordPress 2.0 以上的程式，可下載 <a href="http://www.nosq.com/download/runPHP2.2.2.zip">runPHP 2.2.2</a> &#8211; .zip 檔。解壓縮後置入 plugins 目錄下。並在外掛功能中予以啟用。</p>
<p>我們可試著建立一個分頁 (page) ，其中寫一個簡單的測試碼來試看 php 的可行性。如下 :</p>
<blockquote><p> &lt; ?php<br />
$curDate = date(&#8216;Y-m-d H:i:s&#8217;);</p>
<p>echo &#8220;\n&#8221;;<br />
echo &#8216;現在的時間是 : &#8216; . $curDate;<br />
echo &#8220;\n&#8221;;<br />
?&gt;</p></blockquote>
<p>注意 : 寫這些碼，要在 html 碼的狀態下時寫入，而不可在預覽狀態下寫入。寫完後別忘了在寫文章的狀態欄的右下方，要把 run PHP code? 選為啟用。另外，管理主選單選項中的寫作項內 &#8220;自動修正錯誤的巢狀 XHTML 語法&#8221; 的功能要設為 off 不使用。</p>
<p>寫完以上的碼後儲存並查閱這一頁，就會看到上頭所寫的碼已經確實的執行了。若無法執行，則可能是上述的幾項程序中沒弄對。<br />
這一個插件，提供了我們可在 WordPress 的所有文章中插入 php 程式的無限可能，實在不錯用。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.hi3b.com/archives/201/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

