OK, action=ruletable has been tested and fixed running in PHP5. Seems like there were no other bugs in the code. The recipe and the download link are on http://pmwiki.org/wiki/Cookbook/MarkupRulesetDebugging The updated script can be downloaded from http://www.pmwiki.org/pmwiki/uploads/Cookbook/ruletable.php Enjoy! Jo