2013年7月2日星期二

Community News: Latest PECL Releases for 07.02.2013

Latest PECL Releases:
  • radius 1.2.7
    This release fixes a security issue in radius_get_vendor_attr(). It is strongly
    recommended that users using vendor specific attributes upgrade immediately,
    with other users encouraged to upgrade when practical.

    - Fix a security issue in radius_get_vendor_attr() by enforcing checks of the
    VSA length field against the buffer size. (Adam)


Community News: Packagist Latest Releases for 07.02.2013

Recent releases from the Packagist:

MaltBlue.com: ZendDbSqlSelect - The Basics (Columns, Limit & Order)


Matthew Setter has posted the third part of his series looking at the Zend Framework 2's DbSqlSelect component and its use. In this latest (and last) tutorial, he talks more specifically about columns, limiting and ordering.



Welcome to the third and last part in this series, introducing you to working with the ZendDbSqlSelect classes in Zend Framework 2. In part one we looked at building SQL Where clauses using the where related functions, predicates and closures, as well as compound queries. In part 2, we looked at all forms of SQL joins as well as a slightly more esoteric feature of SQL - UNIONS. Here, in part 3, in the words of Coldplay, we're going back to the start, and looking at the fundamentals.


He looks at three specific elements - the class constructor, the "limit" and "order" functions and the "Expression" class. He includes sample code showing how to create the class - one normally and one bound to a specific table. The next example shows how to define the columns to be selected using the "select" method. Finally, he shows the use of the "Expression" objects to perform SQL operations in the query (like "COUNT").


Link: http://www.maltblue.com/tutorial/zend-db-sql-the-basics

NuoDB Blog: CodeIgniter - Fired Up on NuoDB


On the NuoDB blog they show you how to take the introductory "News" tutorial for CodeIgniter and set it up to use NuoDB instead of MySQL.



CodeIgniter is a powerful PHP framework with a very small footprint. It is built for PHP coders who need a simple and elegant toolkit to create full-featured web applications. I will show you how you can use NuoDB to power the CodeIgniter tutorial "News" application. [...] In this blog article, I am using clean install of 64-bit Linux Mint 15. (note: the commands and paths below may be different on other Linux distributions).


They walk you through the installation steps and what you'll need to change in your PHP configuration to get everything up and running. He then helps you get CodeIgniter downloaded, set up and configured to use the NuoDB instance. He creates the "news" table and inserts some sample information based on the Ellis Lab tutorial.


Link: http://www.nuodb.com/techblog/2013/06/30/codeigniter-fired-up-on-nuodb

Alvaro Videla: PHP Sessions in Erlang Mnesia


In a new post to his site Alvaro Videla shows you how to use a PHP-to-Erlang bridge to store your sessions in Mnesia. Mnesia is a distributed, soft real-time database management system written in the Erlang programming language.



I decided one of the simplest things to do would be to create a session storage for PHP in Mnesia. But that, in doing so, I would also create an extremely simple key value store wrapper around Mnesia which would track access times.


The instructions help you get the needed software set up including mypeb, kvstore and lib360. He lists all the steps needed to get the platform up and running, complete with exact commands to execute. He does point out a few things that are missing from the setup including making kvstore easier to work with and some PHP session garbage collection.


Link: http://unix0.wordpress.com/2013/06/22/php-sessions-in-erlang-mnesia

2013年7月1日星期一

7PHP.com: Know The PHP Hampshire User Group - Find An Independent Venue Rather Than Conference Venue


On 7PHP.com there's a new interview posted with the organizers of the PHP Hampshire user group about the group, organizers and challenges they face.


James Titcumb, one of five organizers of the group, answers questions about:



  • What their user group is about and what their goals are
  • The size of the group and the key people involved
  • How they find sponsors for their event
  • How it's different from other user groups
  • Some of the lessons they've learned so far


You can read the full interview here and, if you're in the Portsmouth area, be sure to check out the group!


Link: http://7php.com/php-usergroup-phphampshire

Community News: Packagist Latest Releases for 07.01.2013

Recent releases from the Packagist: