Skip to the main content

Professional paper

https://doi.org/10.19279/TVZ.PD.2015-3-1-09

EXTENDING PHP WITH MODULES

Davor Lozić orcid id orcid.org/0000-0002-0750-5162 ; Zagreb University of Applied Sciences, Zagreb, Croatia
Alen Šimec orcid id orcid.org/0000-0001-6715-861X ; Zagreb University of Applied Sciences, Zagreb, Croatia


Full text: english pdf 638 Kb

page 74-79

downloads: 291

cite


Abstract

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, but with
small modifications, it should also work on other
Linux distributions.

Keywords

Internet; php; modules; source code; variables; Debian Linux

Hrčak ID:

194720

URI

https://hrcak.srce.hr/194720

Publication date:

16.3.2015.

Visits: 586 *