Two topics on PHP

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
omidkamangar
Forum Newbie
Posts: 16
Joined: Sun Jul 30, 2006 2:51 pm

Two topics on PHP

Post by omidkamangar »

Hi,
I have heard two things about PHP :
1- It is dynamically compiled (PHP5).
2- It can be used as standalone binaries.

I need more information about this two topics for my presentation on the day after tomorrow. I googled but found nothing.
Can anyone help me with this two topics? It is really urgent. :(
User avatar
guitarlvr
Forum Contributor
Posts: 245
Joined: Wed Mar 21, 2007 10:35 pm

Post by guitarlvr »

PHP is not a compiled language. It is just parsed by the web server. I'm not exactly sure what you mean by standalone binaries.

Wayne
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

Try checking out the PHP Manual. It is a great tool.

PHP is interpreted, not compiled. That means that every page is run through the PHP engine on every call and interpreted (or processed) on every call. As for be used as stand alone binaries... what do you mean by that?
omidkamangar
Forum Newbie
Posts: 16
Joined: Sun Jul 30, 2006 2:51 pm

Post by omidkamangar »

In the book from Wiley called PHP5 and MySQL Bible, I read that PHP is now dynamically compiled and can be run as standalone binaries.
I will send the exact page numbers soon.
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Post by Christopher »

There are PHP compilers around ... but 99.9% of the time PHP is run as an interpreted language from within a webserver. That is how it is designed to be run. I do not believe there is an official support by the PHP Group for compiled PHP program binaries.
(#10850)
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Post by Weirdan »

php scripts as standalone executables: http://ua2.php.net/bcompiler
and yes, php is 'compiled' just like java is.
Post Reply