Arve Bersvendsen wrote:

> 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 functions. Is there any way to circumvent this.

I dont know what a perpetual-running socket server is, but to have a 
main PHP script execute different functions with the same name I guess 
you could play with "include/require" directives or create classes 
with the same function-names you then pass to you main program (kind 
like poor-mans polymorphism :-)

PHP General Mailing List (
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to