Flat Text Database Scripts - Printable Version +- NiftyHost Forums (Archive) (https://niftyhost.chary.us/support) +-- Forum: Webmaster Zone (https://niftyhost.chary.us/support/forum-38.html) +--- Forum: Site Software (https://niftyhost.chary.us/support/forum-39.html) +--- Thread: Flat Text Database Scripts (/thread-1321.html) |
Flat Text Database Scripts - MyDigitalpoint - 08-09-2011 Believe or not, there are still many hosting providers that does not allow their customers to run a MySQL database, whether cheap hosting or free hosting services, so people need to look at a simpler solution to cope with this limitation. Some other people may prefer a flat database because is easier to connect and maintain, but whatever is the reason someone is using this type of text databases, it would be interesting to hear some opinions, not about how fast or convenient is MySQL in comparison, but what kind of flat database is better and more efficient. Flat text writes on text files, as easy as that. XML database does the same but over an XML-formatted DB SQlite is a flat database engine that offers better security and performance I think I'm missing some other options so I would really like to hear your input about these or any other non-MySQL databases that can be used as an alternative. RE: Flat Text Database Scripts - zZJoennZz - 08-09-2011 Nice, but I'm a bit confuse, what is flat text files? RE: Flat Text Database Scripts - MyDigitalpoint - 08-10-2011 It means text files without formatting or special coding to store information. In example, if you want to log the IP your visitors come from, you can do it using this code: Code: <?php In this example the flat text database is "visitors.txt," a simple empty file created with Notepad, uploaded to the server and chmode 666 or 777 on it to make it writable so the server can store the information writing down the IPs as plain text. RE: Flat Text Database Scripts - RichardGv - 08-10-2011 As far as you are going to do anything serious, I see almost no point to reject SQLite:
However, for simple one-user scripts or a PHP engine with no SQLite support, flat files remain a viable choice, and certain scripts indeed support it. RE: Flat Text Database Scripts - Zach - 08-10-2011 I use flat files if I am too lazy to make a new table or am only writing something for temporary use. The affiliate script on NiftyHost used to use flat files, but switched to MySQL when loading 4000+ IP addresses and running an explode() and a foreach loop on the resulting array on every referral started to be an issue. RE: Flat Text Database Scripts - OhioTom76 - 07-26-2012 Might not be so bad for a simple blogging script with occasional updates, but not a very good solution for long term. I would never try and run a forum, for example, on a flat file database. RE: Flat Text Database Scripts - Serial Thrilla - 07-26-2012 I'm using flat files on a wiki. http://wiki.singul4rity.com So if you want a wiki without a DB use DokuWiki :). |