TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 12-27-2007, 09:06 PM   #1 (permalink)
The Frequenter
 
Join Date: Dec 2007
Location: In my basement
Posts: 386
Thanks: 47
Aaron is on a distinguished road
Default Compiling PHP?

What exactly is compiling PHP?

I cant find anything on google.
Send a message via MSN to Aaron
Aaron is offline  
Reply With Quote
Old 12-27-2007, 09:45 PM   #2 (permalink)
The Acquainted
 
obolus's Avatar
 
Join Date: Oct 2007
Location: florida
Posts: 110
Thanks: 36
obolus is on a distinguished road
Default

Dunno if this helps. This is a dictionary term, that leans more in the direction of desktop programming.

Quote:
To transform a program written in a high-level programming language from source code into object code. Programmers write programs in a form called source code. Source code must go through several steps before it becomes an executable program. The first step is to pass the source code through a compiler, which translates the high-level language instructions into object code.

The final step in producing an executable program -- after the compiler has produced object code -- is to pass the object code through a linker. The linker combines modules and gives real values to all symbolic addresses, thereby producing machine code.
obolus is offline  
Reply With Quote
Old 12-27-2007, 09:52 PM   #3 (permalink)
The Acquainted
 
sjaq's Avatar
 
Join Date: Nov 2007
Location: Netherlands
Posts: 113
Thanks: 11
sjaq is on a distinguished road
Default

Compiling PHP is the way you install it on your computer..
sjaq is offline  
Reply With Quote
Old 12-27-2007, 11:06 PM   #4 (permalink)
The Contributor
 
Join Date: Apr 2005
Location: Kent, UK
Posts: 54
Thanks: 0
Dr John is on a distinguished road
Default

You write your source code. You upload it to your server. It runs. That's it.

It's not like C where you write source code, then compile to create a standalone executable, then run that.
__________________
www.kidneydialysis.org.uk
Dr John is offline  
Reply With Quote
Old 12-27-2007, 11:07 PM   #5 (permalink)
Wizard
Top Contributor 
 
Village Idiot's Avatar
 
Join Date: Sep 2007
Posts: 1,299
Thanks: 17
Village Idiot is on a distinguished road
Default

Quote:
Originally Posted by Dr John View Post
You write your source code. You upload it to your server. It runs. That's it.
Not true, the server compiles it to a binary then runs it. It has to, the processor does not understand PHP.
__________________

Village Idiot is offline  
Reply With Quote
Old 12-27-2007, 11:34 PM   #6 (permalink)
Moderateur
RegEx Guru PHP Guru Top Contributor Advanced Programmer 
 
Salathe's Avatar
 
Join Date: Apr 2007
Posts: 1,393
Thanks: 5
Salathe is on a distinguished road
Default

Generally when one speaks of compiling PHP, the context is in terms of taking the source code for PHP itself ("Complete Source Code" on the PHP download page) and running a series of programs from the command line to create the PHP executable. That process of going from raw source code into an executable/binary program is compilation. The compiled program (php on linux/unix, php.exe on windows) is what interprets/runs all of our PHP code.

Are you looking to compile PHP yourself, or just looking to see what it's about because you didn't understand the meaning?
Salathe is offline  
Reply With Quote
Old 12-28-2007, 12:34 AM   #7 (permalink)
The Contributor
 
Join Date: Apr 2005
Location: Kent, UK
Posts: 54
Thanks: 0
Dr John is on a distinguished road
Default

Quote:
Originally Posted by Village Idiot View Post
Not true, the server compiles it to a binary then runs it. It has to, the processor does not understand PHP.
So as I said you write it, up load it to the server and it runs.
Because YOU don't compile it. The server does so, but only when requested to run it. A separate compiled version doesn't exist (except in memory), unlike with C. Glad we agree on that.
__________________
www.kidneydialysis.org.uk
Dr John is offline  
Reply With Quote
Old 12-28-2007, 05:53 AM   #8 (permalink)
The Frequenter
 
Join Date: Dec 2007
Location: In my basement
Posts: 386
Thanks: 47
Aaron is on a distinguished road
Default

Oh, that is a very good thing O.o

The first language I learned (or tried to learn) was CPP, and I stopped trying because Dev-CPP didn't work for me, and it was the only free compiler that I knew of.
Send a message via MSN to Aaron
Aaron is offline  
Reply With Quote
Old 12-29-2007, 06:19 AM   #9 (permalink)
Wizard
Top Contributor 
 
Village Idiot's Avatar
 
Join Date: Sep 2007
Posts: 1,299
Thanks: 17
Village Idiot is on a distinguished road
Default

Quote:
Originally Posted by Aaron View Post
Oh, that is a very good thing O.o

The first language I learned (or tried to learn) was CPP, and I stopped trying because Dev-CPP didn't work for me, and it was the only free compiler that I knew of.
Dev C++ always works for me, what didn't work?
__________________

Village Idiot is offline  
Reply With Quote
Old 12-29-2007, 06:29 AM   #10 (permalink)
The Frequenter
 
Join Date: Dec 2007
Location: In my basement
Posts: 386
Thanks: 47
Aaron is on a distinguished road
Default

Everything O.o.

The thing would never compile properly. It opened up a DOS prompt and closed it like instantly, and that was what happened. No .exe or anything.
Send a message via MSN to Aaron
Aaron is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 06:31 AM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design