Re: [PHP] Unload/reload included class

2011-01-05 Thread David Harkness
On Tue, Jan 4, 2011 at 4:44 PM, Patrik Pomichal wrote: > Loading plugin is easy, when my app found new file in plugins dir, > include and register it. But if i change the plugin source i must restart > the app to reload it. If you don't mind the resource burn (memory) of loading a lot of code ov

[PHP] Unload/reload included class

2011-01-04 Thread Patrik Pomichal
Hi there, I trying to create CLI php application. It running continuously (server) and it will has a plugins. I want load, unload and reload plugins on the fly, without stop the application. Loading plugin is easy, when my app found new file in plugins dir, include and register it. But if i chan