Chat with us, powered by LiveChat
Hypertext Preprocessor | PHP | Part 1

Hypertext Preprocessor | PHP | Part 1

Hypertext Preprocessor | PHP

PHP (acronym for PHP: Hypertext Preprocessor) is an open scripting language mainly used for producing dynamic Web pages via an HTTP but can also function as any language interpreted locally by running the command line programs. PHP is a language with imperative since version 5 features full object model. Due to its rich library, sometimes it is referred to as a PHP platform more than just language.

The PHP language was created in 1994 by Rasmus Lerdorf for its Web site. It was originally a software library in Perl which he used to keep track of visitors who came to view their CV. Gradually, as he added new features, Rasmus has transformed the library into an implementation in C language, can communicate with databases and create dynamic applications for the Web and simple. Rasmus chose in 1995 to publish its code, so that everyone can use and enjoy. PHP then called PHP / FI (Personal Home Page Tools / Form Interpreter).

In 1997, two students, Andi Gutmans and Zeev Suraski, redeveloped the heart of PHP / FI. This work culminated a year later than version 3, PHP, now then PHP: Hypertext Preprocessor. Shortly after, Andi Gutmans and Zeev Suraski began rewriting engine for PHP. It was this new engine called Zend Engine that was the basis for the PHP version 4

The current version is Version 5, Release 13 July 2004. It uses Zend Engine 2 and introduces a model object, an error management model based on the exceptions, and management capabilities for enterprises. PHP 5 brings many new features, such as support for SQLite, which is a lightweight database management board, to the detriment of the client library of MySQL, more powerful but no longer enabled by default, so as means to manipulate files and XML structures based on libxml2:

* A simple API called SimpleXML;
* Document Object Model API quite complete;
* XPath interface using SimpleXML and DOM objects;
* Integration of libxslt for XSLT transformations via XSL extension;
* A much better management of objects from PHP 4, with possibilities that tend to resemble those of Java.

PHP – Key Features

PHP is a programming language specific domain, ie, its scope extends to a playing field that is web development, although variants such as PHP-GTK. Its main purpose is to implement web solutions fast, simple and efficient.


Speed and robustness
* Structured and object oriented
* Portability – platform independence – write once, run everywhere;
* Weak Typing
* Syntax is similar to C / C + + and Perl

PHP | Versions:


Two Israeli developers at the Technion, Zeev Suraski and Andi Gutmans, rewrote the parser in 1997 and formed the base of PHP 3, changing the name of the language to the current form. Public immediately began experiments PHP3 and was officially launched in June 1998. In 1999, Suraski and Gutmans rewrote the PHP code, producing what is now known as the Zend Engine. They also founded Zend Technologies in Ramat Gan, Israel.


In May 2000, PHP 4 was released under the power of the Zend Engine 1.0. On July 13, 2007 announced the suspension of support and development of version 4 of PHP, though it announced it has released a new version with improved security, 4.4.8 released on January 13 2008 and later 4.4.9 version published on August 7, 2008.


In June 2004, version 5 of PHP was released, introducing a new model of object orientation, including the reformulation of constructors and destructors adding, access visibility, abstraction of object and object interfaces.

Treatment of PHP objects was completely rewritten, allowing better performance and more features. As in the previous version was take much effort to attend to object orientation and patterns of projects (some were not possible), PHP 5 has come to remedy this deficiency. Still suffers accordingly, however, problems due to a weak typed language.

On July 13, 2004, PHP 5 was released, using the Zend Engine 2.0 (or Zend Engine 2). The latest version of PHP is 5.3.4 (10 December 2010), which includes all the advantages provided by the new Zend Engine 2 as:

* Better support for OOP, which earlier was extremely rudimentary.
* Performance improvements.
* Better support for MySQL extension completely rewritten.
* Better support for XML (XPath, DOM, etc.).
* Native support for SQLite.
* Integrated support for SOAP.
* Iterators data.
* Exception handling.
* Improvements to the implementation with Oracle.

Yet they are still running versions of the 5.2.x branch, with the 02/05/1914 version published July 22, 2010, although most are security updates


PHP 6 is scheduled to launch soon. At its launch this new version will be only two active branches in development (PHP 5 and 6), as they left the development and support of PHP 4 on July 13, 2007,

The differences compared to PHP 5 are:

* Unicode support;
* cleaning obsolete features like register_globals, safe_mode, etc.;
* PECL ereg support and disposal;
* improved object orientation;
* inclusion in the core XmlReader and XmlWriter and Fileinfo;
* return by reference will return an error;
* withdraws support libraries and GD1 FreeType1;
* etc.



Leave your comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.