Page 1 of 1

PHP Question

Posted: Sat Oct 09, 2010 12:26 am
by andre3
Hi guys, I am developing a application an I would like to ask a question. the application is more like a file sharing site where users can upload files to the server and share them with their friends. the first instance of the application was developed with 50% mysql and 50% php. I decided to do another version with less mysql and more php and less mysql, is that a good idea?? for example instead of pulling names of uploaded files from the databases, I wana read the files directly from the folders.
whats you guys think ?

Re: PHP Question

Posted: Sat Oct 09, 2010 12:32 am
by requinix
I think you had it better before. Databases are generally faster than normal disk access, for one. For two, searching for a name when you have to look at files is a pain in the rear.

Databases are your friends.

Re: PHP Question

Posted: Sat Oct 09, 2010 12:40 am
by andre3
Ok, first off thanks for your time. If the site as alot of traffic that strains the databases. Would you still recommend using databases?

Re: PHP Question

Posted: Sat Oct 09, 2010 2:26 am
by requinix
Even more so.