Line 93 is missing a slash: system("mkdir -p " . XMLDEBUG ."/$$/"); BTW, Should I be sending these elsewhere rather than polluting the list? cLive ;-)