Blog บทความ ความรู้ ประสบการณ์ หรือแปล เกี่ยวกับ PHP และเทคโนโลยีที่เกี่ยวข้อง นอกจากนี้ยังมี php forum ถาม-ตอบ ทุกคำถาม จะมีคำตอบ ... ที่นี่ - Blog and forum from the PHP zealots and PHP user groups in Thailand

PHP 5.3.0 Released!

Version: 
5.3.0
Released Date: 
2009/06/30

วันนี้ (2009-06-30) ทีมพัฒนา PHP ภูมิใจนำเสนอ PHP 5.3.0 release ล่าสุดและเป็น major change ของซีรี่ส์ 5.X ด้วย ในเวอร์ชั่นใหม่นี้มี features ใหม่ๆ และ bug fix เพียบ

ฟีเจอร์หลักๆ ใน PHP 5.3.0 ประกอบด้วย:

YUI 3.0.0 beta 1

Version: 
3.0.0 beta1
Released Date: 
2009/06/24

รายละเอียด ... อืิม  มันเขียนยาก น่ะ

เ้ข้าไปดูจาก เว็บเลยแล้วกันคับ

เวอร์ชัน releases
http://yuiblog.com/blog/2009/06/24/yui3b1/

ตัวอย่างนะ
http://developer.yahoo.com/yui/3/examples/

 

วีดีโอ คร่า่วๆ

 

PHP 5.2.10 Released

Version: 
5.2.10
Released Date: 
2009/06/18

The PHP development team would like to announce the immediate availability of PHP 5.2.10. This release focuses on improving the stability of
the PHP 5.2.x branch with over 100 bug fixes, one of which is security related. All users of PHP are encouraged to upgrade to this release.

Security Enhancements and Fixes in PHP 5.2.10:

       Fixed bug #48378 (exif_read_data() segfaults on certain corrupted .jpeg files).

Key enhancements in PHP 5.2.10 include:

       Added "ignore_errors" option to http fopen wrapper.
       Fixed memory corruptions while reading properties of zip files.
       Fixed memory leak in ob_get_clean/ob_get_flush.
       Fixed segfault on invalid session.save_path.
       Fixed leaks in imap when a mail_criteria is used.
       Changed default value of array_unique()'s optional sorting type parameter back to SORT_STRING to fix backwards compatibility breakage introduced in PHP 5.2.9.
       Fixed bug #47940 (memory leaks in imap_body).
       Fixed bug #47903 ("@" operator does not work with string offsets).
       Fixed bug #47644 (Valid integers are truncated with json_decode()).
       Fixed bug #47564 (unpacking unsigned long 32bit big endian returns wrong result).
       Fixed bug #47365 (ip2long() may allow some invalid values on certain 64bit systems).
       Over 100 bug fixes.
 

Design Pattern :: Strategy Pattern

Strategy Pattern เป็น design pattern ที่เอาไว้ใช้ตอนที่เราต้องเลือกทำสิ่งหนึ่ง แต่วิธีการหลากหลายออกไป เช่น เราจะสร้างระบบแจ้งเตือน user ซึ่งสามารถเตือนได้ทั้งแบบ e-mail sms และ fax pattern นี้ต้องการ interface ตัวนึง เราให้ชื่อว่า notifier คลาสที่ implements ก็จะมี EmailNotifier, SMSNotifier และ FaxNotifier ซึ่งเป็นวิธีการแจ้งเตือน user นั่นเอง โค้ด

 <?php
 
class User {
	public function getNotifier() {
		return 'sms';
	}
}
 
interface notifier {
	public function notify();
}
 
class EmailNotifier implements notifier {
	public function notify() {
		// Notify by Email
	}
}
 
class SMSNotifier implements notifier {
	public function notify() {
		// Notify by SMS
	}
}
 
class FaxNotifier implements notifier {
	public function notify() {
		// Notify by Fax
	}
}
 
$user = new User();
$user_notifier = $user->getNotifier();
 
switch ($user_notifier) {
	case 'email':
		$notifier = new EmailNotifier();
		break;
	case 'sms':
		$notifier = new SMSNotifier();
		break;
	case 'fax':
		$notifier = new FaxNotifier();
		break;
}
 
$notifier->notify();

JSON หรือ XML ดี ???

JSON และ XML เราควรจะใช้ในสถานการณ์อย่างไรดี ??

ขอความรู้ และความเห็นหน่อยครับ :D

YUI 2.7.0 Released

Version: 
2.7.0
Released Date: 
2009/02/18

สำหรับ เวอร์ชันใหม่ 2.7.0 นี้ มีคอมโำำพเนนต์ใหม่ ด้วยคือ

StyleSheet Utility

คุณสมบัติเด่นๆ ก็เป็นลักษณะการทำ dynamic css เราสามารถปรับ หรือเปลี่ยนรูปแบบของ element ต่างๆ ได้ทันที ( create and modify CSS stylesheets on the fly. ) โดยไม่ต้อง รีโหลดหน้่านั้น ขึ้นมาใหม่

