Implicit Evaluation with PHP

Implicit Evaluation with PHP Archives: OOP

·

4 May 2007

Benchmarking PHP Threads

All threads can now both hear and report on conditions. A problem with the original send/recieve mechanism made threads hang the controlling thread while long operations were occurring.

continue reading... » One Comment

3 May 2007

Communicating with threads in PHP

Earlier this week, I suggested PHP could be multithreaded. The sample I provided was very simple and at least one reader quickly wondered how to communicate with threads.

continue reading... » 5 Comments

1 May 2007

Multi-threading strategies in PHP

PHP does not have threading anywhere in its massive core. We can, however, fake it by relying on the underlying operating system instead of PHP. This article will show you how.

continue reading... » 10 Comments

8 February 2007

Managing Variable Scopes While Using Templates

PHP’s rules for variable’s scopes can make coding complex templates difficult. Today, I’ll show you several methods to make it easier.

continue reading... » 0 Comments

24 October 2006

Session Management in PHP

Session management is one of the features that sets PHP apart from other languages which happen to be used on the web. It is easy enough to understand how to use $_SESSION, but many programmers seem to learn how to use it and nothing more.
$_SESSION serves a single, useful purpose. It makes variables available across […]

continue reading... » 0 Comments

14 September 2006

Objects and Arrays in PHP

In PHP, Objects and Arrays are very similar. Objects can easily be cast as an array with get_object_vars, and a simple foreach loop can easily construct an stdObject from an array. Their similarities mean there is little you can do with one that you cannot do with the other. Some of the differences (at first […]

continue reading... » One Comment

15 June 2006

Differences between PHP4 and 5’s Object Model

Listen to any OOP-fanatic for more than 5-minutes talk about the difference between PHP4 and 5 and you’ll hear them carry on about the vast improvements to PHP’s object model. But what are those changes, exactly? There are only three I’ve ever heard promoted: destructors, tostring(), and objects getting passed by reference by default.
There […]

continue reading... » 0 Comments

12 April 2006

On Object Oriented Programming

There are three ways to program: functionally, procedurally, or object-oriented-aly. Any Turing-complete language will effectively let you use any of those types for development. Stereotypically, though, Scheme is a functional language, C is a procedural language, and Java is an object-oriented language.
For my own real-world use, I tend to use a hybrid procedural/OOP style. […]

continue reading... » 0 Comments

·