Search code examples
phpdatabasedata-storage

Database-less Approach to Store Some Data in PHP


I am new to PHP but not programming in general. I want to store some data I retrieve from the web service but I do not think I want a database for that. First, data will be updated quite frequently and its size is always less than 1MB. What is the best, fast but efficient approach in PHP on Apache? Note: I am using a hosting provider so I do not prefer custom installations. Perhaps, singleton? Thanks


Solution

  • Use a database. Otherwise you are stuck serialising a file. But to do this right you need to implement concurrency controls.

    Save yourself the time and energy and use a database.