นอกนั้น ก็ มีการปรับปรุงและเพิ่มเติมอื่นๆ เช่น

- 3 คอมโพเนนต์ที่ปรับจาก เวอร์ชัน เบต้า ได้แก่

 

- รองรับการใช้งานกับ IE8

- ฟิกบัก มากกว่า 180 จุด

นอกจากจากนี้ ยังมีการ อับเดท แล้วก็ เพิ่้มเติมตัวอย่างเป็น กว่า 300 ตัวอย่างอย่างการใช้งาน

 สำหรับ ข้อมูลเพิ่มเติม อื่นๆ นอกจาก หาได้ที่

การตั้งชื่อตาราง ???

ตอนนี้คุณตั้งชื่อตารางของคุณอย่างไร??? province หรือ provinces ???

ผมสงสัยตัวเองทุกครั้งที่จะตั้งชื่อตาราง แต่ว่าก็ยังไม่เคยได้ข้อสรุปซักที ว่าจะ province หรือ provinces ทำให้ใน database ของผมก็จะมีทั้ง province และ provinces (คือบางตารางเติม s บางตารางไม่เติม s) วันนี้ก็เลยลองถามเพื่อนๆ ซิว่า เขาตั้งยังงัยกัน

ถามไปถามมา บางคนก็ province บางคนก็ provinces อยู่ดี ... จึงไปคุยกับ tongdee แล้ว tongdee ก็ไป google ดู ... อ้าว เจอเข้าจังๆ ที่: http://www.ss64.com/orasyntax/naming.html
Table names are plural, field name is singular*
If the table name contains serveral words, only the last one should be plural:
APPLICATIONS
APPLICATION_FUNCTIONS
APPLICATION_FUNCTION_ROLES

สรุป: หลักสากลนิยม เขาจะตั้งเป็น: field province_id ในตาราง provinces :)

**จบ**


Zend Framework v1.7.4 is released

Version: 
1.7.4
Released Date: 
2009/02/02

phpMyAdmin 3.1.2

Version: 
3.1.2
Released Date: 
2009/01/19
Changes:
  • bug #1253252 [display] Can't NULL a column with relation defined
  • bug #2009500 [SQL] Small improvements in generated SQL (partial fix)
  • bug #1963184 [export] YAML export improvement
    • [lang] Dutch update
  • patch #2407785 [cleanup] ereg*() deprecated in PHP 5.3
  • bug #2417058 [properties] Edit fields: losing auto-increment setting
  • patch #2444082 [changelog] changelog.php linkifies one link wrong
  • bug #2363653 [properties] Various problems with table structure
  • bug [display] BIT field contents disappear when edited
    • [lang] Czech update
  • bug #2461735 [operations] Table operations adds "row_format"
  • bug #2445213 [export] Commas for CSV Excel 2008 for Mac
  • bug #2397877 [core] ForceSSL and http auth_type
  • bug #2473127 [display] Deleting rows displays tbl structure, not contents
  • patch #2478940 [core] PHP 5.2+ warning does not work
  • bug #2416418 [privileges] Escaping special characters
(เอ่อร์ ... ผม copy มาวางเลยน้ะคับ...)

Dojo 1.2 Final Release

Version: 
1.2
Released Date: 
2008/10/07

ออกตามมาติดๆ ไม่ห่าง YUI ซักเท่าไหร่ ถ้ายังไง ลองเอาไปเล่นๆ ดูนะคับ
เห็นความสามารถบางอย่าง เนี่ยก็ น่าลองเล่นดูเหมือนกัน นะ

สำหรับแฟนพัีนธ์แท้ ZF เนี่ยคงถูกใจพอสมควร
สำหรับ ความสามารถ ต่างๆ ที่เพิ่มเติมแล้วก็ ปรับปรุง ในเวอร์ชัน นี้ คร่าวๆ ก็ ดังตัวอย่างล่ะครับ

ลองเล่นแล้วก็ อย่าลืมเอามาเล่าให้ฟังบ้างนะครับ

New Datastores

  • dojox.data.JsonRestStore
  • dojox.data.CouchDBRestStore
  • dojox.data.GoogleFeedStore: A Google AJAX API powered data store for retrieving RSS and Atom feeds from Google.
  • dojox.data.GoogleSearchStore: Data stores to interface Google’s AJAX search services.
  • dojox.data.PersevereStore: dojox.data.PersevereStore is an extension of JsonRestStore to Persevere’s special features.
  • dojox.data.S3Store: an extension of JsonRestStore to handle Amazon’s S3 service using JSON data

New Projects in DojoX

dojox.analytics.Urchin

  • A Google-analytics helper, which supports lazy-loading the Google Analytics API at any point during a page lifecycle.
  • Allows you to post-onload include Google Analytics helper, and track Ajax-y pages via a simple API, with a very small overhead.

dojox.av



©2007-2009 PHPZealots.com. All right reserved.
Syndicate content