Page 1 of 1

using a database in a case of storing directories & file

Posted: Thu Sep 25, 2003 2:34 pm
by kendall
Hello,

Now please forgive me if i was out of place for posting this message here but this question is based on deisgn theory and not advance design and theory.

I would like to get opinions from the gurus here on wheather or not its a good idea to create databases for the use of sotring directory and filename information.

some times i find it rather unnecessary in a way because i can always use other means of retrieving or displayin info on directories. Yet the databases always makes it much much easier to use it for the purpose.

example...i am currently contemplating wheather or not to create a database to store directories created by users reason being i want to be able to retrieve a 'directory's description' created by the user to display. Now mind you i cud have just done a mere dir() function to retrieve that info written to a text file but we see the hassle here do we....i'm lackadical :oops: and not that very professional at PHP so i would want to take the database out. Yet, i always one to be as effcient and optimal as possible...i find creating a database also creates duplicating information. usually my fear is that a directory can be created and deleted which means i have to make sure that the database information corresponds accordingly...now rule one in database relations is DONT HAVE DUPLICATING INFORMATION. so i am always using this rule everywhere...even in the john. so i find the database thing kinda un-necessary yet it convenient...

you guys have done this before....what do you think..? is it really necessary for me to develop this project using database functions or should i stick to using file system functions....i see my self using both in the database scenario...complicated yet driven to the point.

Kendall

Kendall

Re: using a database in a case of storing directories &

Posted: Thu Sep 25, 2003 3:17 pm
by McGruff
kendall wrote:...now rule one in database relations is DONT HAVE DUPLICATING INFORMATION. so i am always using this rule everywhere...even in the john
I think you could safely flush that.

What about an info.txt file in each directory to store some extra info, if you WC what I mean?