$modspath = getcwd() . "/modules"; if ($dir = @opendir($modspath)) { while (($file = readdir($dir)) !== false) { $currPath = $modspath . "/" . $file; if (is_dir($currPath) && $file != "." && $file != "..") { $configFile = $currPath . "/config.xml"; // XPath stuff $xPath->XPath($fileName = $configFile); ?> <br /> <table width="600" border="0" cellspacing="1" cellpadding="3" bgcolor="#000000"> <thead> <tr> <td colspan="3"> <b><?php echo $xPath->getAttributes("/etomiteModule", $attrName = "name"); ?> </b> </td> </tr> </thead> <tr class="row1"> <td colspan="3"><?php echo $xPath->getData("/etomiteModule/generalInfo/description"); ?> </td> </tr> <tr class="row3"> <td width="150">Version:</td> <td width="30" class="row2"> </td> <td class="row2" width="320"><?php