<?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.iearn.in.th/category/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.iearn.in.th</link>
	<description>Just Play and Just Knowledge</description>
	<lastBuildDate>Fri, 05 Aug 2011 15:10:12 +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>Akelos PHP Framework Project</title>
		<link>http://www.iearn.in.th/2008/10/01/akelos-php-framework-project/</link>
		<comments>http://www.iearn.in.th/2008/10/01/akelos-php-framework-project/#comments</comments>
		<pubDate>Wed, 01 Oct 2008 05:49:03 +0000</pubDate>
		<dc:creator>nolifelover</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[akelos framwork]]></category>
		<category><![CDATA[php framework]]></category>
		<category><![CDATA[php rail]]></category>
		<category><![CDATA[php script]]></category>
		<category><![CDATA[rails pot]]></category>

		<guid isPermaLink="false">http://www.jaideawhosting.com/nolifelover/?p=196</guid>
		<description><![CDATA[หลังจากที่สอบเสร็จไม่มีอะไรทำเบื่อๆ เลยมานั่งดู PHP Framework และกำลังตัดสินใจที่จะเลือก Framework ตัวใหม่มาใช้กับงานแต่สุดท้ายก็ลงเอยด้วยเจ้า Akelos ซึ่งผมเคยเขียน เริ่มต้นกับ-akelos-php-framework แต่ต้องยอมรับว่านานหลายเดือนแล้วซึ่งวันนี้ผมได้โหลดเ้จ้า Akelos 0.8 มาใช้เราลองมาลองเล่นกันดูนะครับสำหรับใครที่ยังไม่ set enviroments ของ windows ให้สามารถใช้งาน php ได้โดยไม่ต้องใส่ path ด้านหน้าก็ทำตามผมเลยละกันครับ 1. start &#62; right click &#62; properties &#62; select tab Advance&#62; Environment variable แก้ตรง Path เพิ่มที่เราลอง PHP ไว้ เช่น D:\xampp\php หลังจากนั้นลองเปิด command prompt แล้ว php -v ดูครับ ที่นี้เวลาเราต้องการ generate ก็ไม่ต้องเรียกยาวๆแล้วเรียกแค่ php script/generate [...]]]></description>
			<content:encoded><![CDATA[<p>หลังจากที่สอบเสร็จไม่มีอะไรทำเบื่อๆ เลยมานั่งดู PHP Framework และกำลังตัดสินใจที่จะเลือก Framework ตัวใหม่มาใช้กับงานแต่สุดท้ายก็ลงเอยด้วยเจ้า Akelos ซึ่งผมเคยเขียน <a href="http://www.jaideawhosting.com/nolifelover/2008/02/11/%E0%B9%80%E0%B8%A3%E0%B8%B4%E0%B9%88%E0%B8%A1%E0%B8%95%E0%B9%89%E0%B8%99%E0%B8%81%E0%B8%B1%E0%B8%9A-akelos-php-framework/">เริ่มต้นกับ-akelos-php-framework</a> แต่ต้องยอมรับว่านานหลายเดือนแล้วซึ่งวันนี้ผมได้โหลดเ้จ้า Akelos 0.8 มาใช้เราลองมาลองเล่นกันดูนะครับสำหรับใครที่ยังไม่ set enviroments ของ windows ให้สามารถใช้งาน php ได้โดยไม่ต้องใส่ path ด้านหน้าก็ทำตามผมเลยละกันครับ<br />
1. start &gt; right click &gt; properties &gt; select tab Advance&gt; Environment variable แก้ตรง Path เพิ่มที่เราลอง PHP ไว้ เช่น D:\xampp\php หลังจากนั้นลองเปิด command prompt แล้ว php -v ดูครับ<br />
<a href="http://www.iearn.in.th/wp-content/uploads/2008/10/akelos-command-set-php-path.jpg"><img class="aligncenter size-medium wp-image-197" title="akelos-command-set-php-path" src="http://www.jaideawhosting.com/nolifelover/wp-content/uploads/2008/10/akelos-command-set-php-path-300x198.jpg" alt="" width="300" height="198" /></a><br />
<span id="more-257"></span><br />
<a href="http://www.iearn.in.th/wp-content/uploads/2008/10/akelos-command-path-php.jpg"><img class="aligncenter size-medium wp-image-198" title="akelos-command-path-php" src="http://www.jaideawhosting.com/nolifelover/wp-content/uploads/2008/10/akelos-command-path-php-300x152.jpg" alt="" width="300" height="152" /></a><br />
ที่นี้เวลาเราต้องการ generate ก็ไม่ต้องเรียกยาวๆแล้วเรียกแค่ php script/generate scaffold แค่นี้เองและหากเวลาที่ต้องการติดตั้งเราไม่ต้องการที่จะใส่ Path เวลาสั่ง setup ก็ให้ใส่ Path ไปเลยเพื่อความง่ายดาย แต่ในที่นี้เอาเป็นว่าผมไม่ set ละกันครับ</p>
<h2>เริ่มต้นด้วยการสร้างโปรแจค</h2>
<p>ขั้นแรกสุดคงหนีไม่พ้นการสร้างโปรแจคครับ โดยผมจะสร้างโปรแจค blog ที่ d:\project\akelos และผมเอาไฟล์ทั้งหมดของ akelos ไว้ที่ D:\Util\Akelos\ หากใครไม่ทราบ parameter สามารถใช้ -h ช่วยได้ครับ</p>
<blockquote><p>D:\Project\akelos&gt;php d:\Util\Akelos\script\setup -d blog</p></blockquote>
<blockquote><p>D:\Project\akelos\blog&gt;php d:\Util\Akelos\script\setup -h<br />
Usage: setup [-sqhf --dependencies] &lt;-pd&gt;</p>
<p>-deps &#8211;dependencies      Includes a copy of the framework into the application directory. (true)<br />
-d &#8211;directory=    Destination directory for installing the application.<br />
-f &#8211;force                Overwrite files that already exist. (false)<br />
-h &#8211;help                 Show this help message.<br />
-p &#8211;public_html=  Location where the application will be accesed by the webserver.<br />
-q &#8211;quiet                Suppress normal output. (false)<br />
-s &#8211;skip                 Skip files that already exist. (false)</p></blockquote>
<h2>แก้ httpd.conf มาหาโปรแจค akelos</h2>
<p>ในที่นี้หากใครที่ไม่ได้สร้างโปรแจคไว้ใน home directory ก็ต้องทำการแก้ httpd.conf ตามนี้ครับ โดยผมใช้  xampp ผมต้องแก้ที่ D:\xampp\apache\conf\httpd.conf ผมเพิ่มตรงบรรทัดสุดท้าย จากนั้นก็ restart service apache ก็เรียบร้อย</p>
<blockquote><p>Alias /blog &#8220;d:\project\akelos\blog\public&#8221;<br />
Options Indexes FollowSymLinks<br />
AllowOverride All<br />
Order allow,deny<br />
Allow from all</p></blockquote>
<p><a href="http://www.iearn.in.th/wp-content/uploads/2008/10/akelos-demo-localhost-alias.jpg"><img class="aligncenter size-medium wp-image-203" title="akelos-demo-localhost-alias" src="http://www.jaideawhosting.com/nolifelover/wp-content/uploads/2008/10/akelos-demo-localhost-alias-300x181.jpg" alt="" width="300" height="181" /></a></p>
<h2>สร้างฐานข้อมูลด้วย MySQL</h2>
<p>ใครยังไม่ set path ก็ไป set path mysql ด้วยนะครับหากต้องการใช้งานผ่าน command prompt หากใครพร้อมแล้วตามด้านล่างเลยครับ โดยผมสร้างฐานข้อมูลชื่อ blog_dev และ ให้สิทธิแก่ user blog_user โดยมี Pass word คือ blog_pass</p>
<blockquote><p>mysql -u root -p<br />
Enter Password: ******<br />
mysql&gt; CREATE DATABASE blog_dev;<br />
mysql&gt; GRANT ALL ON blog_dev.* TO blog_user@localhost IDENTIFIED BY &#8220;blog_pass&#8221;;<br />
mysql&gt; FLUSH PRIVILEGES;<br />
mysql&gt; exit</p></blockquote>
<h2>Configuration blog Project</h2>
<p>หลังจากที่ได้เตรียมทุกอย่างเรียบร้อยแล้วหากใครที่รู้เรื่องดีแล้วก็แก้ได้เลยครับสำหรับใครเพ่ิงเริ่มต้นก็สามารถใช้งานหน้า config ของ akelos ได้โดยไปที่ http://localhost/blog โดยเลือกไปตาม step คือ mysql จากนั้นจึงไปใส่ค่าที่จำเป็นในหน้าถัดไปโดยใส่ตามที่ได้สร้างขึ้นครับ โดยผมแก้ให้ตรงกันหมดทั้ง 3 ส่วนเลยครับใช้อันเดียวกัน ในหน้าต่อไปก็มีให้เราใส่ด้วยว่าต้องการภาษาอะไรบ้างผมใส่ th เพิ่มเข้าไปเพื่อทำ mutilang ครับจากนั้นระบบจะทำการ generate configuration ให้ซึ่งสามารถดูได้ที่ /config</p>
<h2>สร้าง Controller</h2>
<p>ในส่วนนี้จะลองสร้าง controller กันครับ</p>
<blockquote><p>D:\Project\akelos\blog&gt;php script/generate controller blog</p>
<p>The following files have been created:<br />
D:\Project\akelos\blog\app\controllers\blog_controller.php<br />
D:\Project\akelos\blog\app\helpers\blog_helper.php<br />
D:\Project\akelos\blog\test\functional\controllers\blog_controller.php<br />
D:\Project\akelos\blog\test\fixtures\app\controllers\blog_controller.php<br />
D:\Project\akelos\blog\test\fixtures\app\helpers\blog_helper.php</p></blockquote>

<p class="sayac_bilgi">85 views</p>
]]></content:encoded>
			<wfw:commentRss>http://www.iearn.in.th/2008/10/01/akelos-php-framework-project/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>อัพเกรด php ใน directadmin</title>
		<link>http://www.iearn.in.th/2008/09/28/%e0%b8%ad%e0%b8%b1%e0%b8%9e%e0%b9%80%e0%b8%81%e0%b8%a3%e0%b8%94-php-%e0%b9%83%e0%b8%99-directadmin/</link>
		<comments>http://www.iearn.in.th/2008/09/28/%e0%b8%ad%e0%b8%b1%e0%b8%9e%e0%b9%80%e0%b8%81%e0%b8%a3%e0%b8%94-php-%e0%b9%83%e0%b8%99-directadmin/#comments</comments>
		<pubDate>Sun, 28 Sep 2008 12:56:42 +0000</pubDate>
		<dc:creator>nolifelover</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[directadmin update php]]></category>
		<category><![CDATA[update php]]></category>

		<guid isPermaLink="false">http://www.jaideawhosting.com/nolifelover/?p=188</guid>
		<description><![CDATA[หลังจากที่เพิ่ม apache mod_proxy ไปแ้ล้วก็เห็นว่า php 2.5.6 ออกมาซักพักแล้วจึงเอามา compile อัพเดดกันดีกว่า โดยการแก้ไขครั้งนี้ทำได้ง่ายมากครับ ตามนี้เลยครับ cd /usr/local/directadmin/customapache wget http://files.directadmin.com/services/customapache/php-5.2.6.tar.gz nano build change: PHP_VER=5.2.5 to: PHP_VER=5.2.6 ./build clean ./build php_ap2 n รอซักพักครับจากนั้นก็ให้ไปทำการ restart httpd => /etc/ini.d/httpd restart เป็นอันเรียบร้อย 9 views]]></description>
			<content:encoded><![CDATA[<p>หลังจากที่เพิ่ม apache mod_proxy ไปแ้ล้วก็เห็นว่า php 2.5.6 ออกมาซักพักแล้วจึงเอามา compile อัพเดดกันดีกว่า โดยการแก้ไขครั้งนี้ทำได้ง่ายมากครับ ตามนี้เลยครับ<br />
<code>cd /usr/local/directadmin/customapache<br />
wget http://files.directadmin.com/services/customapache/php-5.2.6.tar.gz</p>
<p>nano build</p>
<p>change: PHP_VER=5.2.5<br />
to: PHP_VER=5.2.6</p>
<p>./build clean<br />
./build php_ap2 n</code><br />
รอซักพักครับจากนั้นก็ให้ไปทำการ restart httpd => /etc/ini.d/httpd restart เป็นอันเรียบร้อย</p>

<p class="sayac_bilgi">9 views</p>
]]></content:encoded>
			<wfw:commentRss>http://www.iearn.in.th/2008/09/28/%e0%b8%ad%e0%b8%b1%e0%b8%9e%e0%b9%80%e0%b8%81%e0%b8%a3%e0%b8%94-php-%e0%b9%83%e0%b8%99-directadmin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Working with php in mac 10.5.X</title>
		<link>http://www.iearn.in.th/2008/04/29/working-with-php-in-mac-105x/</link>
		<comments>http://www.iearn.in.th/2008/04/29/working-with-php-in-mac-105x/#comments</comments>
		<pubDate>Mon, 28 Apr 2008 23:05:19 +0000</pubDate>
		<dc:creator>nolifelover</dc:creator>
				<category><![CDATA[MacOSX]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[apachetcl]]></category>
		<category><![CDATA[Configuration]]></category>
		<category><![CDATA[Enable]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[mamp]]></category>
		<category><![CDATA[Marc Liyanage]]></category>

		<guid isPermaLink="false">http://www.jaideawhosting.com/nolifelover/?p=127</guid>
		<description><![CDATA[สวัสดีครับสำหรับวันนี้เมื่อผมต้องการเขียน php บน mac เนี่ยผมต้องทำอย่างไรครับสำหรับที่จริงแล้วเรามีทางเลือกได้หลายทางครับ จะเอาที่มีเป็น package อยู่แล้วมา install หรือนั่ง compile apache ใหม่ก็แล้วแต่ครับ สำหรับวิธีที่ผมเลือกคือเลือกที่จะใช้ apache ที่มีอยู่ใน 10.5.x อยู่แล้วครับ สำหรับใครที่อยากจะลงโดยไม่ต้องยุ่งกับอะไรสามารถเลือก MAMP, XAMPP or Marc Liyanage ได้ครับ สำหรับใครที่ต้องการใช้ที่ติดกับ mac อยู่แล้วก็ตามมาเลยครับ Enable Developer Tools     คือการเปิดสิทธิให้สามารถใช้ root user ได้ เพื่อไม่ให้เกิดปัญหาเรื่องการใช้งานในการ access file permission  สำหรับวิธีการให้ไปที่ Menu -&#62;Go -&#62;Utilities-&#62; Directory Utility จากนั้นให้ทำการเลือก ปลดล็อกไฟล์ตรงรูปกุญแจแล้วจะมีการ Authenticate เพื่อตรวจสอบสิทธิการใช้ ให้เราใส่ password ลงไป หลังจากนั้นให้ไปที่ menu-&#62;edit-&#62;enable root users จะมีการถามพาสเวิร์ดให้เราใส่ [...]]]></description>
			<content:encoded><![CDATA[<p>สวัสดีครับสำหรับวันนี้เมื่อผมต้องการเขียน php บน mac เนี่ยผมต้องทำอย่างไรครับสำหรับที่จริงแล้วเรามีทางเลือกได้หลายทางครับ จะเอาที่มีเป็น package อยู่แล้วมา install หรือนั่ง compile apache ใหม่ก็แล้วแต่ครับ สำหรับวิธีที่ผมเลือกคือเลือกที่จะใช้ apache ที่มีอยู่ใน 10.5.x อยู่แล้วครับ สำหรับใครที่อยากจะลงโดยไม่ต้องยุ่งกับอะไรสามารถเลือก <a href="http://www.mamp.info/en/index.php">MAMP</a>, <a href="http://www.apachefriends.org/en/xampp-macosx.html">XAMPP</a> or <a href="http://www.entropy.ch/software/macosx/php/">Marc Liyanage</a> ได้ครับ สำหรับใครที่ต้องการใช้ที่ติดกับ mac อยู่แล้วก็ตามมาเลยครับ</p>
<p><span id="more-127"></span></p>
<p style="text-align: left;"><strong>Enable Developer Tools<br />
<span style="font-weight: normal;">    คือการเปิดสิทธิให้สามารถใช้ root user ได้ เพื่อไม่ให้เกิดปัญหาเรื่องการใช้งานในการ access file permission  สำหรับวิธีการให้ไปที่ Menu -&gt;Go -&gt;Utilities-&gt; Directory Utility จากนั้นให้ทำการเลือก ปลดล็อกไฟล์ตรงรูปกุญแจแล้วจะมีการ Authenticate เพื่อตรวจสอบสิทธิการใช้ ให้เราใส่ password ลงไป หลังจากนั้นให้ไปที่ menu-&gt;edit-&gt;enable root users จะมีการถามพาสเวิร์ดให้เราใส่ password ของ root user ก้เป็นอันว่าเาร็จเรียบรอยในการแก้ให้สามารถเปิดสิทธิของ root ในการใช้งานเพื่อเพิ่มประสิทธิภาพในการพัฒนาโปรแกรม<br />
<a href="http://www.iearn.in.th/wp-content/uploads/2008/04/picture-12.png"><img class="alignnone size-medium wp-image-128" title="Utilities" src="http://www.jaideawhosting.com/nolifelover/wp-content/uploads/2008/04/picture-12-262x300.png" alt="utilities munu mac" width="262" height="300" /><img class="alignnone size-medium wp-image-129" title="picture-21" src="http://www.jaideawhosting.com/nolifelover/wp-content/uploads/2008/04/picture-21-300x173.png" alt="" width="300" height="173" /><img class="alignnone size-medium wp-image-130" title="picture-32" src="http://www.jaideawhosting.com/nolifelover/wp-content/uploads/2008/04/picture-32-300x180.png" alt="" width="300" height="180" /></a><a href="http://www.iearn.in.th/wp-content/uploads/2008/04/picture-41.png"><img class="alignnone size-medium wp-image-131" title="picture-41" src="http://www.jaideawhosting.com/nolifelover/wp-content/uploads/2008/04/picture-41-300x188.png" alt="" width="300" height="188" /></a><br />
 </span></strong></p>
<p style="text-align: left;"><strong>Editing Configuration Files</strong><br />
    ขั้นตอนนี้จะทำการแก้ไขไฟลื con-fig ของ apache ที่มีอยุ่เดิมโดยเราสามารถแก้ไขได้หลายวิธีหากใครถนัด nano vi ก็สามารถใช้ได้แ่หากต้องการ user interface แนะนำให้ใช้ <a href="http://www.barebones.com/">BBEdit</a> หรือ <a href="http://www.barebones.com/products/textwrangler/">TextWrangler</a>  สำหรับในที่นี้ผมใช้ TextMate ซึ่งไม่ฟรีเลยไม่แนะนำให้ใช้ครับ หลังจากนั้นให้เราไปที่ menu-&gt;Go -&gt; Go to Folder แล้วใส่ค่า /etc/apache/ เพื่อไปยัง directory นั้นเมื่อถึงแล้วจะเห็นไฟล์ไม่กี่ไฟล์ครัล แต่ที่สำคัญคือ httpd.conf ซึ่งเราต้องทำการแก้ไข โดยการเปิดด้วย editor ทีเรามีอยู่ครับ จากนั้นหาบรรทัดที่ชื่อ <br />
#LoadModule php5_module libexec/apache2/libphp5.so<br />
เอาเครื่องหมาย # ออกเป็นอันเรียบร้อยครับ <br />
<img class="alignnone size-medium wp-image-133" title="picture-61" src="http://www.jaideawhosting.com/nolifelover/wp-content/uploads/2008/04/picture-61-279x300.png" alt="" width="279" height="300" /><a href="http://www.iearn.in.th/wp-content/uploads/2008/04/picture-51.png"><img class="alignnone size-medium wp-image-132" title="picture-51" src="http://www.jaideawhosting.com/nolifelover/wp-content/uploads/2008/04/picture-51-300x186.png" alt="" width="300" height="186" /></a> </p>
<p style="text-align: left;"><strong>Starting Apache </strong><br />
    สำหรับการเริ่มเจ้า apache ที่เราได้ทำหารแก้ไขสามารถเข้าไปสั่งให้รันได้ที่ System references -&gt; Sharing -&gt; Web Sharing ก็เป็นอันเสร็จเรียบร้อยสำหรับการสั่งรันเจ้า apache หากใครที่ได้ทำการรันไว้แล้วสามารถใช้คำสั่ง<br />
$sudo apachetcl restart </p>
<p style="text-align: left;">เป็นอันว่าเรียบร้อยสำหรับการใช้ php บน mac ใช้งานได้</p>
<p style="text-align: left;">Link <a href="http://www.procata.com/blog/archives/2007/10/28/working-with-php-5-in-mac-os-x-105/">http://www.procata.com/blog/archives/2007/10/28/working-with-php-5-in-mac-os-x-105/</a></p>

<p class="sayac_bilgi">11 views</p>
]]></content:encoded>
			<wfw:commentRss>http://www.iearn.in.th/2008/04/29/working-with-php-in-mac-105x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>เริ่มต้นกับ Akelos PHP Framework</title>
		<link>http://www.iearn.in.th/2008/02/11/%e0%b9%80%e0%b8%a3%e0%b8%b4%e0%b9%88%e0%b8%a1%e0%b8%95%e0%b9%89%e0%b8%99%e0%b8%81%e0%b8%b1%e0%b8%9a-akelos-php-framework/</link>
		<comments>http://www.iearn.in.th/2008/02/11/%e0%b9%80%e0%b8%a3%e0%b8%b4%e0%b9%88%e0%b8%a1%e0%b8%95%e0%b9%89%e0%b8%99%e0%b8%81%e0%b8%b1%e0%b8%9a-akelos-php-framework/#comments</comments>
		<pubDate>Sun, 10 Feb 2008 18:34:32 +0000</pubDate>
		<dc:creator>nolifelover</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.jaideaw.com/nolifelover/?p=62</guid>
		<description><![CDATA[สวัสดีครับหลังจากผมได้ลองหา php framework ตัวใหม่ผมได้เจอเจ้า akelos หลายคนถามว่าทำไมผมถึงเลือกเจ้านี้ อาจจะมาจากผมเขียน ruby on rails อยู่เลยหา framework ตัวที่เขียนคล้ายกับ rails จึงเจอเจ้าตัวนี้สำหรับท่านใดสอนใจสามารถเข้าดูได้ที่ www.akelos.org สำหรับใครที่โหลดมาแล้วทำอะไรไม่ถูกลองอ่าน tutorail ดูครับหากไม่ได้ลองทำตามผมดูเลยครับ สำหรับตัวของ?server?ผมเลือกใช้??appserv หากใครไม่มีให้ลองเข้าไปที่ www.appservnetwork.com ดูครับ แล้วทำการติดตั้ง เมื่อเราติดตั้ง appserv แล้วต่อไปก็ไปโหลด http://www.akelos.org/download แล้วแตกไฟล์ zip?ออก?ในที่นี้ผมเอาไว้ที่?c:\framework?เนื่องจาก?appserv?ได้ทำการ?set?path?php?ให้แล้ว?จึงสามารถทำการติดตั้งได้เลยโดย 1.?c:\framework\php?./script/setup?-h?เพื่อดูตัวช่วยเราแล้วเราจะใช้?-d?ทำหารติดตั้ง 2.?c:\framework\php?./script/setup?-d c:\appserv\www\project &#60;&#60; ชื่อโปรแจคของเราและที่เราลง server ไว้คับ จากนั้นจะมี command ติดตั้งไฟล์ให้เรา จากนั้นลองดูโครงสร้างไฟล์ครับ work/ app/ &#60;&#60; The application including controllers, views, models and installers config/ &#60;&#60; Boring [...]]]></description>
			<content:encoded><![CDATA[<p>สวัสดีครับหลังจากผมได้ลองหา php framework ตัวใหม่ผมได้เจอเจ้า akelos หลายคนถามว่าทำไมผมถึงเลือกเจ้านี้ อาจจะมาจากผมเขียน ruby on rails อยู่เลยหา framework ตัวที่เขียนคล้ายกับ rails จึงเจอเจ้าตัวนี้สำหรับท่านใดสอนใจสามารถเข้าดูได้ที่<a HREF="http://www.akelos.org" TARGET="_blank"> www.akelos.org</a> สำหรับใครที่โหลดมาแล้วทำอะไรไม่ถูกลองอ่าน tutorail ดูครับหากไม่ได้ลองทำตามผมดูเลยครับ</p>
<p>สำหรับตัวของ?server?ผมเลือกใช้??appserv หากใครไม่มีให้ลองเข้าไปที่ <a HREF="http://www.appservnetwork.com">www.appservnetwork.com</a> ดูครับ แล้วทำการติดตั้ง เมื่อเราติดตั้ง appserv แล้วต่อไปก็ไปโหลด <a HREF="http://www.akelos.org/download">http://www.akelos.org/download</a>  แล้วแตกไฟล์ zip?ออก?ในที่นี้ผมเอาไว้ที่?c:\framework?เนื่องจาก?appserv?ได้ทำการ?set?path?php?ให้แล้ว?จึงสามารถทำการติดตั้งได้เลยโดย<span id="more-228"></span></p>
<p>1.?c:\framework\php?./script/setup?-h?เพื่อดูตัวช่วยเราแล้วเราจะใช้?-d?ทำหารติดตั้ง<br />
2.?c:\framework\php?./script/setup?-d c:\appserv\www\project &lt;&lt; ชื่อโปรแจคของเราและที่เราลง server ไว้คับ จากนั้นจะมี command ติดตั้งไฟล์ให้เรา<br />
จากนั้นลองดูโครงสร้างไฟล์ครับ</p>
<p>work/</p>
<blockquote><p>app/ &lt;&lt; The application including controllers, views, models and installers<br />
config/ &lt;&lt; Boring configuration files (will do the config via web)<br />
public/ &lt;&lt; This is the only folder made public under /www/htdocs/booklink softlink<br />
script/ &lt;&lt; Utils for code generation and running tests</p></blockquote>
<p>หลังจากนั้นสามารถลงมือพัฒนาได้แล้วครับ</p>

<p class="sayac_bilgi">62 views</p>
]]></content:encoded>
			<wfw:commentRss>http://www.iearn.in.th/2008/02/11/%e0%b9%80%e0%b8%a3%e0%b8%b4%e0%b9%88%e0%b8%a1%e0%b8%95%e0%b9%89%e0%b8%99%e0%b8%81%e0%b8%b1%e0%b8%9a-akelos-php-framework/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>PHP Framework</title>
		<link>http://www.iearn.in.th/2008/02/08/php-framework/</link>
		<comments>http://www.iearn.in.th/2008/02/08/php-framework/#comments</comments>
		<pubDate>Fri, 08 Feb 2008 07:25:10 +0000</pubDate>
		<dc:creator>nolifelover</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.jaideaw.com/nolifelover/?p=60</guid>
		<description><![CDATA[ส่วนภาษา PHP จะมี Framework ให้เลือกใช้เยอะหน่อย เนื่องจากเป็นที่นิยมในกลุ่มนักพัฒนาซอฟต์แวร์ค่อนข้างมาก เฉพาะ PHP Framework ที่พัฒนาเป็น MVC มีให้เลือกใช้งานไม่ต่ำกว่า ๔๐ ตัวเข้าไปแล้ว (ดูเพิ่มเติมที่ phpwact.org) ซึ่งแต่ละตัวก็มีจุดเด่น-จุดด้อยต่างออกไป ลองรวบรวม PHP Framework ที่หมายตาสำหรับการใช้งานไว้ชุดหนึ่ง (ตามลิสต์ด้านล่าง) บวกกับหมายเหตุไว้นิดหน่อย จะได้เตือนความจำเมื่อต้องการหยิบไปใช้งาน PHP Framework List Akelos AJAX Included (Prototype, script.aculo.us) Port มาจาก Ruby on Rails (RoR) CakePHP AJAX Included (Prototype, script.aculo.us) MVC Design Pattern CodeIgniter AJAX Framework Extension Multilingual Support MVC Design Pattern [...]]]></description>
			<content:encoded><![CDATA[<div class="bText">
<p>ส่วนภาษา PHP จะมี Framework ให้เลือกใช้เยอะหน่อย เนื่องจากเป็นที่นิยมในกลุ่มนักพัฒนาซอฟต์แวร์ค่อนข้างมาก เฉพาะ PHP Framework ที่พัฒนาเป็น MVC มีให้เลือกใช้งานไม่ต่ำกว่า ๔๐ ตัวเข้าไปแล้ว (ดูเพิ่มเติมที่ <a href='http://www.phpwact.org/php/mvc_frameworks' target='_blank'>phpwact.org</a>) ซึ่งแต่ละตัวก็มีจุดเด่น-จุดด้อยต่างออกไป</p>
<p><--!more--></p>
<p>ลองรวบรวม PHP Framework ที่หมายตาสำหรับการใช้งานไว้ชุดหนึ่ง (ตามลิสต์ด้านล่าง) บวกกับหมายเหตุไว้นิดหน่อย จะได้เตือนความจำเมื่อต้องการหยิบไปใช้งาน</p>
<table width='400' align='center'>
<tr bgcolor='#E3ECDF'>
<td><center><b>PHP Framework List</b></center></td>
</tr>
</table>
<table width='400' align='center'>
<tr bgcolor='#FFF1D7' valign='top'>
<td width='30%'><a href='http://www.akelos.org/' target='_blank'>Akelos</a></td>
<td width='70%'>
			AJAX Included (Prototype, script.aculo.us)<br />
			Port มาจาก Ruby on Rails (RoR)
		</td>
</tr>
<tr bgcolor='#E3ECDF' valign='top'>
<td width='30%'><a href='http://www.cakephp.org' target='_blank'>CakePHP</a></td>
<td width='70%'>
			AJAX Included (Prototype, script.aculo.us)<br />
			MVC Design Pattern
		</td>
</tr>
<tr bgcolor='#FFF1D7' valign='top'>
<td width='30%'><a href='http://www.codeigniter.com' target='_blank'>CodeIgniter</a></td>
<td width='70%'>
			AJAX Framework Extension<br />
			Multilingual Support<br />
			MVC Design Pattern<br />
			ขนาดกระทัดรัด
		</td>
</tr>
<tr bgcolor='#E3ECDF' valign='top'>
<td width='30%'><a href='http://ez.no/ezcomponents' target='_blank'>eZcomponents</a></td>
<td width='70%'>
			มี Library ที่เอื้อต่อการพัฒนา CMS
		</td>
</tr>
<tr bgcolor='#FFF1D7' valign='top'>
<td width='30%'><a href='http://phpontrax.com' target='_blank'>PHP on TRAX</a></td>
<td width='70%'>
			MVC Design Pattern<br />
			Base on Ruby on Rails (RoR)
		</td>
</tr>
<tr bgcolor='#E3ECDF' valign='top'>
<td width='30%'><a href='http://www.projectzero.org' target='_blank'>PHP Project Zero</a></td>
<td width='70%'>
			สนับสนุนโดย IBM
		</td>
</tr>
<tr bgcolor='#FFF1D7' valign='top'>
<td width='30%'><a href='http://www.phpopenbiz.org' target='_blank'>PHPOpenBiz</a></td>
<td width='70%'>
			เหมาะสำหรับ E-Business App ใช้ XML ในการสร้าง App มี Eclipse Plugin ให้ใช้งาน
		</td>
</tr>
<tr bgcolor='#E3ECDF' valign='top'>
<td width='30%'><a href='http://www.pradosoft.com' target='_blank'>Prado</a></td>
<td width='70%'>
			AJAX Included (Active Controls)<br />
			Multilingual I18N,L10N<br />
			มี Library ของ Web Services (SOAP, WSDL)<br />
			มี demo, เอกสารให้ศึกษาเยอะดี
		</td>
</tr>
<tr bgcolor='#FFF1D7' valign='top'>
<td width='30%'><a href='http://qcodo.com' target='_blank'>Qcodo</a></td>
<td width='70%'>
			AJAX Built-in, <br />
			Code genrated forms, NASA ใช้งาน
		</td>
</tr>
<tr bgcolor='#E3ECDF' valign='top'>
<td width='30%'><a href='http://seagullproject.org' target='_blank'>Seagull</a></td>
<td width='70%'>
			MVC Design Pattern
		</td>
</tr>
<tr bgcolor='#FFF1D7' valign='top'>
<td width='30%'><a href='http://www.symfony-project.org/' target='_blank'>Symfony</a></td>
<td width='70%'>
			MVC Design Pattern
		</td>
</tr>
<tr bgcolor='#E3ECDF' valign='top'>
<td width='30%'><a href='http://www.phpwact.org' target='_blank'>Web Application Component Toolkit</a></td>
<td width='70%'>
			MVC Design Pattern
		</td>
</tr>
<tr bgcolor='#FFF1D7' valign='top'>
<td width='30%'><a href='http://framework.zend.com' target='_blank'>Zend</a></td>
<td width='70%'>
			AJAX Included (various libraries)
		</td>
</tr>
<tr bgcolor='#E3ECDF' valign='top'>
<td width='30%'><a href='http://zoopframework.com' target='_blank'>Zoop</a></td>
<td width='70%'>
			MVC Design Pattern<br />
			มี GUI Control (เป็นลักษณะ Web Control)
		</td>
</tr>
<tr bgcolor='#FFF1D7' valign='top'>
<td width='30%'><a href='http://www.silverstripe.com' target='_blank'>Silverstripe</a></td>
<td width='70%'>
			AJAX Included (Prototype, script.aculo.us)<br />
			ตัว demo น่าสนใจ (<a href='http://demo.silverstripe.com/' target='_blank'>demo site</a>)
		</td>
</tr>
</table>
<p><b>อ้างอิง ข้อมูลเพิ่มเติม</b><br />
- <a href='http://en.wikipedia.org/wiki/Comparison_of_web_application_frameworks' target='_blank'>Wikipedia &#8211; Comparison of web application frameworks</a><br />
- <a href='http://www.phpit.net/demo/framework%20comparison/chart.php' target='_blank'>phpit.net &#8211; Framework Comparison Chart</a><br />
- <a href='http://wiki.nectec.or.th/giti/Knowledge/RubyOnRails' target='_blank'>Nectec &#8211; Ruby on Rail</a> ผู้ที่ต้องการเรียนรู้ Ruby ที่นี่เหมาะมากสำหรับการเริ่มต้น<br />
- <a href='http://www.phpzealots.com' target='_blank'>phpzealots</a> <br />
- <a href='http://www.phpwact.org/php/mvc_frameworks' target='_blank'>phpwact.org</a></p>
</div>

<p class="sayac_bilgi">39 views</p>
]]></content:encoded>
			<wfw:commentRss>http://www.iearn.in.th/2008/02/08/php-framework/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>โปรเจคใหม่โปรแกรมดูผลการเรียน</title>
		<link>http://www.iearn.in.th/2007/05/17/aaaaeaeaaaaauaoaaaoa/</link>
		<comments>http://www.iearn.in.th/2007/05/17/aaaaeaeaaaaauaoaaaoa/#comments</comments>
		<pubDate>Thu, 17 May 2007 11:52:42 +0000</pubDate>
		<dc:creator>nolifelover</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.jaideaw.com/nolifelover/archives/6</guid>
		<description><![CDATA[สัวสดีครับวันนี้ผมจะมาเล่าโปรเจคใหม่ให้ฟังครับพอดีนั่งนึกๆอยู่เลยมาไปเดียใหม่มานำเสนอกัยสาธารณชนกันเลย สำหรับโปรแจคใหม่เนี่ยเพื่อโรงเรียนอันเป็นที่รักเลยครับ นั้นคือโรงเรียนเมืองถลางครับ กะว่าจะจัดทำ CMS ที่ให้บริการดูเกรดหรือผลการเรียนเด็กนักเรียนโดยโปรแกรม student 2544 ครับ ซึ่งพอหาในเว็บก็เจอเว็บหนึ่งน่าสนมากครับนั้นคือ http://www.ngwk.ac.th/ เว็บโรงเรียนงำเมืองวิทยาคม จากนั้นเห็นด้านล่าง Power By MyStudent 0.5 เสร็จโจรครับเพราะมีลิงค์ด้วยดูไปดูมาอ้าวเขาพัฒนาระบบเรียนร้อยแล้ว อุๆๆๆ เลยมีโค้ดมานั่งดูแล้วดีใจจังเลยอะโย้วๆๆ เลยจับมาเลยอะ 448 views]]></description>
			<content:encoded><![CDATA[<p>สัวสดีครับวันนี้ผมจะมาเล่าโปรเจคใหม่ให้ฟังครับพอดีนั่งนึกๆอยู่เลยมาไปเดียใหม่มานำเสนอกัยสาธารณชนกันเลย สำหรับโปรแจคใหม่เนี่ยเพื่อโรงเรียนอันเป็นที่รักเลยครับ นั้นคือโรงเรียนเมืองถลางครับ กะว่าจะจัดทำ CMS ที่ให้บริการดูเกรดหรือผลการเรียนเด็กนักเรียนโดยโปรแกรม student 2544 ครับ ซึ่งพอหาในเว็บก็เจอเว็บหนึ่งน่าสนมากครับนั้นคือ<br />
<a href="http://www.ngwk.ac.th/">http://www.ngwk.ac.th/</a> เว็บโรงเรียนงำเมืองวิทยาคม<br />
จากนั้นเห็นด้านล่าง Power By <a href="http://www.krupong.org/index.php?option=com_remository&#038;Itemid=31&#038;func=showdown&#038;id=25">MyStudent 0.5</a> เสร็จโจรครับเพราะมีลิงค์ด้วยดูไปดูมาอ้าวเขาพัฒนาระบบเรียนร้อยแล้ว อุๆๆๆ เลยมีโค้ดมานั่งดูแล้วดีใจจังเลยอะโย้วๆๆ เลยจับมาเลยอะ</p>

<p class="sayac_bilgi">448 views</p>
]]></content:encoded>
			<wfw:commentRss>http://www.iearn.in.th/2007/05/17/aaaaeaeaaaaauaoaaaoa/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

