You are here: Compiling PHP Code To Machine Code « All PHP « IT news, forums, messages
Compiling PHP Code To Machine Code

Posted by MBS on 11/03/05 01:22

As far as I know PHP code is always a script which is interpreted by the
PHP interpreter, compiled to machine code, then executed by the CPU. Much
like Java, one could say. (I am not talking about the source code to PHP
itself; rather, the code that one using the PHP language would write.)

However, since the interpreter has to compile the PHP source prior to
execution, it is being compiled anyway, so why not just compile it from the
beginning and save the overhead required by the interpreter, thus allowing
the code to run faster?

I'm new to PHP. So I was just wondering. I'm using PHP with Apache. From
what I understand compiled executables can be used with Apache via CGI or
something. Not quite sure how that works.

If anyone wishes to clue me in I'd appreciate it. Thanks.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация