Re: Re: PHP Security

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Lets say you want to store someones picture.

In the database, you would insert the picture, who owns that picture, maybe the ip address and request headers of where that picture came from, the category, sub-category, sub-sub-category in which the picture belongs to, etc. You can gather and store as much information about that picture as you want with ease.

When you want to access that file and its attributes, you only have to do one database query.

Wouldn't you agree that this structure is much easier to manage than storing the file in a directory, then storing that extra information in a database? Then to retrieve, you must do a database query and find the file in the FILESYSTEM (hoping it is still there). The code is much more complex

> And finally, file management is much much easier when you store the files in
> a database.


There is a kind of database that is perfectly designed and equipped to store
files, and their very specific metadata properties, optimized for the correct
sort of access.


That kind of database is called a FILE SYSTEM.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux