Re: How do we manage large code sets in PHP? [message #169660 is a reply to message #169657] |
Tue, 21 September 2010 23:29 |
Jerry Stuckle
Messages: 2598 Registered: September 2010
Karma:
|
Senior Member |
|
|
On 9/21/2010 7:07 PM, Michael wrote:
> In C/C++ we create manageable files and compile/link them together
> into a single executable. What do we do in PHP?
First of all PHP is not compiled - it is interpreted. So you don't
compile or link them.
But basically, you do it the same as in C/C++ - modularize your code,
use functions and classes as appropriate. But where the C/C++
compile/link step effectively includes everything together into one
file, you do it yourself with include statements in your main module
(and others, as necessary).
Not really that hard once you get used to it. And despite what TNP
claims, PHP is used for a lot of things other than web pages. But then
he thinks a return statement is the same as a goto, so what do you expect?
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
|
|
|