RE: [PHP] Conditional Functions

2004-04-22 Thread Jay Blanchard
[snip] I was wondering if using conditional functions would save resources. The thing is that there's many functions in the code I'm using, but most aren't used in each case. I was thinking that maybe, even if the functions are in the included files, I could not define them making them

RE: [PHP] Conditional Functions

2004-04-22 Thread Chris W. Parker
Anguz mailto:[EMAIL PROTECTED] on Thursday, April 22, 2004 12:21 PM said: I was wondering if using conditional functions would save resources. The thing is that there's many functions in the code I'm using, but most aren't used in each case. I was thinking that maybe, even if the

Re: [PHP] Conditional Functions

2004-04-22 Thread Torsten Roehr
Maybe you could group them by purpose and put them into different include files. Then you just include the file containing the functions you need at this point in the script. Regards, Torsten Roehr Jay Blanchard [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] [snip] I was wondering if

Re: [PHP] Conditional Functions

2004-04-22 Thread Anguz
[snip] Maybe you could group them by purpose and put them into different include files. Then you just include the file containing the functions you need at this point in the script. Regards, Torsten Roehr [/snip] The functions are already grouped in different files, but even then, not all the

Re: [PHP] Conditional Functions

2004-04-22 Thread Anguz
[snip] how do you not define a function but put it in an include file at the same time and still have it be useable? chris. [/snip] Look at example 12-2 here: http://www.php.net/manual/en/language.functions.php If I don't define them, I don't expect them to be usable, that's the point. I don't

Re: [PHP] Conditional Functions

2004-04-22 Thread Anguz
[snip] Jay Blanchard wrote: It might, have you experimented with any code? [/snip] Haven't yet, although I plan to. I wanted to check with more knowledged people than I first in case this was an already known thing :) Anguz -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Conditional Functions

2004-04-22 Thread John W. Holmes
From: Anguz [EMAIL PROTECTED] So I thought that maybe I could only define the needed ones in each case, although there's more in the include file. Example: if ($in_array('Hello', $functionArray)) { function Hello() { echo 'Hello'; } } I understand that the whole php file will be

RE: [PHP] Conditional Functions

2004-04-22 Thread Chris W. Parker
Anguz mailto:[EMAIL PROTECTED] on Thursday, April 22, 2004 3:17 PM said: [snip] how do you not define a function but put it in an include file at the same time and still have it be useable? [/snip] [snip /] If I don't define them, I don't expect them to be usable, that's the point. I