Re: [PHP] Automatic include of files containing functions

2002-12-11 Thread R'twick Niceorgaw
I don't know about the efficiency .. but to do it .. you can use function_exists() to see if a function is already defined if not include the file for that function before using a function. HTH - Original Message - From: Dave [Hawk-Systems] [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent:

RE: [PHP] Automatic include of files containing functions

2002-12-11 Thread Dave [Hawk-Systems]
I don't know about the efficiency .. but to do it .. you can use function_exists() to see if a function is already defined if not include the file for that function before using a function. Please check this for viability... # the directory ./includes/ contains # - get_my_info.php

Re: [PHP] Automatic include of files containing functions

2002-12-11 Thread Matt Vos
To your first question, I'm sure it can only increase efficiency. To the second, think the other way around possibly... Within your script, do the following (or something along these lines): Pull a list of your includes directory into an array ($all_functions in my example) /** $file is the

RE: [PHP] Automatic include of files containing functions

2002-12-11 Thread Dave [Hawk-Systems]
Here is what I am looking at for a partial solutions (see redirect missing function error for my next hurdle)... All functions are contained within individual files in a functions directory, none of which are hard included into the PHP pages; eg// ./functions/ShowThis.php