<?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>Anistar RIA Blog &#187; PHP/Mysql</title>
	<atom:link href="http://blog.riaproject.com/category/php-mysql/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.riaproject.com</link>
	<description>Rich Internet Application 知識誌</description>
	<lastBuildDate>Fri, 16 Jul 2010 08:25:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>PHP5中利用PDO使用各種資料庫(dsn)</title>
		<link>http://blog.riaproject.com/php-mysql/1543.html</link>
		<comments>http://blog.riaproject.com/php-mysql/1543.html#comments</comments>
		<pubDate>Sun, 04 Jul 2010 06:20:07 +0000</pubDate>
		<dc:creator>anistar</dc:creator>
				<category><![CDATA[PHP/Mysql]]></category>
		<category><![CDATA[PDO]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://blog.riaproject.com/?p=1543</guid>
		<description><![CDATA[PHP5以後除了使用mysql_connect這種救的方法連接資料庫之外，
加入了PDO的新功能可以用來連接資料庫，
好處在於在效能上改善很多，
而且未來在將系統移植道不同的資料庫時也比較方便，
所以我簡單的分享各種不同資料庫中的dsn設定方法：]]></description>
		<wfw:commentRss>http://blog.riaproject.com/php-mysql/1543.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>淺談PHP 5.3的 Namespace 的概念</title>
		<link>http://blog.riaproject.com/flex/1526.html</link>
		<comments>http://blog.riaproject.com/flex/1526.html#comments</comments>
		<pubDate>Wed, 30 Jun 2010 06:15:58 +0000</pubDate>
		<dc:creator>anistar</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[PHP/Mysql]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://blog.riaproject.com/?p=1526</guid>
		<description><![CDATA[PHP 5.3版中把之前拿掉的Namespace的概念又拉進來了，
這讓PHP大型專案可以避免類別名稱過長的問題，
例如在以前的PHP4或5中，
若要描述 company\Employee.php 這個檔案的話，
我們會故意將類別名設計為 Company_Employee，
今天我們就以這個例子寫一個小Sample出來：]]></description>
		<wfw:commentRss>http://blog.riaproject.com/flex/1526.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>PHP上傳大檔需要注意的問題</title>
		<link>http://blog.riaproject.com/php-mysql/1488.html</link>
		<comments>http://blog.riaproject.com/php-mysql/1488.html#comments</comments>
		<pubDate>Thu, 21 Jan 2010 08:51:52 +0000</pubDate>
		<dc:creator>anistar</dc:creator>
				<category><![CDATA[PHP/Mysql]]></category>
		<category><![CDATA[Flash Media Server]]></category>
		<category><![CDATA[Linux服務設定]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Setting]]></category>

		<guid isPermaLink="false">http://blog.riaproject.com/?p=1488</guid>
		<description><![CDATA[PHP上傳大型檔案就必須要去注意檔案大小處理的問題了， 尤其是HD影音檔動則大到50MB， 今天剛好幫客戶處理影音的上傳與轉檔問題， 想到這應該會是很多初學者會遇到的問題， 所以順手發一篇關於檔案處理的內容提醒上來， 希望有人遇到問題的時候可以找到這個答案。 當PHP在處理上傳時，會參考php.ini中的設定， 老實說其預設值並沒有一個基準值， 例如我linux server上的設定是10MB， 而PC上的預設值是2MB， 反正超過其設定值就是通通都不准通過就是了， 若要調整上傳檔案的大小， 記得要調整php.ini的兩個地方， 一定要兩個設定都設好才會ok， 例如下方的設定： upload_max_filesize = 32M post_max_size = 32M 這樣一來就能限制檔案最大可上傳為32MB， 好了，祝各位好運囉。]]></description>
		<wfw:commentRss>http://blog.riaproject.com/php-mysql/1488.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>PHP中5個常用的系統常數</title>
		<link>http://blog.riaproject.com/php-mysql/1195.html</link>
		<comments>http://blog.riaproject.com/php-mysql/1195.html#comments</comments>
		<pubDate>Mon, 25 May 2009 03:14:09 +0000</pubDate>
		<dc:creator>anistar</dc:creator>
				<category><![CDATA[PHP/Mysql]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://blog.riaproject.com/?p=1195</guid>
		<description><![CDATA[PHP程式撰寫中有5個常用的常數， 這些常數可以快速的幫助程式寫的人從中取得需要的資訊內容， 我將這5個常數整理如下： __LINE__ 顯示程式文件中的該行程式行號。 __FILE__ 程式檔的完整路徑和檔案名，如果用在於include的外部檔案中，則返回被include的檔案名。 __FUNCTION__ 執行的函數名稱，自 PHP 5 起本常數返回該函數被定義時的名字（區分大小寫）。 __CLASS__ 執行的類別名稱，自 PHP 5 起本常數返回該類被定義時的名字（區分大小寫）。 __METHOD__ 執行的類別方法名稱，返回該方法被定義時的名字（區分大小寫）。]]></description>
		<wfw:commentRss>http://blog.riaproject.com/php-mysql/1195.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>PHP實作使用SQLite資料庫</title>
		<link>http://blog.riaproject.com/php-mysql/807.html</link>
		<comments>http://blog.riaproject.com/php-mysql/807.html#comments</comments>
		<pubDate>Mon, 05 Jan 2009 01:30:37 +0000</pubDate>
		<dc:creator>anistar</dc:creator>
				<category><![CDATA[PHP/Mysql]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[SQLite]]></category>

		<guid isPermaLink="false">http://blog.riaproject.com/?p=807</guid>
		<description><![CDATA[我做了一個簡單的PHP實作SQLite範例，用起來還真的有一些些不習慣，大概是我在AIR當中用的太爽了，結果才發現有些SQL在PHP中使用不出來，看來還需要稍微研究跟評估一下，其範例如下： &#60;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&#62; &#60;html xmlns="http://www.w3.org/1999/xhtml"&#62; &#60;head&#62; &#60;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&#62; &#60;title&#62;SQLite實作&#60;/title&#62; &#60;/head&#62; &#60;body&#62; &#60;?php //建立SQLite連線 $db=sqlite_open("demo.db"); if($db){ echo("成功連接使用SQLite資料庫"); }else{ die("SQLite資料庫連接失敗..."); } //建立資料表 $sqlCommand="CREATE TABLE IF NOT EXISTS test(id INTEGER PRIMARY KEY, creation_date DATE)"; @sqlite_query($db,$sqlCommand); $sqlCommand="INSERT INTO test(creation_date) VALUES ('".date("Y-m-d H:i:s")."')"; sqlite_query($db,$sqlCommand); $sqlCommand="SELECT * FROM test ORDER BY id [...]]]></description>
		<wfw:commentRss>http://blog.riaproject.com/php-mysql/807.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP中使用SQLite的資訊</title>
		<link>http://blog.riaproject.com/php-mysql/804.html</link>
		<comments>http://blog.riaproject.com/php-mysql/804.html#comments</comments>
		<pubDate>Sun, 04 Jan 2009 09:57:07 +0000</pubDate>
		<dc:creator>anistar</dc:creator>
				<category><![CDATA[PHP/Mysql]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[SQLite]]></category>

		<guid isPermaLink="false">http://blog.riaproject.com/?p=804</guid>
		<description><![CDATA[這是我在收集PHP使用SQLite的資訊，因為我正在準備實行一些計畫，需要更輕量級的資料庫，所以我把看過覺得有用的資訊收集在這，若是有興趣的人可以參考使用． SQLit的介紹： 資料庫在處理大量的資料上是很必要的，但如果資料固定且量不多，或是資料庫只會在單機上使用，且沒有讓多人使用的需求的話，就不一定需要特別架一個資料庫系統；因此，可以使用類似 SQLite 這樣的嵌入式資料庫（embedded SQL database）。 SQLite 與其他一般資料庫差異不大，一般的 SQL-92 語法都能夠使用，而且不需要建立一個資料庫系統，要使用的時候，只要在編譯程式的時候將 SQLite 程式庫一起編入就可以使用。另外，SQLite 的資料庫（database）都是以單一檔案的形式存於磁碟中，不需要再安裝資料庫伺服器軟體，所以要把資料庫複製或建立在你的電腦上是相單簡單快速。 SQLite 是一個很小的 C 語言程式庫，且本身就完全包含資料庫引擎的功能，而且可以嵌入至其他程式中，完全不用額外的設定。其特性如下： 支援ACID (Atomic, Consistent, Isolated, Durable) transaction。 Zero-configuration：無須管理者的設定及管理。 支援大部分SQL92的語法。 資料庫存在於一個單一的檔案中。 資料庫系統所在機器的位元組順序(Byte order)無關。 支援大小至2 terabytes (2^41 bytes)。 記憶體需求小：小於3萬行的C語言程式碼。小於250KB的程式空間。 大部分的資料庫操作皆快於一般資料庫系統。 簡單易用的API。 支援TCL。也有其他語言的支援可用。 註解詳細的程式碼，以及超過90%的測試。 程式庫自己包含完整的功能，無須其他額外的程式或程式庫。 為public domain，可免費使用。 serverless cross-platform － 使用unicode 不會進行data type檢查 WIKI上的說明： http://wiki.oss.org.tw/index.php/Php_sqlite PHP官方說明： http://tw2.php.net/sqlite 實例說明等我有空再寫出來給大家看，其實wiki上已經寫的很清楚了 :p]]></description>
		<wfw:commentRss>http://blog.riaproject.com/php-mysql/804.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>PHP Error message &#8211; Cannot modify header information</title>
		<link>http://blog.riaproject.com/php-mysql/237.html</link>
		<comments>http://blog.riaproject.com/php-mysql/237.html#comments</comments>
		<pubDate>Tue, 27 Nov 2007 23:40:05 +0000</pubDate>
		<dc:creator>anistar</dc:creator>
				<category><![CDATA[PHP/Mysql]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://blog.riaproject.com/?p=237</guid>
		<description><![CDATA[Warning: Cannot modify header information &#8211; headers already sent by ????  若是PHP出現在執行時出現這段訊息，而造成無法正常的將網頁導引至某頁，有可能是PHP的設定沒有設好的關係。 試著打開php.ini設定檔，並找到 output_buffering的項目，將註解拿掉(去掉前面的#)，在後面輸入 4096或更高的數值，應該就可以了，設完請記得重新啟動Apache即可。 發生環境為PHP 5.21]]></description>
		<wfw:commentRss>http://blog.riaproject.com/php-mysql/237.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP在Windows作業系統上傳中文檔名失敗的問題</title>
		<link>http://blog.riaproject.com/php-mysql/238.html</link>
		<comments>http://blog.riaproject.com/php-mysql/238.html#comments</comments>
		<pubDate>Thu, 22 Nov 2007 03:09:17 +0000</pubDate>
		<dc:creator>anistar</dc:creator>
				<category><![CDATA[PHP/Mysql]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Setting]]></category>

		<guid isPermaLink="false">http://blog.riaproject.com/?p=238</guid>
		<description><![CDATA[若是你在PHP在Windows作業系統上開發系統，那可能會遇到上傳中文檔名時會失敗的問題，網路上的作法幾乎都是用JavaScript偷偷處理過，再跟Form表單一起送到Server端去處理，但是這樣一來就會喪失了彈性，例如若是這支上傳的PHP程式還想要給Flash或是Flex使用就會非常尷尬，我將我認為比較好的解決方法記錄下來。 發生錯誤的原因在於中文版的Windows是用Big5在編碼，但是網頁送過來的卻可能是UTF8的資料，所以終極的解決方法是到Server端後將UTF8的檔名轉換成Big5的檔名，最後再依照轉換過的檔名來儲存檔案就好了。 不過初學者要看好了，要轉碼並需要執行一個mb_convert_encoding的函數，但是這個函數並沒有內建在PHP中，必須要而外指定安裝，若是你是用PHP安裝版，可以將Extension中的Multi-Byte String擴充套件給啟用，就可以安裝完成了。 最後只需要將程式碼加上一段轉碼就可以了，我寫一段最精簡的程式來完成轉碼的動作，精神所在於mb_convert_encoding這個函數： &#60;?php $file=mb_convert_encoding($_FILES["file"]["name"],"big5","utf8"); copy($_FILES["file"]["tmp_name"],"upload/".$file); ?&#62; 恭喜你，再試一次上傳就可以成功了，身為非英語系國家還真是辛苦，因為動不動就要去面對編碼上的問題，順便題一下，若是你的系統是Linux的話，這個動作是不需要做的，除非你設定你的Linux是Big5的編碼，不過我想你應該是不會這樣做才對。]]></description>
		<wfw:commentRss>http://blog.riaproject.com/php-mysql/238.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>PHP中編碼的問題 (Big5 v.s utf8 )</title>
		<link>http://blog.riaproject.com/php-mysql/209.html</link>
		<comments>http://blog.riaproject.com/php-mysql/209.html#comments</comments>
		<pubDate>Thu, 25 Oct 2007 02:22:28 +0000</pubDate>
		<dc:creator>anistar</dc:creator>
				<category><![CDATA[PHP/Mysql]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://blog.riaproject.com/?p=209</guid>
		<description><![CDATA[雖然我已經很久沒在網頁中用Big5的編碼模式了，但是難免在課堂上會被問到這樣的問題，例如若是想在PHP中想要輸出"成功"這樣的字樣，看起來明明沒寫錯，但是為什麼就是被告知語法有錯，通常這種BUG最難抓了，為了讓也有遇到相同問題的朋友可以找到答案，我將問題記錄在這。 想要在網頁中用PHP輸出"成功"的字樣，應該不是什麼困難的事，只要透過echo指令就可以完成，同學遇到的問題正是這樣。  &#60;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&#62; &#60;html xmlns="http://www.w3.org/1999/xhtml"&#62; &#60;head&#62; &#60;meta http-equiv="Content-Type" content="text/html; charset=big5" /&#62; &#60;title&#62;編碼測試&#60;/title&#62; &#60;/head&#62;&#60;body&#62; &#60;?php echo("成功"); ?&#62; &#60;/body&#62; &#60;/html&#62; 結果執行時很不領情的出現錯誤訊息。  當時我也在那裡反覆找了好久，但是的確是找不出問題，突然靈機一動，想到在編碼中"許功蓋"這樣的字似乎會遇到問題，結果是了一下，沒錯，只要結尾是這三個字的echo指令都會被判斷成錯誤，那怎嚜辦呢？其實只要將網頁編碼轉成utf8就行了，如下面的程式碼：  &#60;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&#62; &#60;html xmlns="http://www.w3.org/1999/xhtml"&#62; &#60;head&#62; &#60;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&#62; &#60;title&#62;編碼測試&#60;/title&#62; &#60;/head&#62;lt;body&#62; &#60;?php echo("成功"); ?&#62; &#60;/body&#62; &#60;/html&#62; 像是這樣的靈異現象還真的事要靠經驗啊，不然就算找破頭大概也很難發現問題在哪？(嘆氣～)]]></description>
		<wfw:commentRss>http://blog.riaproject.com/php-mysql/209.html/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Apache 2.2.4 與 PHP 5.2.1 設定配置</title>
		<link>http://blog.riaproject.com/php-mysql/109.html</link>
		<comments>http://blog.riaproject.com/php-mysql/109.html#comments</comments>
		<pubDate>Tue, 03 Jul 2007 03:41:56 +0000</pubDate>
		<dc:creator>anistar</dc:creator>
				<category><![CDATA[PHP/Mysql]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Apserver]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://blog.riaproject.com/?p=109</guid>
		<description><![CDATA[本文紀錄Apache 2.2.4與PHP5.2.1在httpd.conf的設定： 要使用php5和mysql，要在httpd.conf的設定中加入以下的代碼： LoadFile C:phplibmysql.dll LoadModule php5_module "C:phpphp5apache2_2.dll" PHPIniDir "C:serverphp" AddType application/x-httpd-php .php LoadFile行用來啟用mysql，否則的話要將libmysql.dll複製到windows目錄下，一般為了方便且乾淨起見，最好使用LoadFile指令會較好。 下邊3行用來啟用php5.2.1。 實際安裝目錄不同者請自行修正目錄位置，如果不需要使用mysql則可以不用設定第1行。]]></description>
		<wfw:commentRss>http://blog.riaproject.com/php-mysql/109.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
