• Increase font size
  • Default font size
  • Decrease font size

Loading PHP extensions by name

Today, PHP extensions are loaded using their file names. Unfortunately, this filename depends on the operating system. So, when they want to activate an extension, newcomers are confused about the exact directive they must add to the php.ini file. The php.ini comments are also very confusing, using the word 'extension' as a synonym for 'file suffix' and providing examples using the windows syntax only.

 

PHP - Improve object to scalar conversion

(1 vote, average 4.00 out of 5)

The __toString() magic method allows to convert an object to a string. This mechanism can be extended to allow converting to other scalar types. New rules can also allow converting the value, even when the specific method is not implemented.

 

PHP friend classes

This concept is adapted from C++. A 'friend' class can access the 'protected' members of the class in which it is declared as a friend.

 

Automap advanced concepts

This document lists advanced concepts you generally don't need to use Automap.

 

Introducing Automap

This brief documents presents the essential concepts behind Automap and the main benefits it can bring to your applications.

 

Comparing PHP autoloaders

This document lists the pros and cons of the various autoloading mechanisms existing in the PHP world.

 

Automap Tutorial

This tutorial shows :

  • how to build a map file,
  • how to check its content,
  • how to use it at runtime.