Hello everyone, I'm a newbie and have a question on style that I've not
seen addressed anywhere. I have a large number of frequently used
functions that I'm trying to find a good way to organize. The method
I'm thinking of using is to simply create a .php file called, for
example,
Unless the file is getting retartedly big (10-20K), then I wouldn't separate them.
Though if you have enough functions, you could justify making separate files for your
database functions, output functions, backend functions, etc.
Martin Clifford
Homepage: http://www.completesource.net
, 2002 4:01 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED];
[EMAIL PROTECTED]
Subject: Re: [PHP] Newbie Question on Efficiency
Unless the file is getting retartedly big (10-20K), then I wouldn't
separate them. Though if you have enough functions, you could justify
making separate files for your database
If you have have a large number of functions, it might be better to separate
them into a few files that you can include as needed. I use one file that
contains functions needed by every page. I have a few other files that
contain functions that aren't needed by every page, so, I include them only
.
Michael
-Original Message-
From: Monty [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 16, 2002 5:44 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Newbie Question on Efficiency
If you have have a large number of functions, it might be better to
separate
them into a few files that you can
...
-Original Message-
From: Michael Kennedy [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 16, 2002 7:26 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] Newbie Question on Efficiency : Follow-up Question
OK, if I understand C++ correctly, if I write a program and #include
iostream.h
On Tue, Jul 16, 2002 at 06:25:42PM -0500, Michael Kennedy wrote:
OK, if I understand C++ correctly, if I write a program and #include
iostream.h or something similar and compile the program it only
compiles with the used functions in it, right? So, if I never use 'cin'
it leaves that
. Thanks.
Michael
-Original Message-
From: John Holmes [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 16, 2002 8:05 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: [PHP] Newbie Question on Efficiency : Follow-up Question
PHP loads everything up before it starts doing anything
-Original Message-
From: Michael Kennedy [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 17, 2002 1:36 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] Newbie Question on Efficiency : Follow-up Question
Yeah, that's what I figured. With C++ you could find evidence that it
only grabbed
: [PHP] Newbie Question on Efficiency : Follow-up Question
The only reason a compiled language would not include a
function/module/etc
is to reduce the size of the final executable.
Since php doesn't store (barring the caching engines, but they work
differently anyway) a compiled version
10 matches
Mail list logo