If that's the exact php code you're using, then you're missing the $ in $i++. If not, are you sure the files exist? You use '.php' in the code, but you mentioned '.txt'. Also, if these files need to be created every so often with new data, then you might want to consider leaving them and just...