Module Engine
Posted: Sun Mar 28, 2004 2:42 pm
If anyone knows of a decent module engine, or sample script, please let me know. I'm having a rough time making a reloadable module engine for my latest project (almsot done).
What i need to do is load a module in at runtime (just like including).. and if possible, while the script is running, to have the option to be able to reload that included module, with an updated module.
include_once, and the rest of the functions work now for including the file, but there's no way to overwrite the existing function definitions... I need to literally flush the included module from memory, and reload it with a new copy.
If anyone has any leads, please, let me know.
Thanks in advance.
What i need to do is load a module in at runtime (just like including).. and if possible, while the script is running, to have the option to be able to reload that included module, with an updated module.
include_once, and the rest of the functions work now for including the file, but there's no way to overwrite the existing function definitions... I need to literally flush the included module from memory, and reload it with a new copy.
If anyone has any leads, please, let me know.
Thanks in advance.