<?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; 架站</title>
	<atom:link href="http://blog.linym.net/archives/tag/%e6%9e%b6%e7%ab%99/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.linym.net</link>
	<description>我的學習心得、筆記</description>
	<lastBuildDate>Fri, 09 Dec 2011 12:33:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>安裝 SQLite (For Linux)</title>
		<link>http://blog.linym.net/archives/61</link>
		<comments>http://blog.linym.net/archives/61#comments</comments>
		<pubDate>Mon, 16 Jan 2006 16:40:52 +0000</pubDate>
		<dc:creator>lym520</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[SQLite]]></category>
		<category><![CDATA[架站]]></category>

		<guid isPermaLink="false">http://lym.fyman.idv.tw/blog/archives/61</guid>
		<description><![CDATA[我的 Linux 是 Fedora Core 4 (FC4)，其 RPM 套件的 PHP 版本是 5.0.4，並沒有將 SQLite 模組包含進去，所以只好另外手動安裝。 1. 下載 SQLite $ wget http://pecl.php.net/get/SQLite-1.0.3.tgz 2. 解壓縮，開始編譯 ※如找不到 phpize 請安裝「php-devel」套件 $ tar zxvf SQLite-1.0.3.tgz $ cd SQLite-1.0.3 $ phpize $ ./configure $ make 3. 如果編譯錯誤需修改 sqlite.c 檔案 找到： static unsigned char arg3_force_ref[] = {3, BYREF_NONE, BYREF_NONE, BYREF_FORCE }; 將它註解掉： /* [...]]]></description>
			<content:encoded><![CDATA[<p>我的 Linux 是 Fedora Core 4 (FC4)，其 RPM 套件的 PHP 版本是 5.0.4，並沒有將 SQLite 模組包含進去，所以只好另外手動安裝。<br />
<strong>1. 下載 SQLite</strong><br />
$ wget http://pecl.php.net/get/SQLite-1.0.3.tgz</p>
<p><strong>2. 解壓縮，開始編譯</strong> ※如找不到 phpize 請安裝「php-devel」套件<br />
$ tar zxvf SQLite-1.0.3.tgz<br />
$ cd SQLite-1.0.3<br />
$ phpize<br />
$ ./configure<br />
$ make</p>
<p><strong>3. 如果編譯錯誤需修改 sqlite.c 檔案</strong><br />
找到：<br />
static unsigned char arg3_force_ref[] = {3, BYREF_NONE, BYREF_NONE, BYREF_FORCE };</p>
<p>將它註解掉：<br />
/* static unsigned char arg3_force_ref[] = {3, BYREF_NONE, BYREF_NONE, BYREF_FORCE }; */</p>
<p>找到：<br />
function_entry sqlite_functions[] = {<br />
PHP_FE(sqlite_open, arg3_force_ref)<br />
PHP_FE(sqlite_popen, arg3_force_ref)</p>
<p>替換為：<br />
function_entry sqlite_functions[] = {<br />
PHP_FE(sqlite_open, third_arg_force_ref)<br />
PHP_FE(sqlite_popen, third_arg_force_ref)</p>
<p><strong>4. 重新編譯及安裝</strong><br />
$ make<br />
$ make install</p>
<p><strong>5. 建立 sqlite.ini 將 SQLite 載入 PHP</strong><br />
$ vi /etc/php.d/sqlite.ini</p>
<p>加入以下內容並存檔離開：<br />
; Enable sqlite extension module<br />
extension=sqlite.so</p>
<p><strong>6. 重新啟動 Apache</strong><br />
service httpd restart</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.linym.net/archives/61/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>安裝 SQLite (For Win)</title>
		<link>http://blog.linym.net/archives/60</link>
		<comments>http://blog.linym.net/archives/60#comments</comments>
		<pubDate>Sat, 14 Jan 2006 12:53:53 +0000</pubDate>
		<dc:creator>lym520</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[系統筆記]]></category>
		<category><![CDATA[SQLite]]></category>
		<category><![CDATA[架站]]></category>

		<guid isPermaLink="false">http://lym.fyman.idv.tw/blog/archives/60</guid>
		<description><![CDATA[SQLite 是個使用檔案方式儲存的 Database，不需要另外安裝如 MySQL 之類的 Server，而且 PHP 5 已經將 SQLite 內建了，相當好用，在某些方面效能比起其他 Database 系統有過之而無不及阿！不過目前國內似乎還很少人知道這玩意，以後相關文件應該會更多。我也想過將 SQLite 的模組以動態載入的方式執行，不過現今版本的 PHP 好像已經改成只能載入指定資料夾裡面的模組，所以如果有成功的高手煩請分享一下囉。 先介紹 SQLite 在 windows 的安裝方式： PHP 4 版本 1.由此下載 php_sqlite.dll 2.php.ini 加上 extension=php_sqlite.dll 3.重新啟動 Web Server 即可。 PHP 5 版本 PHP 5 已經包含 SQLite 模組了，所以只需要載入模組即可。 修改 php.ini 找到 ;extension=php_sqlite.dll 將前面的分號去掉。 不過目前測試結果在 PHP 5.1.1 和 5.1.2 只有這樣是 run 不起來的，必須連 [...]]]></description>
			<content:encoded><![CDATA[<p>SQLite 是個使用檔案方式儲存的 Database，不需要另外安裝如 MySQL 之類的 Server，而且 PHP 5 已經將 SQLite 內建了，相當好用，在某些方面效能比起其他 Database 系統有過之而無不及阿！不過目前國內似乎還很少人知道這玩意，以後相關文件應該會更多。我也想過將 SQLite 的模組以動態載入的方式執行，不過現今版本的 PHP 好像已經改成只能載入指定資料夾裡面的模組，所以如果有成功的高手煩請分享一下囉。<br />
先介紹 SQLite 在 windows 的安裝方式：<br />
PHP 4 版本<br />
1.由此下載 <a href="http://snaps.php.net/win32/PECL_STABLE/php_sqlite.dll">php_sqlite.dll</a><br />
2.php.ini 加上 <strong>extension=php_sqlite.dll</strong><br />
3.重新啟動 Web Server 即可。</p>
<p>PHP 5 版本<br />
PHP 5 已經包含 SQLite 模組了，所以只需要載入模組即可。<br />
修改 php.ini 找到 <strong>;extension=php_sqlite.dll</strong> 將前面的分號去掉。<br />
不過目前測試結果在 PHP 5.1.1 和 5.1.2 只有這樣是 run 不起來的，必須連 pdo 一起啟動，所以在前面增加兩行：<br />
<strong>extension=php_pdo.dll<br />
extension=php_pdo_sqlite.dll</strong><br />
extension=php_sqlite.dll<br />
最後一樣重新啟動 Web Server 即可。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.linym.net/archives/60/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IIS 6 + PHP 配置教學 (For 2003)</title>
		<link>http://blog.linym.net/archives/56</link>
		<comments>http://blog.linym.net/archives/56#comments</comments>
		<pubDate>Sat, 24 Dec 2005 12:25:59 +0000</pubDate>
		<dc:creator>lym520</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[系統筆記]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[架站]]></category>

		<guid isPermaLink="false">http://lym.fyman.idv.tw/blog/archives/56</guid>
		<description><![CDATA[※ 此篇文章已更新，請看 http://blog.linym.net/archives/240 這篇是接續前一篇的，在 IIS 6 安裝 PHP 需要多一個步驟。 照圖步驟完成後重新啟動 IIS 即可。 如果執行 PHP 會跑出認證對話框， 則必須修改 php5isapi.dll 這個檔案的權限，允許 IIS 帳戶存取它。]]></description>
			<content:encoded><![CDATA[<p><strong>※ 此篇文章已更新，請看 <a href="http://blog.linym.net/archives/240">http://blog.linym.net/archives/240</a></strong></p>
<p>這篇是接續前一篇的，在 IIS 6 安裝 PHP 需要多一個步驟。<br />
照圖步驟完成後重新啟動 IIS 即可。<br />
如果執行 PHP 會跑出認證對話框，<br />
則必須修改 php5isapi.dll 這個檔案的權限，允許 IIS 帳戶存取它。<br />
<a href="http://blog.linym.net/wp-content/uploads/2006/04/1379875114.jpg" class="imagelink" title="1379875114.jpg"><img src="http://blog.linym.net/wp-content/uploads/2006/04/1379875114.thumbnail.jpg" id="image54" alt="1379875114.jpg" /></a><br />
<img src="http://blog.linym.net/wp-content/uploads/2006/04/1357559820.jpg" id="image55" alt="1357559820.jpg" /></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.linym.net/archives/56/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IIS 5 + PHP 配置教學 (For 2000/XP)</title>
		<link>http://blog.linym.net/archives/53</link>
		<comments>http://blog.linym.net/archives/53#comments</comments>
		<pubDate>Sat, 24 Dec 2005 04:06:43 +0000</pubDate>
		<dc:creator>lym520</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[系統筆記]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[架站]]></category>

		<guid isPermaLink="false">http://lym.fyman.idv.tw/blog/archives/53</guid>
		<description><![CDATA[雖然這幾年都改用 Apacher 了，不過可能有機會用到 IIS 安裝 PHP，而且網路上有些文章的方法不太完整，或是已經無法適用，所以在這裡為自己作個小小的筆記，跑 PHP 建議是以 ISAPI 模式來安裝，執行效率會比較好，也比較不會有問題，所以底下就介紹 ISAPI 的安裝方式，假設 IIS 都已經安裝好且可以 run 了。 Step 1： 到 PHP 官網下載最新版的 zip 封裝檔 (不要用安裝包)。 然後解壓縮到喜歡的路徑。(範例是 C:\PHP) Step 2： 將 C:\PHP\php.ini-dist 更名為 php.ini 。修改內容： 找到： extension_dir = "./" 修改成：(依自己路徑設定) extension_dir = "C:\PHP\ext" 存檔。 Step 3： 到 C:\PHP 將 php.ini 複製到 C:\WINDOWS 將 php5ts.dll 複製到C:\WINDOWS\system32 Step 4： [...]]]></description>
			<content:encoded><![CDATA[<p>雖然這幾年都改用 Apacher 了，不過可能有機會用到 IIS 安裝 PHP，而且網路上有些文章的方法不太完整，或是已經無法適用，所以在這裡為自己作個小小的筆記，跑 PHP 建議是以 ISAPI 模式來安裝，執行效率會比較好，也比較不會有問題，所以底下就介紹 ISAPI 的安裝方式，假設 IIS 都已經安裝好且可以 run 了。</p>
<p>Step 1：<br />
到 <a href="http://www.php.net">PHP 官網</a>下載最新版的 zip 封裝檔 (不要用安裝包)。<br />
然後解壓縮到喜歡的路徑。(範例是 C:\PHP)</p>
<p>Step 2：<br />
將 C:\PHP\php.ini-dist 更名為 php.ini 。修改內容：<br />
找到：<br />
<strong>extension_dir = "./"</strong></p>
<p>修改成：(依自己路徑設定)<br />
<strong>extension_dir = "C:\PHP\ext"</strong><br />
存檔。</p>
<p>Step 3：<br />
到 C:\PHP<br />
將 php.ini 複製到 C:\WINDOWS<br />
將 php5ts.dll 複製到C:\WINDOWS\system32</p>
<p>Step 4：<br />
開啟 IIS 管理工具，進入網站內容-&gt;主目錄-&gt;設定。<br />
新增應用程式對應，設定如圖：<br />
<img src="http://blog.linym.net/wp-content/uploads/2006/04/1013282394.jpg" id="image52" alt="1013282394.jpg" /><br />
完成後點兩次確定返回。</p>
<p>Step 5：<br />
切換至文件標籤，新增 index.php<br />
重新啟動 IIS 就完成了。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.linym.net/archives/53/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

