No, you can’t have a million files in your directory. Precisely, you can – but you should not have.
Asking why?
Today I was asked to transfer one old site to WordPress platform and everything seems so fine – I’ve created the script that sniffs through old system’s database, adds new posts (4000+), fix images URLs (4000+ posts x few images), redirect old URLs. But then, I noticed that some pictures are missing. For real, they’re not missing, but they are invisible on file list (direct link to file works), except first 1998 files. Continue reading