WJGilmore.com Blog » best_practices

Have some developer news you'd like us to post here? E-mail blog@wjgilmore.com with all of the details!

How I Learned to Stop Worrying and Love Zend_Form

Published: August 19, 2011

Are Zend_Form decorators driving you crazy? In this blog post I’ll show you how to override the default decorators, and instead wield total control over your form layout by supplying your own layout file.

Sixteen Best Practices- and Productivity-Related PHP Tutorials

Published: May 10, 2011

This compendium of sixteen recently published tutorials touches upon all manner of topics related to PHP-oriented best practices and productivity. In this list you’ll find tutorials introducing testing, debugging, advanced object-oriented features, code profiling, security, enforcing coding standards, and more.

Deploying PHP Websites with Capistrano

Published: April 19, 2011

Love creating websites but hate deploying and updating them? If so I’d imagine you’re still using FTP to transfer files, because Capistrano makes deployment dead simple. Read on to learn how you can start using Capistrano to deploy your PHP-powered websites.

The Power of Doctrine 2’s Custom Repositories and Native Queries

Published: April 09, 2011

Doctrine 2 sports numerous amazing new features, several of which have already become an indispensable part of my approach to building websites. In this article I’ll show you how I used a custom repository and the new native queries feature to create a feature which retrieves a list of registered users residing within a 10-mile radius of another user.

Ten Tips and Tricks for mysql Client Users

Published: October 29, 2010

Although several great GUI-based MySQL clients exist, among them phpMyAdmin and SQLYog, I’ve always preferred to use the native mysql command-line client. It does take some time to get acquainted with using a command-line interface (CLI), particularly if you don’t regularly work with an operating system offering a robust CLI environment. However, after some practice you’ll be able to manage users, navigate your databases, and perform other tasks with incredible ease.

Enforcing PHP Coding Standards with PHP_CodeSniffer

Published: October 22, 2010

In light of PHP’s considerable expressive flexibility, how can you actively enforce a coding standard and prevent both yourself and your team members from reverting to bad habits? One great solution called PHP_CodeSniffer is (coincidentally) found in a PEAR package. PHP_CodeSniffer can not only parse PHP code to ensure it meets a particular coding standard but it can also examine your JavaScript and CSS files for potential standards violations. Read on to learn how to use PHP_CodeSniffer!

Disabling Foreign Key Constraints When Loading MySQL Data

Published: September 20, 2010

MySQL’s InnoDB storage engine supports the use of foreign key constraints, which are very useful but require you to manage your data in a much more rigorous manner than might otherwise be employed when not taking advantage of this feature. For instance, when migrating data from a database which does not use foreign keys to one which does, you’ll often encounter an error in which MySQL complains about a foreign key constraint not being met. This is easily resolved by temporarily disabling foreign key checks before beginning the import, and then re-enabling them when the import is complete. Read on to learn how.

Validating Identical Passwords with the Zend Framework

Published: September 06, 2010

When creating user registration and password-related models you’ll likely need an easy way to compare the user’s chosen and confirmed passwords. Yet despite the Zend Framework having long supported over two dozen input validation features, it wasn’t particularly easy to compare input associated with two different form fields without breaking tier separation best practices. That all changed with the Zend Framework 1.10.5 release, which finally added support for this useful feature.

New Internet.com Video: Processing Form Input with PHP

Published: August 03, 2010

In my latest Internet.com video installment, you’ll learn how to properly and securely process HTML form input using PHP.

Meet Git, the Version Control System for Developers Who Like Ease

Published: February 23, 2010

In my latest WDVL article, I’ll introduce you to Git, the open source version control system created by none other than Linux project founder Linus Torvalds. Git currently is driven by hundreds of contributors from around the globe, and manages many of the world’s largest software projects, including Android, the Linux Kernel, Perl, and Ruby on Rails.

» Read the article

Page 1 of 2 pages  1 2 >