Facebook Twitter


Doctrine. Zend. Five common PHP design patterns. Editor's note: See the follow-up article "Five more PHP design patterns" to learn about five additional design patterns that you might find useful.

Five common PHP design patterns

Design patterns were introduced to the software community in Design Patterns, by Erich Gamma, Richard Helm, Ralph Johnson, and John Vlissides (colloquially known as the "gang of four"). The core concept behind design patterns, presented in the introduction, was simple. Over their years of developing software, Gamma et al found certain patterns of solid design emerging, just as architects designing houses and buildings can develop templates for where a bathroom should be located or how a kitchen should be configured.

Having those templates, or design patterns, means they can design better buildings more quickly. The same applies to software. Ajax Fancy Captcha - jQuery plugin - Drag and Drop Captcha Demo What is it: Ajax Fancy Captcha is a jQuery plugin that helps you protect your web pages from bots and spammers.

Ajax Fancy Captcha - jQuery plugin -

We are introducing you to a new, intuitive way of completing “verify humanity” tasks. In order to do that you are asked to drag and drop specified item into a circle. Captcha’s security level is medium, with the emphasis on nice looking and user friendly qualities while still offering reasonable protection from unwanted “guests”.


PHP Tutorials Examples Convert BMP to JPG. <?

PHP Tutorials Examples Convert BMP to JPG

Php /** * * @convert BMP to GD * * @param string $src * * @param string|bool $dest * * @return bool * */ function bmp2gd ( $src , $dest = false ) { /*** try to open the file for reading ***/ if(! Debugging PHP with xDebug inside of Eclipse PDT 2.1. Wrapping C++ Classes in a PHP Extension. One of the most common reasons people write extensions for PHP is to link against an external library and make available its API to PHP userspace scripts.

Wrapping C++ Classes in a PHP Extension

Often the external library is written in C or C++. If you are tasked with writing such an extension that links against an object oriented C++ library, you will probably want to wrap the C++ classes and make them available to PHP userspace scripts. Resizing images with PHP. The following script will easily allow you to resize images using PHP and the GD library.

Resizing images with PHP

If you’re looking to resize uploaded images or easily generate thumbnails give it a try Update: Looking to resize transparent PNG’s and GIF’s? We’ve updated our original code, take a look at Usage Save the code from the ‘the code’ section below as SimpleImage.php and take a look at the following examples of how to use the script.


Drupal. Référence des fonctions.