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

browse by tag: php5

sort by

newest, oldest, most popular


category icon

Stay away from Bloated Class Methods, actually, bloated ANYTHING!

in PHP added by rvdavid, on 22/3/2008 classes methods oop php5 principles tips

Why are there so many examples of bloated PHP methods out there?! I see a lot of bloated methods being used in examples through sites like phpclasses.org and a very large chunk of a project I’ve recently picked up which a few developers have worked on. Guys! remember! There is no good reason to bloat your methods to over 10-20 lines long and on the rare occasions that you do exceed 10 - 20 lines it would be more the exception to the rule as opposed to being the rule itself!

comment save report
category icon

Desktop Application Development with PHP-GTK

in PHP added by gpt, on 31/3/2008 advanced tutorials desktop applications gui oo programming php5

PHP-GTK 2 is out, and with it, a fantastic means for PHP developers to build useful, reliable cross-platform desktop applications. In this tutorial, I'll show you how to get up and running with PHP-GTK in no time and build your first desktop application.

comment save report
category icon

PHP5 and OOP

in PHP added by Jordan, on 10/4/2008 Object Oriented Programming oop php5

Object oriented programming was introduced for the first time in PHP 3. But the subjects is extremely actual again in PHP 5, because the entire concept of the OOP(Object Oriented Programming) was in fact redesigned from scratch for the new version of the language (PHP 5). Hence, this tutorial would be interesting for the advanced user familiar with PHP 4 and as well for the beginners, since we will try to use more "understandable" words and examples comprehensive enough to express the real power of the object oriented programming.

comment save report
category icon

Integrate the Authorize.Net Customer Information Manager (CIM) API with PHP

in PHP added by stymiee, on 30/4/2008 authorize.net ecommerce payment gateway php5

Get a basic tutorial and free code to use Authorize.Net's Customer Information Manager API to create subscriptions and store credit card data while being PCI compliant.

comment save report
category icon

Effective In-Function Caching With PHP5

in PHP added by porteightyeight, on 9/5/2008 advanced tutorials cache php5

In-function caching can often be used to greatly improve the performance of our software. Applying this technique effectively is important to avoid spiraling memory usage and bizarre bugs that can be caused by old cache data lingering around.

comment save report
category icon

PHP: Be Notified When Google Crawls Your Site

in PHP added by adzeds, on 3/6/2008 beginner tutorials crawl general google mysql php5

Have you ever wanted to know when Google crawls your website? Well now you can using a simple PHP script which emails you everytime GoogleBot crawls your site.

comment save report
category icon

Extending Zend DB Table

in PHP added by prodevtips, on 19/6/2008 advanced tutorials oo programming php5

Shows how you can extend the Zend DB Table which is an important part of the popular PHP framework, in order to do less database coding.

comment save report
category icon

Combining jQuery with the Zend Framework and Smarty

in PHP added by prodevtips, on 25/6/2008 AJAX advanced tutorials php5

Showcasing how jQuery can be used in combination with the most popular templating engines for PHP and a popular PHP framework with a simple example.

comment save report
category icon

PHP Doctrine introduction for dummies

in PHP added by prodevtips, on 18/8/2008 database oo programming php5

Short tutorial on how to create tables in a database and fetch information from said database with the Doctrine Object Relational Mapper.

comment save report
category icon

Marrying Smarty and PHP Doctrine

in PHP added by prodevtips, on 20/8/2008 advanced tutorials mvc oo programming php5

Tutorial with source code describing how to create a small MVC framework where PHP doctrine is responsible for the models and Smarty for the views. The controller we make ourselves.

comment save report
category icon

CRUD with PHP Doctrine

in PHP added by prodevtips, on 2/9/2008 advanced tutorials database oo programming php5

Implementing reusable Create Remove Update and Delete logic with PHP Doctrine.

comment save report
category icon

File Uploads with PHP Doctrine

in PHP added by prodevtips, on 12/9/2008 advanced tutorials databases oo programming php5

An example of how to integrate uploads into the Doctrine validation process.

comment save report
category icon

FirePHP and Zend Framework 1.6

in PHP added by goodphptutorials, on 12/9/2008 Zend debug firebug firephp php5

Christoph Dorn has released an interesting tutorial titled FirePHP and Zend Framework 1.6 over on his blog. In it (as you can most likely deduce from the title) he gives a quick rundown on how to get up and running with the new FireBug/FirePHP integration that comes with Zend Framework 1.6.

comment save report
category icon

Trackbacks with Google Blog Search and Zend Feed

in PHP added by prodevtips, on 21/9/2008 oo programming php5 rss zend feed zend framework

Tutorial on how to fetch the external links to any given article through Google Blog Search's Atom feature and displaying them as a list of trackbacks. With this implemented your blog readers will get the complete picture of the off-site discussion.

comment save report
category icon

Integrating the Authorize.Net AIM API with PHP

in PHP added by stymiee, on 23/9/2008 authorize.net ecommerce php5

Utilize a custom PHP class for integrating the Authorize.Net Advanced Integration Method (AIM) API into an ecommerce website. It includes the class and step-by-step instructions for using it.

comment save report
category icon

Using an autoload function to make your life easier

in PHP added by clearnetwork, on 11/10/2008 advanced tutorials general oo programming php5

In PHP 5 you can make your life a lot easier by writing an autoload function. This function will automatically load your classes, so you do not need to repeatedly include classes on every page.

comment save report
category icon

Extending PHP Doctrine Record

in PHP added by prodevtips, on 15/10/2008 advanced tutorials database oo programming php5

Here we extend PHP Doctrine records fromArray function to allow for check box group relations to be inserted in a straight forward way.

comment save report
category icon

Access Control [PDF]

in PHP added by nirajam, on 19/10/2008 content management mysql php5

This tutorial gives the outline of a highly flexible role-based access control system. The tutorial helps in establishing principles using standard notions of RBAC. It also teaches you the code for administering RBAC and explains how questions about access can be answered.

comment save report
category icon

PHP Doctrine DQL recipes

in PHP added by prodevtips, on 31/10/2008 advanced tutorials oo programming php5

A list of examples using DQL and PHP Doctrine instead of SQL.

comment save report
category icon

Freezing and Thawing PHP Objects

in PHP added by goodphptutorials, on 2/12/2008 SPL objects patch php5

One of the many new features that have been added for PHP 5.3 is the setAccessible() method of the ReflectionProperty class that is part of PHP's Reflection API. This method makes protected and private attributes (unfortunately, the class is called ReflectionProperty instead of ReflectionAttribute) of a class or object accessible for the ReflectionProperty::getValue() and ReflectionProperty::setValue() methods, thus making protected and private attributes "open" for full read and write access from the outside.

comment save report
category icon

Five common PHP design patterns

in PHP added by goodphptutorials, on 16/12/2008 advanced tutorials oo programming patterns php5

Design patterns are just for Java™ architects -- at least that's what you may have been led to believe. In fact, design patterns are useful for everyone. If these tools aren't exclusive to architecture astronauts, what are they, and why are they useful in PHP applications? This article explains.

comment save report
category icon

Design Patterns Quick Reference

in PHP added by goodphptutorials, on 31/12/2008 design patterns oo programming php5

So every time I am designing something new I find myself either searching Google or opening up a gang of four (GoF) book to aid me. I searched for a bit trying to find a handy-dandy flash card showing class diagrams and purposes for the basic GoF patterns but was unable to locate a good one (for free). So I made my own.If you see any mistakes or improvements please post here and I will update the docs.

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

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

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