I’m writing several small PHP applications for a business with roughly 25 employees. I’m currently using PHP file functions to store data for daily entries in order to track worker productivity. The company I work for has offices all over the globe however, and in keeping in mind that I may need to scale these applications for thousands of workers, I’m wondering if there are significant drawbacks to using file functions vs. SQL for storing user data. I know that generally speaking SQL uses resources more efficient than php, but if I’m not storing huge amounts of data at any time or for any one individual will there be a significant difference in performance? Are there other potential issues I should be concerned about?
I’m writing several small PHP applications for a business with roughly 25 employees. I’m
Share
Definitely huge drawbacks to using files for your data store. All major DBMs give you search, replication in some fashion, ability to store data orthogonally, etc. All of this with you writing nothing except the table definitions and the queries. No code to manage files of information or worries about race conditions.
If you are on Windows, WampServer will give you your Apache, PHP, and MySQL ready to go. PostgreSQL can also be substituted, but that is extra work.