http://www.php.net/manual/en/function.include-once.php
http://www.php.net/manual/en/function.function-exists.php
HTH,
-Andy
> -Original Message-
> From: Taylor York [mailto:[EMAIL PROTECTED]]
>
> I am having a problem with two scripts that use the same function name.
> The two functions
I am having a problem with two scripts that use the same function name.
The two functions do the exact same thing...but when the include files are
called, the second file recieves a redeclare error.
Suggestions?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://w
Arve
PHP has variable function names:
$myfunc = "this_is_a_func" ;
$foo = $myfunc( ) ;
This way, you can make a single function call access a number of different
functions at run time. You can't change the declaration, but you can change
the call...
You don't really say what you are planning
As a small, personal, "enjoy-myself"-project I'd like to run a
perpetual-running socket server. Problem is; I also want it to be
self-modifying so I can insert, remove and change functions as the
server is running.
The problem is; under normal circumstances, PHP won't let the script
redeclare
4 matches
Mail list logo