using a database in a case of storing directories & file

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
kendall
Forum Regular
Posts: 852
Joined: Tue Jul 30, 2002 10:21 am
Location: Trinidad, West Indies
Contact:

using a database in a case of storing directories & file

Post 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
McGruff
DevNet Master
Posts: 2893
Joined: Thu Jan 30, 2003 8:26 pm
Location: Glasgow, Scotland

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

Post 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?
Post Reply