Zend Framework 0.6 Preview Release 1

Posted by AnnoMundi on December 20, 2006

ช่วงนี้ไม่ได้อัพบล็อกเลยเพราะมัวเขียนโปรแกรมและศึกษาเกี่ยวกับ Javascript ซึ่งต้องใช้
ในการทำเว็ปด้วย เลยยุ่งๆ แต่เมื่อวานลองเข้าไปดูในเว็ป Zend Framework ก็พบว่ามันได้
ออกเวอร์ชั่นใหม่มาแล้ว – -” เว็ปที่ผมทำอยู่นั้นใช้เวอร์ชั่น 0.2 Preview ก็เลยจัดการอัพเกรด
ซึ่งหลังจากอัพเกรดก็มีต้องแก้โค้ด 2-3 ที่เพราะบางคลาสมีการเปลี่ยนแปลงไปจากเดิมพอสมควร
นอกจากคลาสเดิมที่มีการปรับปรุงเพิ่มเติมก็มี component ใหม่ๆเพิ่มเข้ามา รายละเอียดก็
ตามด้านล่างเลยครับ

  • Lucene-compatible search engine query language
  • New Authentication component and improved ACL design
  • Improved MVC implementation and documentation
  • Improved Session-handling design
  • Integrated Google Data API Client
  • Improved XmlRpc client and server
  • Improved Http Client design, supporting cookies and proxy servers
  • New Web Services client for Simpy social bookmarking
  • Emerging components for I18N, Getopt, Mail folders, and many other enhancements to components and documentation.

นอกจากที่ Zend จะออก Zend Framework เวอร์ชั่นใหม่แล้วก็ยังออก Zend Google Data
Client Preview 0.6.0 มาด้วย แต่ตัวหลังนี้ผมยังไม่ได้ลองใช้เลย

ข้อเสียของการใช้ Zend Framework ทำเว็ปในตอนนี้คงเป็นเรื่องที่ตัว Framework มันยังไม่นิ่ง
ทำให้เวลา Zend ออกเวอร์ชั่นใหม่มาเราก็ต้องคอยแก้ไขโค้ดตามอยู่เรื่อยๆ แต่ข้อดีก็คือช่วงแรกๆ
นี้ตัว Framework มันยังไม่ซับซ้อนจะทำความเข้าใจได้ง่าย เมื่อมีเวอร์ชั่นใหม่ออกมาก็ศึกษา
เพิ่มเติมเอา แต่ถ้าใครต้องการ Framework ที่จะเอาไปใช้ทำเว็ปจริงๆจังๆน่าจะศึกษาและใช้งาน
Framework ตัวอื่นๆที่ตัว Framwork มัน stable แล้วมากกว่านะ

เว็ปไซต์ที่เกียวข้อง : Zend Framework

PHP Framework Benchmark 1

Posted by AnnoMundi on December 02, 2006

ช่วงนี้พอดีผมกำลังหัดใช้ Zend Framework อยู่ และก็บังเอิญไปเจอเว็ปบล็อกนึงเขาได้ทำการทดสอบ
PHP Framework ที่เป็นที่นิยมกัน ซึ่งก็มี่ี CakePHP, Solar, Symfony และ Zend Framework
ซึ่งเขาทดสอบ Benchmark ด้วยการเขียนโปรแกรมโดยใช้ Framework ต่างๆให้แสดงข้อความ
Hello World ออกมา และผลที่ได้คือ Solar > Symfony > Cake > Zend Framework
ซึ่ง Zend Framework ช้าที่สุด T_T ทำเอาผมเซ็งไปเลยเพราะกำลังใช้ทำเว็ปอยู่

แต่ก็เพราะเว็ปนี้ทำให้ผมรู้จัก PHP Framework เพิ่มขึ้นมาอีก 2 ตัว คือ Solar และ Symfony
เท่าที่ดู Feature ทั้ง 4 ตัวนี้แล้วรู้สึกว่า Symfony จะมีระบบคล้าย Ruby On Rails มากที่สุด
แต่ผมก็ยังขอปักหลักกับ Zend Framework ไปก่อน เพราะไหนๆระดับ Zend ลงมาทำเองแล้ว
ต่อไปน่าจะดีขึ้น เท่าที่ตามข่าวกลางเดือนธันวาคมนี้ก็จะออกเวอร์ชั่นใหม่กระโดดไปเป็น 0.60 เลย

