var filesArray = ["01.php","02.php","03.php","04.php",""]; var filelength = filesArray.length;