Hey all. This is my first post so I thought I would ask.

I am developing a script which runs on PHP with MySQL Backend. The scipt will have a main interface where users can add custom written modules to be displayed. These modules will be written by different people and multiple modules can be displayed on the page. These plugins will be seperate php files which will be included when needed

The problem is, that if there are 2 different modules that have the same function declared, this will cause an error. I need a way where I can include the file, evaluate it and then close it so as not to cause this problem or any other way to alleviate this problem.

Any suggestions?