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

browse by tag: php5

sort by

newest, oldest, most popular


category icon

The Magic __set_state Method in PHP5

in PHP added by goodphptutorials, on 10/9/2006 __set_state advanced tutorials magic methods methods php5 set_state

It is fairly self-evident how to use most of the magic methods of PHP 5. However, it is not quite so apparent how to use the __set_state method introduced in PHP 5.1. In this article, Peter lavin delves into this elusive magic method to show you how to use this gem in some really 'classy' object oriented PHP.

comment save report
category icon

How to Install PHP 5 on Linux

in PHP added by goodphptutorials, on 21/12/2007 beginner tutorials installation linux php5

This tutorial explains the installation of Apache web server, bundled with PHP and MySQL server on a Linux machine. The tutorial is primarily for SuSE 9.2, 9.3, 10.0 & 10.1, but most of the steps ought to be valid for all Linux-like operating systems.

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

Programming eBay Web Services with PHP 5

in PHP added by goodphptutorials, on 3/11/2006 api ebay networking php5 webservices

Over the last ten years, eBay has emerged as a platform where people can buy and sell practically anything. With more than 135 million users worldwide, eBay is a thriving online marketplace. Best of all, eBay isn't constrained by HTML. By using eBay's web services APIs, members of the eBay Developers Program can hook into the eBay platform using XML to integrate eBay into their own applications.

comment save report
category icon

Never write the same code twice: Dependency Injection

in PHP added by goodphptutorials, on 20/11/2009 dependency injection oo programming php5

Is Dependency Injection difficult? Is it hard to do? Certainly it provides value. Particularly in Php, but also in other object-oriented languages, Dependency Injection gives steroids to the process of class reuse, designing components as loosely coupled objects.

comment save report
category icon

How to Use PHP Namespaces, Part 1 The Basics

in PHP added by goodphptutorials, on 15/7/2009 namespace oop php5

Namespaces are one of the most significant changes in PHP 5.3. They will be familiar to C# and Java developers, and they are likely to change the structure of PHP applications for the better. [...] Name collision problems can be solved with namespaces. PHP constants, classes, and functions can be grouped into namespaced libraries

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

Writing a CMS/Community with Smarty and the Zend Framework Part 6

in PHP added by prodevtips, on 7/12/2007 AJAX advanced tutorials content management oo programming php5

Shows how to setup a gallery with multiple uploads through a Shockwave made with the Flex SDK, also shows how to extend Zend Session to setup custom session ids.

comment save report
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

How to make a Line Chart Class with gdLibrary

in PHP added by PartDigital, on 2/6/2007 Chart Graph advanced tutorials class dynamic gdLibrary image php5

Learn how to make a Line Chart Class that you can use over and over again!

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

How to Use PHP's Crypt() Function to Encrypt and Check a Password

in PHP added by Walkere, on 28/1/2008 beginner tutorials encryption passwords php5 security

This tutorial will walk you through using PHP's crypt() function to effectively encrypt a password for storage in a database and later check that password against a user's input.

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

Writing a daemon in PHP

in PHP added by besx, on 22/12/2009 daemon linux php5

Many browser based games need to run processes in the background to fulfill special tasks. Think of a chatsever that handles incoming messages and broadcasts them to all connected clients. For such a purpose one cannot rely on user-executed scripts or cronjobs. We need an approach that runs a set of commands all the time as a background process on the server. This is where daemons come in handy.

comment save report
category icon

Parsing with Zend HTTP Client

in PHP added by prodevtips, on 28/3/2009 oo programming parsing php5 zend framework

Example of how Zend HTTP Client is used when parsing statistics, logging in to sites and handling cookies.

comment save report
category icon

PHP Captcha Tutorial (in-depth)

in PHP added by techusky, on 2/1/2008 advanced tutorials captcha php5 security verification

This CAPTCHA script allows a user to easily customize things such as the string length, minimum and maximum font size, image size, the font used, and even the characters used, etc... Unlike most CAPTCHA scripts that generate the random text based on an md5 hash of the time, this one lets the user input specific numbers, uppercase, and lowercase characters they want used (or don't want used) in the creation of the CAPTCHA image. It also assures, regardless of the length of the string, that there is at least both 1 random upper and lowercase character in the string, thus making it more difficult for bots. Another feature in this script is that it randomly rotates each character on the image.

comment save report
category icon

Prepare for PHP 5.3

in PHP added by goodphptutorials, on 31/7/2009 cakephp migration php5 ubuntu

PHP 5.3 is a big leap forward for PHP and brings of a lot of neat features. However, big leaps can also mean big changes and potentially big breakage when it comes to backwards compatibility. I did some experimenting with running a big legacy application and a CakePHP application on PHP 5.3 and would like to share my findings with you. Here are a couple of tips to prepare your code for PHP 5.3

comment save report
category icon

Faceoff: CodeIgniter vs CakePHP

in PHP added by goodphptutorials, on 7/2/2010 cakephp codeigniter framework php5

In the red corner, we have CakePHP, the heavyweight fighter with guns to show. In the blue corner, we have CodeIgniter, the lightweight fighter, quick on the feet.

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

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

AJAX Chat Tutorial Part 3:Storage Medium, XML and the Message Process

in PHP added by CalEvans, on 30/12/2006 AJAX chat oo programming php5

As our chat application gathers pace we return to the server side of the application. At this point we have setup the Zend Framework with an IndexController class to handle server requests.

comment save report
category icon

Add Power to Your PHP With Multi-Tiered Applications

in PHP added by goodphptutorials, on 16/4/2009 multi-tier mvc php5

As PHP applications become more and more complex, it can be easy to end up with a tangled mess of code that makes maintenance nearly impossible. Applying the concept of tiered applications can help to alleviate some of the difficulty in maintaining complex applications.

comment save report
category icon

Enhancing a URL Handling Helper Class in PHP 5

in PHP added by goodphptutorials, on 12/8/2009 beginner tutorials general php5 url

Are you a PHP developer wishing to find an approachable guide that walks you through building different kinds of helper classes in PHP 5? Then look no further, because this group of articles may be the material that you really need.

comment save report
category icon

PHP Exception Handling

in PHP added by goodphptutorials, on 21/11/2007 beginner tutorials exception php5

With PHP 5 came a new object oriented way of dealing with errors. Exception handling is used to change the normal flow of the code execution if a specified error (exceptional) condition occurs. This condition is called an exception.

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