Jul 25, 2008

Flat Files! Good Or Bad? Whats Your Opinion!

Free Web Hosting, No Ads > CONTRIBUTE > The Internet > Website Discussion

free web hosting

Flat Files! Good Or Bad? Whats Your Opinion!

KansukeKojima
So... whats your opinion on flat-file websites? You know, no databases, everything is stored in txt, php, or html documents...

In my opinion I really like using them. This is mainly because I have yet to learn anything about databases tongue.gif

Post any advantages or disadvantages you think they possess....

I like them because, for me, they are fairly easy to use once created.

A disadvantage in my opinion is that it takes a while to code properly so it functions well.

Reply

rvalkass
Flat files are only really good for lists, and not a lot else. Like you say, coding them to act as databases, even in a very primitive way, takes time and effort to get right. Personally I would use a database such as SQLite for anything small scale that requires anything more than a list of single word terms to be stored.

Once you learn how to effectively use databases there are all sorts of SQL commands and the like that you can use to simplify a variety of things you would usually have to code manually if you used flat files.

Reply

t3jem
When I make my webpages I use a flat file system only because I have no need for a database; however, I did have to create a PHP program to store emails and send period emails out to them. I would have much preferred to use a database system such as mySQL; however, I was not in control of the server and had no idea what was on it other than php and the admin never used mySQL before so I decided to use a flat-file system. So it is good when you can't use a database system; however, I know my code will begin to break down after awhile when the email list becomes too crowded. Flat-file systems are also harmful if you don't secure your code enough and someone decides to inject malicious code into the system and manages to destroy your site with it, but you can even have this problem with a regular database too.

So, like I said before, I would prefer to make a mySQL database, but I have no experience in it so I stick with flat-file systems until I need to move over.

Reply

sonesay
I dont use flat files well files on their own just to hold data. Although I do keep a few arrays stored in a PHP file just to use it may be considered the same thing. There is an advantage here since its in a PHP file there is no wait time for retriving it from a database. If you have static data that seldom changes and is required often by many processes having this setup will be more effect then having them stored in a database.

If on the other hand you have to update it often then flat files are very bad as its much slower to update because the program will have to read each line untill it finds the correct entry then perform the update. If the list gets very long it can be very slow. In this case a database is more effective.

Reply

hippiman
It's a lot better to use a database if there are going to be a lot of people trying to change something at the same time. Like, if mySpace used flat files for everything, it would either end up going really slow, or it would just crash, and have a bunch of errors in all the files, because of people trying to change stuff at the same time. If you use a database, it usually has a built in way to protect against anything like that happening.

Once you learn how to use SQL, it's a lot easier, and more efficient than flat files, unless you're not going to have many people on your site. It mostly depends on traffic, and the type of data you're trying to store.

Reply

jlhaslip
As noted above, Databases are definitely the right approach to take for many (most) data storage techniques. They handle more users, more data, faster and more securely. No doubt about that. Site membership lists, download lists, and many more applications similar in nature are best handled via a Database Management system.
On the other hand, Flat Files can work quite nicely for applications which are not large, or data intensive, or are static and the security of data is not an issue. Site menus, static lists might be handled by Flat Files where either a Database /system is not available, or is restricted in volume, or if the amount of data is small, so the overhead of a database is not required.
Additionally, Flat Files are a nice, easy way to learn a scripting language without the burden of having to learn the Database System at the same time. Focus on learning the scripting language first and then the DBMS.
Besides, by working with sequential Flat Files first, you will then also know the 'old-fashioned' methods and will appreciate the DBMS more... smile.gif

 

 

 


Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Similar Topics

