files as $k => $v){ $data[$v] = $parser->parseFile($v); } foreach ($data as $k => $v) { $db->createTables($k, $v); $db->fillsTables($k, $v); } // put in html redirect as backup, because // for some odd reason windows gives // an error on header() but linux does not. ?>