want to join us? register, it's easy | help

news


CodeLovely.com starts beta testing

Hi folks, I've launched a new website called codelovely where developers and web designers can get together and share links. It's like goodphptutorials, but users get to vote up or down links that are posted. So, sign up posts some links, snapshots, code or ask questions.

 

tutorials


category icon

Creating a MySQL Database Class Using the Singleton Design Pattern

in PHP added by thatspoppycock, on 24/3/2009 design patterns mysql oo programming php5 singleton

Using the Singleton Pattern is a simple way to limit the number of instances of an object to just one, helps keep database connections organized, and saves memory. This tutorial will help you create a MySQL database class using this popular design pattern.

comment save report
category icon

MVC, XML and other animals

in PHP added by nou, on 22/3/2009 oo programming php5

This article will briefly expose the basics of the MVC pattern and put forward a template management system based on the duo XML/XSLT.

comment save report
category icon

Debugging Development

in PHP added by CalEvans, on 16/3/2009 debugging

Programming, as much as it is about machines, is conducted by humans, and is as susceptible to human error as any process. These bugs can be frustrating, particularly when found by a client, but they can give an insight into underlying problems, and sometime suggest solutions – or at least ways of catching errors early. This article looks at four different classes of bugs: mechanical, mental, social and environmental, their causes, and some preventative steps.

comment save report
category icon

Amazon S3 Simple Backup Script - s3backup

in PHP added by goodphptutorials, on 9/3/2009 amazon s3 backup script

Recently, I've begun to use Amazon S3 for storing backups of files for both my clients and myself. It works amazingly well, its fast, and very simple to use. There's a great PHP class for accessing it through cURL. This small piece of software I've written uses it extensively.

comment save report
category icon

Getting Started with phpUnderControl

in PHP added by CalEvans, on 8/3/2009 advanced tutorials continious integration phpUnderControl testing

In any decent sized project, the more times you commit code, the bigger the chance is that you will break something. Call it the law of unintended consequences or the butterfly effect, but the fact is that in complex systems, we cannot anticipate all the effects of a change. To deal with this we can either adopt the "release and pray" method of software control, or we can setup systems to help us find the consequences of our actions, so we that can correct them before they become a problem. We usually call these systems Continuous Integration systems.

comment save report
category icon

Table and Database Operations [pdf]

in PHP added by nirajam, on 7/3/2009 database mysql

The tutorial explains the operations that can be performed on whole tables or databases. It also explains table maintenance operations for table repair and optimization, changing various table attributes, table movements, including renaming and moving to another database, and multi-table operations.

comment save report
category icon

Getting Started with Memcached

in PHP added by CalEvans, on 21/2/2009 cache memcached

Memcache is a tool which can cache objects in memory – and is often used for speeding up dynamic web applications. PHP has a built-in module for working with memcache, and its a simple and convenient way of introducing caching to your application.

comment save report
category icon

Basic CRUD scaffolding with PHP Doctrine + Smarty

in PHP added by prodevtips, on 15/2/2009 advanced tutorials oo programming php5

Example of how a simple system for creating a CRUD interface from the information in the model classes.

comment save report
category icon

Input Validation: Using filter_var() Over Regular Expressions

in PHP added by Mojah, on 8/2/2009 advanced tutorials filter_var php5 regex

The biggest time-sink on any project, is the amount of input validation that needs to be done. You _have_ to assume your visitor is a maniac serial killer, out to destroy your application. And you have to prevent it.

comment save report
category icon

Higher Order PHP

in PHP added by goodphptutorials, on 7/2/2009 advanced tutorials functional

There's no doubt in my mind that Higher order programming is value added to a programmers toolbox, and with the pending release of PHP 5.3, it's about to become much more mainstream.

comment save report
category icon

PHP and AJAX - Make a Password Strength Bar that Updates in Real-time

in PHP added by scott25, on 2/2/2009 beginner tutorials databases general mysql security

This tutorial will show you how to make a very simple feature which will help your users make more secure passwords, in registration forms. After the user types their password, this script will make a request to a PHP page, which will check the password for lowercase letters, uppercase letters, numbers and symbols. Without reloading the page, a bar displaying the strength of the password will be shown to the user.

comment save report
category icon

50 Extremely Useful PHP Tools

in PHP added by goodphptutorials, on 21/1/2009 general tools

This post presents 50 useful PHP tools that can significantly improve your programming workflow. Among other things, you’ll find a plethora of libraries and classes that aid in debugging, testing, profiling and code-authoring in PHP.

comment save report
category icon

Exception Handling In PHP5 - Good Cop, Bad Cop

in PHP added by goodphptutorials, on 18/1/2009 exception php5

Exception handling. The "I'm so good, I don’t produce errors" - mentality can't even save you from them. It's bound to happen - either your code fails, or external libraries you’ve grown to accept produce faults outside of your control.

comment save report
category icon

Creating a short url service in php and mysql

in PHP added by adulion, on 10/1/2009 mod_rewrite mysql

Using mod rewrite, some string manipulation and a bit of mysql the tutorial shows you how to create a short url service

comment save report
category icon

5 Helpful Tips for Creating Secure PHP Applications

in PHP added by goodphptutorials, on 3/1/2009 advanced tutorials security

PHP is one of the most popular programming languages for the web. Sometimes a feature-friendly language can help the programmer too much, and security holes can creep in, creating roadblocks in the development path. In this tutorial, we will take a look at 5 tips to help you avoid some common PHP security pitfalls and development glitches.

comment save report