PDA

View Full Version : Why I can't creat 50,000 html files in one folder?



soft123
08-13-2006, 07:56 AM
Why I can't creat 50,000 html files in one folder?
I can only creat about 37,000 html files in one folder.

page1ink.
08-13-2006, 12:10 PM
why would you need 50,000 html files at all??

areidmtm
08-13-2006, 12:53 PM
and why would you need then all in one folder. That is just disorganized. I'd at least put them in folders by alphabetical order

dvessel
08-13-2006, 01:13 PM
I can see it now.. :p

:mad:
"Why does it take forever to list my folder full of files?"

admin
08-13-2006, 02:17 PM
Many filesystems have a 32768 limit for files in a folder. We have many different file systems on different servers here, but regardless it is a HUGE mistake to have that many files in a folder. EVERYTHING will be slow on your site. The system usually will need to stat those files for anything dealing with that directly. 32000 stats for each operation is pretty slow. I certainly won't guarantee a working shared site with more than 30000 files in a single directory. I think 99.99% of everyone would agree that those requirements are a little beyond the scope of $7 a month shared hosting :)

Matt Heaton / Bluebhost.com

silentcollision
08-13-2006, 02:25 PM
Just use php and include .txt documents. Would be a hell of a lot easier.

vegasgwm
08-13-2006, 05:29 PM
I don't care if you have a website with everthing in this universe. who the hell puts 1000's of files in one folder.

soft123
08-13-2006, 05:37 PM
what about 20,000 files in one folder?

bobdog
08-13-2006, 05:39 PM
I don't care if you have a website with everthing in this universe. who the hell puts 1000's of files in one folder.

Umm, believe it or not, I had a client that did this. I made a quote to redesign his site, before actually looking at the file structure on the server.

:eek: Thousands and thousands of files in the root directory. :eek:

Needless to say, that little clause in the contract came in handy. "Other work not covered in the scope of this contract shall be billed at ---."

bobdog
08-13-2006, 05:43 PM
what about 20,000 files in one folder?

soft123, surely you are just yanking our chain for the sake of conversation

thirstee
08-13-2006, 06:12 PM
or give us a good reason why you need so many files in the folder

soft123
08-13-2006, 06:53 PM
I will use another method to manage my html files.

brod(d)ers
08-14-2006, 11:38 PM
surely you could use a database and php to dynamically allocate content to a few pages. As with everyone else, I'm curious as to why you need that many files?? It would take a life time to create all those files! let alone manage them!

Silverado05
08-15-2006, 01:34 AM
I agree with the above and what I was going to suggest. MySQL and php as they work wonders together. I am sure if you tell us what you doing with these we could help you further.