<?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://blog.sudej.com/category/programming/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sudej.com</link>
	<description>ก็เวลายังไม่เดินเป็นเส้นตรง แล้วความรักที่มั่นคงจะมีจริงไหม?</description>
	<lastBuildDate>Tue, 31 Jan 2012 08:52:18 +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>Class Delete MySQL</title>
		<link>http://blog.sudej.com/2009/07/class-delete-mysql/</link>
		<comments>http://blog.sudej.com/2009/07/class-delete-mysql/#comments</comments>
		<pubDate>Mon, 13 Jul 2009 12:14:40 +0000</pubDate>
		<dc:creator>สุดเดช</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[class]]></category>
		<category><![CDATA[delete]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[table]]></category>

		<guid isPermaLink="false">http://blog.sudej.com/?p=751</guid>
		<description><![CDATA[จากครั้งที่แล้วมา ผมเคยได้ เสนอ การใช้ class เพื่อติดต่อฐานข้อมูล จากลิงค์นี้น่ะคับ class db วันนี้ผมจะนำเสนอ เกี่ยวกับการ ลบ ข้อมูลในตารางออก โดย ที่มี ID เกี่ยวข้องกัน 1 : 1 relation มาดูโค้ดของ การลบ ก่อนคับ โค้ดตรงนี้ ให้นำ ไปใส่ไว้ใน class อันที่แล้วก่อนน่ะคับ class db จากนั้นก็มาเขียนโค้ดในหน้าใหม่ คับ แค่เพียงเท่านี้ท่านก็จะ สามารถลบ ข้อมูลที่มี ความสัมพันธ์ แบบ 1:1 ได้อย่างรวดเร็วคับ ไม่ว่าจะมี กี่ ตาราง(table)ก็ตาม ข้อมูลเผ่ยแพร่ได้คับ ขอเครดิตด้วย ขอรับ]]></description>
		<wfw:commentRss>http://blog.sudej.com/2009/07/class-delete-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>php read file and directory</title>
		<link>http://blog.sudej.com/2009/06/php-read-file-and-directory/</link>
		<comments>http://blog.sudej.com/2009/06/php-read-file-and-directory/#comments</comments>
		<pubDate>Sat, 27 Jun 2009 16:22:01 +0000</pubDate>
		<dc:creator>สุดเดช</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[file]]></category>

		<guid isPermaLink="false">http://blog.sudej.com/?p=723</guid>
		<description><![CDATA[วันนี้ก็มาแจกโค้ดกันอีกแ้ล้วน่ะคับพี่น้อง เรื่องของการ ใช้ PHP เข้าไป อ่านไฟล์ และ Directory น่ะคับ โ้ค้ดก็ตามนี้คับผม]]></description>
		<wfw:commentRss>http://blog.sudej.com/2009/06/php-read-file-and-directory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Class insert comma</title>
		<link>http://blog.sudej.com/2009/04/class-insert-comma/</link>
		<comments>http://blog.sudej.com/2009/04/class-insert-comma/#comments</comments>
		<pubDate>Thu, 30 Apr 2009 14:57:26 +0000</pubDate>
		<dc:creator>สุดเดช</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[class]]></category>

		<guid isPermaLink="false">http://blog.sudej.com/?p=587</guid>
		<description><![CDATA[คลาสนี้จะรับค่าของ อาร์เรย์เข้ามาหลาย ๆ จำนวนแล้ว ตัวสุดท้ายจะไม่มีคอมม่า ตัวอย่างข้อมูล : ABCD result : A,B,C,D]]></description>
		<wfw:commentRss>http://blog.sudej.com/2009/04/class-insert-comma/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>class upload file</title>
		<link>http://blog.sudej.com/2009/03/class-upload-file/</link>
		<comments>http://blog.sudej.com/2009/03/class-upload-file/#comments</comments>
		<pubDate>Fri, 06 Mar 2009 06:57:12 +0000</pubDate>
		<dc:creator>สุดเดช</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[class]]></category>

		<guid isPermaLink="false">http://blog.sudej.com/?p=459</guid>
		<description><![CDATA[วันนี้มาแจก อีกแล้วครับ คลาส อัพโหลดไฟล์ ดูโค้ดและ ก็ภาพการทำงานล่ะกันน่ะคับ เครดิต สุดเดช ดอทคอม ตัวพ่อ www.php.net]]></description>
		<wfw:commentRss>http://blog.sudej.com/2009/03/class-upload-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Crontab backup database</title>
		<link>http://blog.sudej.com/2009/02/crontab-backup-database/</link>
		<comments>http://blog.sudej.com/2009/02/crontab-backup-database/#comments</comments>
		<pubDate>Fri, 27 Feb 2009 08:16:55 +0000</pubDate>
		<dc:creator>สุดเดช</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[crontab]]></category>

		<guid isPermaLink="false">http://blog.sudej.com/?p=442</guid>
		<description><![CDATA[จากเมื่อวาน &#60;&#60; คลิ๊กเพื่อดูเรื่องที่ต่อเนื่อง วันนี้จะบอกวิธีการติดตั้ง Crontab กันน่ะคับ เริ่มจากการสร้างไฟล์ Crontab ขึ้นมาก่อนน่ะคับ ความหมายของมันก็คือ ทุก ๆ วัน เวลา ตี 4.15 ให้ทำการ รัน สริปต์ ที่ชื่อว่า rbackup.php เมื่อสร้างเสร็จแล้ว คราวนี้ก็มาดูผลการทำงาน ของ script กันน่ะคับ ขอบคุณทุกท่าน ที่ดูแล้ว จะนำไปให้ให้เกิดประโยชน์ต่อไป ขอบคุณทุกท่าน ที่เอาไปใช้แล้วให้เครดิตผม กันลืม sp thx[1]: NECTEC sp thx[2]: Thai Admin]]></description>
		<wfw:commentRss>http://blog.sudej.com/2009/02/crontab-backup-database/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>PHP Script Backup Database</title>
		<link>http://blog.sudej.com/2009/02/php-script-backup-database/</link>
		<comments>http://blog.sudej.com/2009/02/php-script-backup-database/#comments</comments>
		<pubDate>Thu, 26 Feb 2009 13:17:59 +0000</pubDate>
		<dc:creator>สุดเดช</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[crontab]]></category>

		<guid isPermaLink="false">http://blog.sudej.com/?p=436</guid>
		<description><![CDATA[วันนี้ผมจะมานำเสนอ การ Backup database โดยใช้ php น่ะคับ เป็นการ backup ข้อมูลผ่าน สริปต์ โดยใช้ ตัว crontab ใน Linux เป็นตัวเรียก สริปต์นี้ ใ้ห้ทำงานน่ะคับ วันนี้จะนำเสนอ ในเรื่องของ สริปต์กันก่อนน่ะคัีบ ผมได้ เรียนรู้บางคำสั่ง จาก อาจารย์ เปิ้ล แอบ เซิฟ  และ การโค้ดดิ้ง แนะแนวโดยพี่แม๊กมอไซค์คับ โดยการ backup ในครั้งนี้ เมื่อทำการแบ๊กอัพ เสร็จแล้ว มันจะส่งเมล์ไปบอก ยัง ผู้ดูแลระบบ ในครั้งต่อไปผมจะ นำ คำสั่ง พร้อมกับ ภาพ มาประกอบให้ดูกันน่ะคับ ขอบคุณทุกท่าน ที่ดูแล้ว จะนำไปให้ให้เกิดประโยชน์ต่อไป ขอบคุณทุกท่าน ที่เอาไปใช้แล้วให้เครดิตผม สังคมน่าอยู่เพราะว่ามีคนมีน้ำใจ sp thx[1]: NECTEC [...]]]></description>
		<wfw:commentRss>http://blog.sudej.com/2009/02/php-script-backup-database/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>TRUNCATE TABLES ALL</title>
		<link>http://blog.sudej.com/2009/02/truncate-tables-all/</link>
		<comments>http://blog.sudej.com/2009/02/truncate-tables-all/#comments</comments>
		<pubDate>Thu, 19 Feb 2009 12:25:45 +0000</pubDate>
		<dc:creator>สุดเดช</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[manage]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[truncate]]></category>

		<guid isPermaLink="false">http://blog.sudej.com/?p=427</guid>
		<description><![CDATA[เมื่อผู้พัฒนา เรื่องเข้าใจ ในการทำงานของ คลาส ดาต้าเบส แล้ว ต่อจากนี้ผมจะเอาตัวที่จัดการ การทำงาน ของ MySQL ตัวหนึ่งมาให้รู้กัน นั้นคือ คำสั่ง TRUNCATE นั้นเองการทำงานของคำสั่งนี่คือการทำให้ Table ที่ทุกสั่งนั้น จะเป็น EMPTY ทั้งหมด ในโปรแกรม phpmyadmin นั้นมีอยู่แล้ว แต่ว่า ผมอยากเขียนขึ้นมาใหม่อ่ะ ขี้เกียจไปเข้ามันช้า มาดูการเขียนกันคับ รูปแบบคำสั่งของมันจะเป็นแบบนี้คับ และ เพิ่มเติมให้อีกอันน่ะคับ นั้นก็คือตัว SHOW TABLES; TRUNCATE TABLE ชื่อเทเบิ้ล; ex TRUNCATE TABLE tbl_model; งั้นมาดูโค้ดที่ผมเขียนกันเลยน่ะคับ ขั้นตอนแรกก็ include ไฟล์ที่ชื่อว่า class.mysql.php เข้ามาก่อนน่ะคับ แ้ล้วไปตั้ง ค่า config ที่ตัว constant กันก่อนคับ ลอง ๆ หาดู [...]]]></description>
		<wfw:commentRss>http://blog.sudej.com/2009/02/truncate-tables-all/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>database class</title>
		<link>http://blog.sudej.com/2009/02/database-class/</link>
		<comments>http://blog.sudej.com/2009/02/database-class/#comments</comments>
		<pubDate>Thu, 19 Feb 2009 11:29:33 +0000</pubDate>
		<dc:creator>สุดเดช</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[class]]></category>
		<category><![CDATA[database]]></category>

		<guid isPermaLink="false">http://blog.sudej.com/?p=424</guid>
		<description><![CDATA[เขียนคลาสขึ้นมาเพื่อควบคุมการใช้งาน DATABASE ได้อย่างมีประสิทธิ์ภาพ ขอขอบคุณ พี่แม๊กมอไซค์ สำหรับโค้ดบางส่วนในการพัฒนางานในครั้งนี้ จะมีงานต่อจากนี้ ให้ผู้ที่จะใช้ในการพัฒนา ตั้งชื่อไฟล์นี้ไว้ว่า class.mysql.php คับผม]]></description>
		<wfw:commentRss>http://blog.sudej.com/2009/02/database-class/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>การตั้งค่า utf8</title>
		<link>http://blog.sudej.com/2009/01/%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%95%e0%b8%b1%e0%b9%89%e0%b8%87%e0%b8%84%e0%b9%88%e0%b8%b2-utf8/</link>
		<comments>http://blog.sudej.com/2009/01/%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%95%e0%b8%b1%e0%b9%89%e0%b8%87%e0%b8%84%e0%b9%88%e0%b8%b2-utf8/#comments</comments>
		<pubDate>Wed, 21 Jan 2009 11:33:56 +0000</pubDate>
		<dc:creator>สุดเดช</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[utf-8]]></category>

		<guid isPermaLink="false">http://blog.sudej.com/?p=248</guid>
		<description><![CDATA[สำหรับท่านที่ เปลี่ยนมาใช้ utf-8 แล้วเกิดปัญหา เวลา Browser เปิดข้อมูลแล้วเกิดปัญหาตัวอักษรไม่แสดงผล ตามที่เราตั้งค่าไว้ ปัญหามันเกิดมาจาก ตัว Content-Type:text/html; ไม่ยอมเรียกค่า ปกติมันออกมา เราก็มีวิธีแก้ปัญหาดังนี้คับ สำหรับคนใช้ Linux fedora, redhat น่ะคับ อับดับแรกก็ไปแก้ไข ไฟล์ที่ชื่อว่า httpd.conf สำหรับคนที่ไม่สามารถแก้ไขได้เนื่องจากท่านไม่ Admin ระบบ ก็ให้เขียนไฟล์ .htaccess หรือ htaccess.txt แล้วให้ upload ไปยังที่ directory ที่เก็บไฟล์ไว้ของผมอยู่ที่ htdocs คับ ซึ่งของผมเช่า host ไว้ที่ www.appservhosting.com จารย์เปิ้ล แห่ง appservnetwork.com ขั้นตอนสุดท้ายมันยังไม่มาอีก นี้เลยคับ ระบุตัวนี้ไว้ที่หน้าที่จะแสดงเลยคับ หรือใส่ตัว meta กำหนด content-type น่ะคับ ไม่ออกให้ตบ ลองดูคับ สุดเดช แห่ง [...]]]></description>
		<wfw:commentRss>http://blog.sudej.com/2009/01/%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%95%e0%b8%b1%e0%b9%89%e0%b8%87%e0%b8%84%e0%b9%88%e0%b8%b2-utf8/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Array 2 Dimensions</title>
		<link>http://blog.sudej.com/2009/01/array-2-dimensions/</link>
		<comments>http://blog.sudej.com/2009/01/array-2-dimensions/#comments</comments>
		<pubDate>Thu, 15 Jan 2009 13:31:52 +0000</pubDate>
		<dc:creator>สุดเดช</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[array]]></category>

		<guid isPermaLink="false">http://blog.sudej.com/?p=215</guid>
		<description><![CDATA[วันนี้ผมจะพูดถึงเรื่องการสร้าง อาร์เรย์ สองมิติคับ เป็นการนำเอาค่าที่ใกล้เคียงกันเข้ามาเก็บไว้ในอาร์เรย์ แล้ว ให้ตัวโปรแกรมแปลงเป็นข้อมูลที่มีดังกล่าว แสดงผลออกมา คราวนี้ผมจะ นำเอาโค้ดมาใส่ไว้ด้วยน่ะคับ ขั้นตอนแรก นำตัวแปล อาร์เรย์มากำหนด ไว้ก่อนคับ ดังภาพ เมื่อได้แล้วเราก็ไปสร้างคลาสกันเลยคับ ภาพ แล้วผลก็จะออกมาดังภาพ สุดท้ายนี้คับ ตามคำสั่งนี้คับ]]></description>
		<wfw:commentRss>http://blog.sudej.com/2009/01/array-2-dimensions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
