Stopping execution of an included php file...from a class function
<p>I'm trying to devise a plugin system for a simple web app I'm developing.</p>

<p>Each plugin begins with the function call register_plugin that contains that plugins info, like name, description, etc.</p>

<p>I want to be able to set a mode, say, to 1, and then have the ability to include the plugin file, have it call the register_plugin, and then EXIT the included script only. I know that I can stop execution with a simple <code>return;</code>, however, the register_plugin function is located in a different file, a class, so I can't simply call return because that will only end the function.</p>

<p>How can I do this?</p>

<p>Thanks.</p>