ช่วงนี้ผมอาจอัพบล็อกไม่ถี่เท่าที่ควร ก็เพราะกำลังเขียนเว็ปด้วย Zend Framework นี่แหล่ะ
เด๋วพอ Zend Framework ออกเวอร์ชั่นใหม่มาอาจต้องมีแก้โค้ดกันใหม่อีกแหงๆ T_T
ส่วนใครอยากดูผลการ Benchmark เต็มๆก็ตามไปดูตามลิ้งก์อ้างอิงด้านล่างนะครับ

อ้างอิง : How Fast Is Your Framework?

Zend Framework Preview 0.2.0 Released!

Posted by AnnoMundi on November 02, 2006

ในที่สุด Zend Framework Preview 0.2.0 ก็ถูกปล่อยออกมาให้ทดลองใช้กันแล้วครับ
หลังจากปล่อย 0.1.5 ให้ใช้กันอยู่นาน โดยที่ยังขาด Feature สำคัญๆหลายอย่าง ผมเอง
ก็ได้ทดลองใช้ 0.1.5 กับเว็ปนึงเหมือนกัน ^^ โดยเวอร์ชั่น 0.2.0 ที่ออกมานี้มีการปรับปรุง
ของเดิมหลายจุดและมีการเพิ่มระบบที่ยังขาดไปในรุ่น 0.1.5 อย่าง JSON server และ
Session Component เยี่ยมจริงๆ รายละเอียดเต็มๆตามด้านล่างเลยครับ

  • New MVC implementation
  • New HTTP request and response objects make it easy to automate unit testing for web apps without a web server, and also make it possible to use MVC for command-line and PHP-GTK application development
  • Enhanced pure PHP Lucene-compatible search engine component
  • New Mysqli DB adapter
  • New JSON server
  • New REST client and server
  • New XmlRpc client and server
  • New Acl component
  • New Session component
  • New Web Services clients for Delicious and Audioscrobbler
  • New Registry component
  • Significant improvements to many other components

สำหรับคนที่เขียนเว็ปเองโดยใช้ PHP ผมว่า Framework ตัวนี้น่าสนใจไม่น้อยเลยครับ
เพราะทำให้การพัฒนาเว็ปง่ายขึ้นมาก เพียงแต่ Host ที่ท่านใช้ต้องรองรับ PHP 5.1.4 ขึ้นไป
นอกจากที่ Zend ปล่อย Zend Framework 0.2.0 เวอร์ชั่นใหม่แล้ว Zend ยังปล่อย
Zend Google Data Client Library Preview Release 0.2.0. ออกมาให้ทดลองใช้กันด้วย
โดยเจ้าตัวหลังนี้จะทำให้เราสามารถเขียนโปรแกรม PHP เพื่อติดต่อดึงข้อมูลจาก Google Data
Web Service อย่างเช่น Google Base, Calendar, Blogger, and CodeSearch ผมว่า
ว่างๆก็จะลองดูเหมือนกัน ^^

อ้างอิง : Zend FrameWork

Zend Studio 5.5 Beta Available Now!.

Posted by AnnoMundi on November 01, 2006

เพิ่งได้แว็ปไปดูที่เว็ป Zend.com แล้วก็เห็นว่าทาง Zend ได้ปล่อย Zend Studio 5.5 Beta
มาให้ทดลองใช้กันแล้ว ใครที่ชอบลองของใหม่ไปโหลดกันมาทดลองดูกันได้ครับ ส่วนผมขอใช้
Zend Studio 5.2 ต่อไป อดเจ็บใจเล็กๆไม่ได้เพราะ License ผมหมดไปได้ไม่กี่อาทิตย์เอง
แล้วไม่ได้ต่ออายุ ก็ค่าต่อมันตั้ง $199 แถมผมใช้มา 1ปียังไม่คุ้มเลยก็เลยว่าจะทนใช้ไปจนคุ้ม
ก่อน และรอมี Promotion ค่อยซื้อใหม่ ^^”

ส่วนเจ้า Zend Studio 5.5 Beta มีอะไรบ้างลองดูตามด้าล่างครับ

Version 5.2.0 to 5.5.0 Beta

PHP 5.2:

  • New PHP 5.2 Support

General:

  • Installation support for Mactel ( Install Anywhere 8 )
  • Support for antialiasing (via Preference settings)

