Concluding The Bangalore PHP User Group Meeting - Oct 31 2009

Today, the Bangalore PHP User Group had a meeting. The meetup.com site reports that sixty eight people attended the meeting. The venue was at Microsoft. The increasing participation of Microsoft in PHP conferences and meetings have taken many by surprise. Microsoft were kind enough to offer free Pizza for all the attendees.

They have given me a copy of Windows 7 Release Candidate which expires on June 1, 2010. If time permits, I will sure try to install it as a virtual guest.

Taxonomy upgrade extras: 

Create RESTful Applications Using The Zend Framework

The Zend Framework 1.9 release added a new feature - Zend_Rest_Controller. Zend_Rest_Controller and Zend_Rest_Route classes go hand in hand. In the previous versions of the Zend Framework, we have had the Zend_Rest_Server component. We still have. Since Zend_Rest_Server provides an RPC like component violating the REST architectural constraint, it is likely to be deprecated in the future versions of the Zend Framework.

FOSS Project: 
Content Type: 

Enable MySQL General Query And Slow Query Log

MySQL has a query logging feature. In order to use it you have to first enable it.

Enabling the general query log

Step 1: Set your log file in /etc/my.cnf

vi /etc/my.cnf

In the [mysqld] section specify the general log file name:

log=/var/log/mysqld.general.log

Step 2: Create the file and make sure it is owned by the system user mysql

touch /var/log/mysqld.general.log
chown mysql.mysql /var/log/mysqld.general.lo
Taxonomy upgrade extras: 

Attaching External SVN Repositories - svn:externals

The scenario:

  • You are using subversion as the version control software for your project
  • Your project depends on other projects, perhaps third party libraries
  • The other projects also use subversion as the version control software for their project
Taxonomy upgrade extras: 

Using SMTP With Zend Framework - Solve Email Delivery Problem

What's the problem with PHP's mail() function?

PHP language provides the mail() function. But it requires properly configured mail server on the local machine. Developers often don't have the necessary infrastructure at their disposal. Sometimes sending emails from a PHP script becomes a frustrating experience.

Taxonomy upgrade extras: 

Writing A PHP Script To Send SVN Commit Changeset Email Notification

If you are a

  • PHP programmer looking to write a script to send changelog email notification when a commit is made to the SVN server
  • SVN server admin looking for a script to send changelog email notification when a commit is made

you have come to the right place.

For the impatient, the script is posted at the end of the article.

Before we delve into writing the script, let us summarize the environment.

  • We have our SVN project at the path /var/svn/myproject/
  • The project name is myproject

Exploring svnlook

Taxonomy upgrade extras: 

Making Code More Readable Using The Fluent Interface

From the Wikipedia
"In software engineering, a fluent interface (as first coined by Eric Evans and Martin Fowler) is a way of implementing an object oriented API in a way that aims to provide for more readable code."

Let us explore the fluent interface with the help of an example.


class Customer
{
protected $_name;
protected $_street;
protected $_city;
protected $_country;

public function setName($name)
{
$this->_name = $name;
}

Programming: 
Content Type: 

Pages