Hello All (cc Ivo), We have numerous modules in various software titles and these are included by a simple conditional statement. If they exist, then include them. Example: <!-- alphabetical - start --> <?php // conditional include to support Lite Edition - start if( file_exists( "search_alphabetical_form.php" ) ) { include( "search_alphabetical_form.php" ); } // conditional include to support Lite Edition - end ?> <!-- alphabetical - end --> ... another example: <!-- conditional inclusion --> <!-- banip - start --> <?php if(@file_exists( "../modules/banip/banip.php" )):?> // your code here <?php endif;?> <!-- banip - end --> This works well for modules because if they don't exist then they aren't used. You can use a constant for the installation absolute url when testing for existence of the file. Also if you always put modules in your /modules folder then you'll know where to look for them in any software title. There's other examples and other code in our free unencrypted phpYellow Lite Edition downloadable at http://www.globalissa.com/downloads.php . You might also notice that the @ character can be used to suppress issues with the conditional call - test that first, and use it sparingly. Sincerely, Rob. http://phpyellow.com ___________ Ivo wrote: Hi guys, I've been developing a GPL PHP/MySQL app for some time now and I would like to extend it with a module/plugin system. The idea would be that people could add a directory in a plugin path that would contain a bunch of PHP files extending the functionality of my application. This directory would then be read out, some config file parsed and whatnot, after which the module can be turned on by my application. Now, I could try and figure this out by myself, but that would be reinventing the wheel since I'm betting there is some good GPL modular software around (such as Joomla, PHP-Nuke, PHPbb, etc, etc.) that you have been working with as a coder. Could any of you suggest a certain GPL application that has a great module setup that I could take a look at? Thanks a lot for your time! Ivo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php