Editor:

  • Supports opening URLs from the Editor using right click

Web Services Support (SOAP):

  • Support for URLs in SoapClient Constructors
  • Bug fixed: Unsynchronized file name and configuration name

Java:

  • Embedded Java code completion of packages and classes in PHP code
  • Configure the Workspace’s default JRE / JDK
  • Configure project specific preferences
  • Nested Java code completion

Zend Platform Integration:

  • View Zend Platform Events in a dedicated Events List window
  • Customize, sort and filter Event List entities
  • Limit number of visible rows and initiate auto refresh
  • View Events from user-selected servers
  • Direct access to Platform’s Configuration dialog from the toolbar / menu
  • Configure Zend Platform’s GUI URL and authentication information

Zend Framework Integration:

  • Enable code completion for Zend Framework
  • View Zend Framework classes and functions in the PHP Inspector View
  • View source and debug into Zend Framework code

Source Control:

  • Explorer: highlights file labels 1according to their status in source control (added, merged with conflicts, modified, not versioned and up to date)
  • Source Control file status highlighting is customizable (from the Preferences dialog)
  • Can easily switch between CVS and Subversion support
  • Support for Subversion 1.4

General Bugs Fixed / Changes:

  • Bug fixed – If no Zend Guard path detected there is no default value
  • Bug fixed – Zend Guard detection doesn’t recognize old versions
  • Bug fixed – PHP Functions list doesn’t provide return types for all functions
  • Bug fixed – Uuencode functions in PHP Functions list are malformed
  • Bug fixed – Open File dialog has serious delay when a network drive is disconnected
  • Bug fixed – FTP files containing spaces in their name causes wrong file parsing
  • Bug fixed – Wrong tab behavior in the Preferences window

สำหรับผม ผมว่าเวอร์ชั่นนี้ไม่ค่อยมีการเปลี่ยนแปลงไปจาก 5.2 สักเท่าไหร่ เป็นผม ผมจะรอ PHP6
แล้ว Zend ออก Zend Studio ที่ Support ออกมาค่อนน่าสนใจหน่อย (แต่ต้องมีโปรโมชั่นด้วยนะ ^^”)

วิธีแก้ปัญหา PHP ส่งอีเมล์ไม่ได้บน Windows

Posted by AnnoMundi on October 18, 2006

ช่วงหลังๆมานี่ผมกลับมาใช้ Windows ในการทำงาน และในการเขียน PHP
ปัญหาอย่างนึงที่น่ารำคาญคือส่ง email ไม่ออกมีปัญหากับ SMTP Server
ซึ่งผมก็ลง IIS และเป็น SMTP service ไว้ด้วยแต่ก็ส่งอีเมล์ไม่ออก แต่พอดีผม

ไม่ค่อยได้สนใจในส่วนนี้เท่าไหร่ เลยหยวนๆข้ามๆมันไปเขียนโปรแกรมทำส่วนอื่น
แต่พอดีช่วงนี้กำลังเขียนโมดูลของ Drupal และ่ต้องมีการส่ง email เลยจำต้องหา
วิธีทำให้มันใช้งานได้ ซึ่งจะอัพโหลดไปทดสอบบน Server ก็ลำบากในการแก้ไข
และ debug โปรแกรม ก็เลยลองๆ Search ดูก็เจอวิธีตาม Link ด้านล่าง

http://drupal.org/node/30079

ถ้าลิ้งก์เสียก็ตามล่างนี้เลย แต่อย่าลืมว่า Windows ต้องลง IIS ก่อนนะครับ

1) Go to: start > settings > control panel > Administrative Tools > Internet Information Services
2) Expand the ” (local computer)” node
3) Right click on your SMTP server > go to “Properties”
4) Click “Access” tab
5) Under Relay Restrictions, click the “Relay” button
6) Click “Add”
7) Select “Single Computer” and enter IP address 127.0.0.1
8) Hit OK, OK, OK (until the properties dialog is closed)

หลังจากเซ็ตตามด้านบนแล้วสคริปต์ PHP เราก็จะส่งอีเมล์ออกไปได้ตามปกติ
เพียงแต่อาจมีปัญหา email ที่ถูกส่งไปอาจถูกปลายทางส่งเข้า Junk/Spam/Bulk Folder
ก็ต้องคอยเช็คดูให้ดีๆ

อ้างอิง : http://drupal.org/node/30079