RE: [PHP] redeclaring functions

2002-06-26 Thread Andrew Chase
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

[PHP] redeclaring functions

2002-06-26 Thread Taylor York
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

Re: [PHP] Redeclaring functions

2002-01-13 Thread Geoff Caplan
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

[PHP] Redeclaring functions

2002-01-10 Thread Arve Bersvendsen
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