Keywords : files whats opinion

  1. What Forum Software Do You Use And Whats Your Favorite? - (13)
    Hello everyone I was just wondering what forum software you guys use and why you guys like it. I use
    invision power board 2.2 or am awaiting a host from here to host it /ohmy.gif"
    style="vertical-align:middle" emoid=":o" border="0" alt="ohmy.gif" />...
  2. Moderator Of A Forum - What's his tasks (6)
  3. Corruption Of Zip Files When Downloading - What causes this? (9)
    I have now received 2 e-mails from people stating that the zip files they downloaded from my
    site are corrupt. I have had to mail them to get them through. I can download the zips from my
    site just fine and so have most others. Does anybody have any idea what can be causing this? Do
    some IPS have some kind of protection (like a firewall) in place that can cause this? I am
    befuddled. /blink.gif" style="vertical-align:middle" emoid=":blink:" border="0" alt="blink.gif"
    /> ...
  4. Versus In Fantastico - your opinion; what to choose; why? (3)
    Hello! I am now proudly hosted member(not this site). Well, i entered my Cpanel and i found a
    lots of options in fantastico so i need your opinion. What to choose? Why? CMS___________ QUOTE
    - DRUPAL - GEEKLOG - JOOMLA - MAMBO OPEN SOURCE - PHP NUKE - PHP WCMS - PHP WEBSITE - POST-NUKE -
    SITEFRAME - TYPO3 - XOOPS ...
  5. What's On Your Site? - (35)
    This is for all of you who have websites. There is an outrageous number of websites out there of all
    different types. I thought it would be interesting to see what kinds of websites everyone has here
    at trap17. So if you have a website (or more than one, not necessarily hosted by trap17), share what
    its about. What do you like to put on your site? Also, provide a link if you can. Even if you dont
    have a website but are planning on making one, share your thoughts and maybe you'll get some
    extra ideas. As for me, I currently do not have a site. I used to have one that...
  6. Get My Pc Files Accessed Anywhere - Getting my PC as a server (4)
    Does anyone know how i can get my PC so that i can look at my files anywhere. I have a PSP and i can
    listen to my music anywhere in the house using a RSS channel. I want it so i can do it anywhere with
    internet access. I know i have to get it as a web server, but how. I don't know how to unlock
    port 80 (thats the right port right?) Is it the ISP i have? Is it the DSL modem i have? Any help
    would be great thanks....
  7. Blog - Whats a blog? (0)
    QUOTE A weblog (usually shortened to blog, but occasionally spelled web log or weblog) is a
    web-based publication consisting primarily of periodic articles, most often in reverse chronological
    order. Early weblogs were simply manually updated components of common websites. However, the
    evolution of tools to facilitate the production and maintenance of web articles posted in said
    chronological fashion made the publishing process feasible to a much larger, less technical,
    population. Ultimately, this resulted in the distinct class of online publishing that produces blo...
  8. Whats An Https - How do you create one? (4)
    I know that HTTPS stands for the normall stuff, and then add secure . But can someone explain how
    these work, or how I can install them on my website, or create a secure directory? Do you need a
    GNUP or SSL or can someone just explain what it does. Thanks, in advanced. /smile.gif"
    style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />...
  9. Session_start() - whats going on with it (8)
    Hi im using my page in php coding and the session_start() code is messing something up. This is
    the error: Warning: session_start(): Cannot send session cookie - headers already sent by (output
    started at /home/idimm/public_html/index.html:2) in /home/idimm/public_html/index.html on line 103
    Warning: session_start(): Cannot send session cache limiter - headers already sent (output started
    at /home/idimm/public_html/index.html:2) in /home/idimm/public_html/index.html on line 103: Does
    anyone know how to fix this? It does do the command but it gives this annoying error...
  10. Problems Encountered With Weblog - i encountered them after i transferred my files to my new hosting acco (4)
    i get these errors (upon accessing my page) after i transferred my files to my new account here.
    please help (i don't know if i placed this topic on the right forum, so please forgive me if
    i'm in the wrong forum). thanks! QUOTE Warning: fopen(./changes/current.file): failed
    to open stream: Permission denied in /home/mbacarra/public_html/weblog/index.php on line 188
    Warning: fwrite(): supplied argument is not a valid stream resource in
    /home/mbacarra/public_html/weblog/index.php on line 91 Warning: fwrite(): supplied argument is not
    a valid stream reso...
  11. What's Your Alexa Rating? - compare alexa ratings (4)
    First, go here: http://www.alexa.com/site/site_stats/signup?mode=stats Then, type in the URL of
    your website. Follow their format or else it won't work. Next, click the Build This button for
    which ever button you want. You have about 3 choices. Finally, right-click on the image generated,
    and paste it here! Here's mine: Pretty good for me because last week, it was around
    34,000. /smile.gif' border='0' style='vertical-align:middle' alt='smile.gif' /> ...
  12. Whats Your Ideal Site? - Best features on a site? (8)
    What would your ideal site have on it? I mean like free legal music and stuff like that. Mine would
    have free legal music, lots of good quality games, free downloadable games, free software, wicked
    layout and just general stuff like that. If hteres a site that you think is your ideal site please
    post that here to. Cheers, Karl...
  13. Whats On Your Site? - what is on your site????? (42)
    hi everyone i just wanted to no what is on your site???? like music games videos i mite get a few
    ideas lol cheers chris...
  14. Php? - Can any tell me whats so great about PHP (6)
    what the hell is PHP everything i download for my site you need PHP :S wot is sooo gd about it? and
    wots da easyest way 2 use it?????...
  15. Whats Your Favorite Forum System? - (15)
    Theres tons of forum systems out there, so which one is your favorite? For me it all depends on the
    situation. SMF is my favorite php\MySQL forum system since it blows away any version of IPB,
    and is comparable to VBulletin, while still being incredibly stable, and also it's free. My
    favorite CGI\Perl board is YaBB 2, which is on the exact same level as SMF in terms of features
    (Y2 has some features SMF dosent, SMF has some Y2 dosent). So, whats your guy's favorite forum
    system? /smile.gif' border='0' style='vertical-align:middle' alt='smile.gif' />...
  16. Need You're Opinion! - Tell me what you think about this Site (11)
    Hi! My boyfriend has just opened a Web Desing company (CAV/eb Design)... and he has already done
    one page... I'd like to know your opinions about it... /biggrin.gif' border='0'
    style='vertical-align:middle' alt='biggrin.gif' /> We want to know what people think about his job
    /tongue.gif' border='0' style='vertical-align:middle' alt='tongue.gif' /> Thanks!!!
    The page is: RIGABRAS Transportes Ltda. ...



Looking for flat, files, bad, whats, opinion

Searching Video's for flat, files, bad, whats, opinion
advertisement



Flat Files! Good Or Bad? Whats Your Opinion!



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE