The purpose of this article is to show how to extend PHP and build modules. Since PHP is built mostly with C, one must be familiar with C or at least with some programming constructs like variables, loops, structures, unions, macros etc. PHP modules are built when standard PHP abilities doesn’t fit developer’s needs and when a developer wants to create a set of function or a library for which he doesn’t want to provide the original source code. Since PHP is an interpreted language, it’s hard to hide the original source code. Before creating a module, this paper will also explain how PHP variables are handled internally and what tools one must have for creating PHP modules. Source code in this paper will work on Debian Linux distribution, bu...