I am making a script to retrieve directory information, including files and directories, and sort them into arrays according to their type. When I go to output them from their sorted arrays, PHP would do fine for a bit, then it would stop outputting. This all happening in milliseconds. It would simply output around 50 directories and/or files as they come, and then stop... and never at the same spot. When I go to output ONLY the arrays of files and directories themselves, it works perfect, but then when I format the arrays it continues to cutout. I am running the latest PHP 4 version. My timeout is set to 30 seconds in my php ini, and the script ram allocation is 15mb. I have no idea what is going on.