The Core of PHP

Recently I had some study about the PHP. It is my favorite language from C. The PHPI really want to know what exactly happening inside the PHP. Ok, here are the information. As you know the PHP is written in C. The PHP’s core contains two parts, the first and lowest level is the Zend Engine and the second is the PHP Core.

The Zend Engine:

It handles parsing a human-readable script into machine-readable tokens, and then executing those tokens within a process space. ZE also handles memory management, variable scope, and dispatching function calls.

The PHP Core:

PHP handles communication with, and bindings to, the SAPI layer (Server Application Programming Interface, also commonly used to refer to the host environment – Apache, IIS, CLI, CGI, etc). It also provides a unified control layer for safe_mode and open_basedir checks, as well as the streams layer which associates file and network I/O with userspace functions like fopen(), fread(), and fwrite().

You can get the php source code form the svn, from this source you can compile it for your purpose.

The SVN Path

//PHP 5.2:
svn checkout http://svn.php.net/repository/php/php-src/branches/PHP_5_2 php-src-5.2
//PHP 5.3:
svn checkout http://svn.php.net/repository/php/php-src/branches/PHP_5_3 php-src-5.3
//PHP 6:
svn checkout http://svn.php.net/repository/php/php-src/trunk php-src

For the coming articles you will find some interesting things about PHP.

About Midhun Devasia

I'm a 26 year old Web Developer from Cochin, India.I had completed my B.Tech Computer Science and Engineering from SNGCE, Cochin. Now am working as a Technical Manager for a Web Development company at Cochin, India . I have 1 year experience in Java and 3 year experience in Web Technologies.
This entry was posted in PHP and tagged , , , . Bookmark the permalink.

9 Responses to The Core of PHP

  1. sujith says:

    hi midhun,,, great work. keep it up.

  2. nithin says:

    hi….good work

  3. Prajina says:

    Excellent midhun….!!!!!!!

  4. Sreejith Sreedharan says:

    Zend engine seems similar to Java Runtime Environtment……

    very interseting………

  5. Linish says:

    Hi,
    Nice Work, Informative

  6. Nisanth says:

    Hi Midhun,
    Nice work…..

  7. Prasanth P says:

    Hi..

    Gud article. :)

    keep it up.

  8. Benson says:

    good work…excellent
    keep it up.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>