Creating Real Time Applications with PHP and WebSockets

Explore the main PHP libraries used to create real time, bi-directional applications between clients and servers over WebSockets.

Posted by on 3 July 2014 | 4:41 pm

Top 11 Best Practices for PHP Development

Right from its inception, PHP was widely used to develop web based applications. Since PHP is a scripting language, one must follow some rules while developing. Error reporting, DRY approach, Indentation and Use of whitespace, Meaningful and consistent naming standards, Deep Nesting, adequate comments, phpInfo() function, user input, Cache mechanism, extra variables, frameworks

Posted by on 20 June 2014 | 11:18 am

Exploring PHP Design Patterns

Design patterns provide a generic reusable solution to common problems. A design pattern is not a concrete solution that can be converted in to source code or a machine code rather it is a template which can be used to solve a problem in different situations. Design patterns help in faster development as the templates are proven and from the developer's point, only implementation is required. Design patterns not only make software development faster but also encapsulate big ideas in a simpler way. Factory Pattern, Singleton Pattern, Observer Pattern, Chain of Command Pattern, Strategy Pattern

Posted by on 28 May 2014 | 10:03 am

Introduction to PHP Message Services

Learn more about the ins and outs of the main message services available in PHP--Semaphore, Gearman, and JMS (through Quercus and PHPMQ).

Posted by on 21 May 2014 | 5:47 am

PHP and Zend Engine Internals

Version 1.0 of the Zend Engine functions much like the heart and brain of PHP 4.0. It contains the process that provides the sub-structure and facilities to the functional modules. It also implements the language syntax, as well. The Zend Engine 1.0 is actually the second revision of the PHP scripting engine. It is still based on the same rules as the PHP 3.0 engine that was basically Zend Engine 0.5. Now it is permissible to migrate the path from PHP 3.0 to 4.0. The development has the same ‘state of mind’ as per PHP 3.0. We feel it is right time to start working towards a revision of the Zend Engine. It would also incorporate new structures and solutions to some of the most difficult problems faced by the PHP designer or developers

Posted by on 28 April 2014 | 12:02 pm

Lambdas in PHP

about lambda expressions and lambda PHP functions, then step through different example--from basic lambda functions, recursive lambda functions, lambda functions in PHP arrays and in PHP classes.

Posted by on 16 April 2014 | 3:24 am

Using PHP Configuration Patterns Properly

There are several ways to make a PHP application configurable. There are also ideal configuration points which are industry standard. These points will determine whether a PHP application is too configurable or too closed. If a PHP application is for a client installation then it should be configurable enough to fit custom requirements. There are different techniques available for storing configuration settings and the options are discussed

Posted by on 3 April 2014 | 3:03 pm

Processing JSON in PHP

how to parse and serialize a JSON object, how to extract data from a database as a JSON string, how to store a JSON object into a database and in the last section of this article you have seen how to encrypt and decrypt a JSON object using OpenSSL.

Posted by on 20 March 2014 | 11:35 am

Advanced Debugging in PHP

Debugging is one of the most important and significant part of software development. Finding bugs and errors in any application is a tedious task for the developers. So, proper debugging mechanism should be adopted to make the process easier. Without following proper debugging process, software bugs and errors can not be detected easily and efficiently. As per PHP programming model, we should be aware of all the tools available for debugging and eliminating malfunctioning components from our software system. In this article we will concentrate on the core PHP debugging process. The core mechanism consists of the process of using the program to trace errors and discrepancies. The out-put is gathered through the script execution and displayed at the end of the script.

Posted by on 27 February 2014 | 3:03 am

Using an Azure Database from PHP on Linux

The cloud is the newest buzzword in all things development, and there are many different options for utilizing the nebulous cloud. Amazon Web Services, Microsoft Azure, and Digital Ocean (just to name a few) are some providers that give you various levels of cloud computing. While all three give you Virtual Private Hosting, Microsoft has stepped up their offering.

Posted by on 24 February 2014 | 1:54 pm

Extending Codeigniter Core Libraries to Add Your Own Functionality

Codeigniter is an PHP framework built on the MVC design pattern. There is no doubt that it is popular, it's the most forked PHP project on Github ever, the second most watched PHP project on Github, and has a large group of followers and contributors. Why is it so well loved? The answer is that you can add your own functionality to the Codeigniter core without even breaking a sweat. You can extend the core controllers, models, and just about everything else with relative simplicity. Let's have a look at how we can do that.

Posted by on 28 January 2014 | 9:04 pm

Implementing Secure Passwords in PHP 5.5

PHP has always had a few simple ways to implement password hashing to an extent. MD5 and SHA1 are examples of this, but the security of these methods is not what it should be. Many developers use MD5 and SHA1 without even adding a SALT, which is a string that helps to add complexity to the application. Some developers use something as awful as base 64 encoding and decoding simply because they can be easily manipulated. But these things are not secure folks, and the clever people who want to hack your site or steal your money can see right through them. Yes, they can.

Posted by on 22 January 2014 | 4:16 am

What is PHP-FIG and What are They Doing?

PHP-FIG is the short name for the PHP Framework Interop Group (am I the only one who finds the naming of PHP groups and libraries after fruits amusing?) and their mission is simple: to find a way to get the PHP frameworks to work together.

Posted by on 31 December 2013 | 11:01 am

What's New in PHP 5.4

PHP advancements, PHP 5.4

Posted by on 20 December 2013 | 11:15 am

Clustering in PHP: Session Management

explored using the file system in various configurations to help cluster PHP. This final installation will explore another method that doesn't utilize PHP's session management in any way.

Posted by on 26 November 2013 | 7:38 am

Implementing Automatic Database Backup and Optimization in PHP

Every computer system has a backup. Nevertheless, the number of problems caused by a lack of a recent backup is huge. One of the reasons for that may be the fact that the backup process is not entirely automated. So, let's see how to automate the database backup process in PHP.

Posted by on 20 November 2013 | 4:01 pm

Clustered File Systems and PHP

clustering in PHP with this latest installment. Learn how to use GlusterFS to add an additional load balancer as a hot spare

Posted by on 30 October 2013 | 1:16 pm

Introduction to Clustering in PHP

It is almost an implicit standard for a modern web app/service to be fault tolerant and load balanced. Depending on the technologies involved, achieving a proper level of each can be difficult. This series will explore a few ways to handle each in PHP.

Posted by on 16 October 2013 | 2:24 pm

PHP Session Management and REST Based Applications

PHP, session management,

Posted by on 26 August 2013 | 7:55 pm