PHP - MYSQL - LAMP stuff

New Design: Cloudy Water Sports by boilers

OSWD open source web designs - Sun, 2010-06-13 07:50
boilers's "Cloudy Water Sports" was just added to OSWD! It is gray and blue and validates XHTML 1.0 Strict.

New Design: Delicious Fruit by Dieter

OSWD open source web designs - Sun, 2010-06-13 07:50
Dieter's "Delicious Fruit" was just added to OSWD! It is yellow and green and validates XHTML 1.0 Strict.

New Design: Touching by timmytima

OSWD open source web designs - Sun, 2010-06-13 07:50
timmytima's "Touching" was just added to OSWD! It is white and black and validates XHTML 1.0 Transitional.

New Design: Rounded_2 by jedignork

OSWD open source web designs - Sun, 2010-06-13 07:50
jedignork's "Rounded_2" was just added to OSWD! It is blue and white and validates XHTML 1.0 Strict.

New Design: BlackandGreen by shipping_guy

OSWD open source web designs - Sun, 2010-06-13 07:50
shipping_guy's "BlackandGreen" was just added to OSWD! It is orange and green and validates XHTML 1.0 Strict.

New Design: Sundark by rotw

OSWD open source web designs - Sun, 2010-06-13 07:50
rotw's "Sundark" was just added to OSWD! It is black and yellow and validates XHTML 1.0 Transitional.

New Design: Cash by alexisc22

OSWD open source web designs - Sun, 2010-06-13 07:50
alexisc22's "Cash" was just added to OSWD! It is green and gray and validates XHTML 1.0 Transitional.

New Design: Greeny blu by heartlessg

OSWD open source web designs - Sun, 2010-06-13 07:50
heartlessg's "Greeny blu" was just added to OSWD! It is black and blue and validates XHTML 1.0 Transitional.

New Design: Simple Beauty by dboy

OSWD open source web designs - Sun, 2010-06-13 07:50
dboy's "Simple Beauty" was just added to OSWD! It is white and gray and validates XHTML 1.0 Strict.

New Design: RedTie by alexisc22

OSWD open source web designs - Sun, 2010-06-13 07:50
alexisc22's "RedTie" was just added to OSWD! It is white and red and validates XHTML 1.0 Transitional.

I'm a BSD

O'Reilly ONLamp - Fri, 2010-06-11 18:39
This week I am taking FreeBSD 8.0 for a spin. So far, I like it enough that it will probably be my normal desktop environment. It seems to have the right stuff: my PC seems markedly faster. FreeBSD's slogan is...

Completing Regular Expression Basics

Dev Shed Articles - Thu, 2010-06-10 13:00
In this conclusion to a four-part series on parsing and regular expression basics in Perl, we finish our study of regular expressions; you'll even learn how to create your own. This article is excerpted from chapter one of the book Pro Perl Parsing, written by Christopher M. Frenz (Apress; ISBN: 1590595041).
- Regexp::Common::Comments This module generates regular expressions that match comments inserted into computer code written in a variety of programming languages (currently 43). The syntax to call these regular expressions is as follows, where refers to the base comment matching functionality and...

Pragmatic Bookshelf: SQL Antipatterns: Avoiding the Pitfalls of Database Programming

Zend feed for PHP news & articles - Wed, 2010-06-09 15:46
Bill Karwin has helped thousands of people write better SQL and build stronger relational databases. Now he’s sharing his collection of antipatterns—the most common errors he’s identified in those thousands of requests for help. Most developers aren’t SQL experts, and most of the SQL that gets used is inefficient, hard to maintain, and sometimes just plain wrong. This book shows you all the common mistakes, and then leads you through the best fixes. What’s more, it shows you what’s behind these fixes, so you’ll learn a lot about relational databases along the way.

Implementing the Observer Pattern with SplObserver and SplSubject

Zend feed for PHP news & articles - Wed, 2010-06-09 15:19
As PHP applications grow into complex object-oriented systems, developers look to create centralized components to execute repetitive tasks. These include logging, emailing, redirects, and more. The Observer pattern is a commonly used design pattern to hook such components into an application during runtime, thereby making them reusable. Since PHP 5.1, there are two interfaces built into the Standard PHP Library (SPL) that can be implemented to use the Observer pattern in your application. They are SplSubject , and SplObserver .

Abstracting Access to MySQL for an MVC-Based Framework in PHP 5

Dev Shed Articles - Wed, 2010-06-09 13:00
In this third part of the series, I further enhance the functionality of this sample MVC framework by adding a class to it that takes care of interacting with MySQL in a simple manner. Youll see the importance of this abstraction class when I show you the definition of the corresponding model, which will aggregate an instance of “MySQL” to handle the data layer very easily.
- Despite how intimidating this task may sound to you, building a framework in PHP 5 that follows the structure imposed by the Model-View-Controller design pattern is much easier than you may think. So, if youre interested in learning the key concepts that surround this process, either for building...

Developing the Router/Dispatcher Class for a Simple MVC-based Framework in PHP 5

Dev Shed Articles - Tue, 2010-06-08 13:00
In this second part of the series, I add another crucial component to this example MVC-driven framework. It's a basic router/dispatcher class. While the incorporation of this brand new module turns the framework into a more functional piece of code, there are other components that still need to be developed.
- Given the huge number of MVC-driven PHP frameworks available these days, which come loaded with lots of powerful features aimed at speeding up the development of web applications, its fair to think that building software packages like these may be a difficult and demanding task. While this is und...

Zend Framework Module Based Application

Zend feed for PHP news & articles - Mon, 2010-06-07 21:10
In this first article of the series, we will discuss about the best way (in my opinion) to structure your Zend Application in order to have maximum flexibility but also a good defined structure of the classes/files. These will be a series of tutorials which are meant to show you or guide you through developing a complex application with Zend Framework 1.10. The series consists of the following parts: a) Setting up a module based application b) Setting up helper plugins, methods & debugging with ZFD ebug c) Setting up a login page and signup page with captcha d) Setting up OpenID to login/create account e) Setting up an API to create/login an account f) Improving performance implementing Zend Cache

Getting Started with MongoDB and PHP

Zend feed for PHP news & articles - Mon, 2010-06-07 16:34
Schema-less database systems like MongoDB are quickly becoming popular with Web developers on account of their flexibility, simplicity and easy integration with modern Web technologies such as JSON. This article introduces you to MongoDB and shows you how to install it, set up an initial data store, and access it with PHP.

Building a Simple MVC-based Framework in PHP 5

Dev Shed Articles - Mon, 2010-06-07 13:00
In this first part of a series, I develop the first module of a model-view-controller (MVC) driven framework, which happens to be a front controller. By combining this component and a basic .htaccess file, its possible to route all HTTP requests to the (still-undefined) dispatcher class.
- As you may know, one of the most popular approaches that can be taken for speeding up the development of PHP applications without having to start coding them from scratch is using either a proprietary or a third-party framework. Yes, nowadays PHP frameworks are available in so many flavors and sizes...

Chris Hartjes' Blog: Testing Controllers Hiding Behind Zend_Auth

Zend feed for PHP news & articles - Fri, 2010-06-04 19:01
On his blog today Chris Hartjes has a new post about testing your Zend Framework application's functionality that lives behind a Zend_Auth authentication.