[FAQ] Flat file DB

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • R. Rajesh Jeba Anbiah

    [FAQ] Flat file DB

    Q: I don't have database support, but I want to handle data.
    Q: I have a PHP/MySQL script, but my production server doesn't support
    MySQL.

    A: Always it is better to use wrapper functions around database APIs;
    so that you may easily switch from one database to another.
    There are number of 3rd party text file database APIs available.

    Refer:



    Q: What is PHP's native solution for handling data in a file?
    A:

    1. SQLite
    2. serialize() with unserialize()
    3. var_export() with include()

    Caveats:
    (2)&(3) will be somewhat harder to implement on a system that already
    uses database, even with wrapper.

    Refer:
    PHP is a popular general-purpose scripting language that powers everything from your blog to the most popular websites in the world.

    Generates a storable representation of a value

    Outputs or returns a parsable string representation of a variable

    ++++
    @todo Grammar, clarity, brevity. Someone may help

Working...