Use readfile() function to reduce the memory footprint (and solve following);