PHP Question

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
andre3
Forum Newbie
Posts: 5
Joined: Sat Oct 09, 2010 12:20 am

PHP Question

Post 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 ?
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: PHP Question

Post 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.
andre3
Forum Newbie
Posts: 5
Joined: Sat Oct 09, 2010 12:20 am

Re: PHP Question

Post 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?
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: PHP Question

Post by requinix »

Even more so.
Post Reply