The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.
Simple databases I've done in the past have used a flat file approach, but the next project I want to move onto may involve (as the database increases) a substantial amount of data and the flat file approach would be rather inefficient.
So, what is the best way? I'm not exactly sure how to build a relational DBMS from scratch - any ideas? Maybe I should store each entry in it's own file and have an index. But then I wouldn't be able to search every entry, and would have to have key words, or something. Hmmmm. Anyone got any ideas?
Cheers,
Rikki
There are 3 main problems with IIS:
1. MONEY. It costs money to run IIS servers (£700 for a server licence and the a few hundred more for an IIS licence and a bit more for connection licences). As Freeola doesn't charge we cannot afford these servers (thank god for unix).
2. SECURITY. This was emphised recently by the code red bug. It let hackers gain complete administrative control. It lead toi the Whit house servers being hacked down and the US military taking its servers off-line just in case. Since this happened the White House have moved teir web site to Linux.
3. STABILITY. I was talking earlier with Turbo about this. Our Linux servers rarley crash. The downloads server may go down every few months because it run real server but on the whole they just don;t crash (it is advisable to restart the things every 2-3 months just to clear the memory and kill any usless processes).
Oh and finaly the fact that ASP, Access and FPE's (unless you want to run an unsecure linux box) all need IIS. It's another Microsoft monopoly type situation which Linux seems to be winning!
I know about Access and have done some stuff with it in school, but as I say, I'm on freeola, so CGI and PHP are all I have access to, not ASP and mySQL(?) etc.
My flat file approach, ajg, works in CGI. Basically, it gets an input from either GET or POST from a HTML form, and stores that info in a line in a file. I don't parse (the info is sent as 'fieldn1=input1&field2=input2' and the extra ASCII symbols are hex encoded) the information unless I need to check the fields etc. The parsing is usually done when reading the file, where searching for a certain piece of data (eg. a username) in a certain field is done by reading each line, parsing it, matching the required field against the test data and continuing. That's very inefficient though, especially if the file gets big.
Maybe for the searching I could just use the Perl 'find' function (there must be one) to find the data, then only read in that line. Perl's searching is probably more efficient than mine. Also, I could pre-process a master file into directories depending on what they're sorted by, then have a file for each beginning letter that it's sorted by.
Cheers,
Rikki
There's a multitude of reasons why but Andrew says it better than anyone.
Andrew, the floor is yours, but here's a start:
1) They're all made by Microsoft
Continue?
But once you start thinking about databases and ODBC then you need to start thinking about the security implications too. Let the games begin!! lol
Is that enough detail for you?
Other than that, I once heard of a PHP scriptset the uses flatfiles but you can pass SQL-like commands to it. It's very, very complicated and you need quite a bit of space. I don't know where to get it from but it's out there.
You mentioned about using Microsoft Access for the databases...
How does this work?
I know how to make databases on access, but how would I link it to my website and what html would I need to access the database?
I've used Microsoft Access at school and know the basics to make a database, would I need any extra knowleadge to work this on a website?
Thanks
Dav1d
But if you've got any specific questions, run them by me. I've got a pretty good idea of the basics. I've done DBA work in the past.
M$ Access is a good place to start if you want to play about with designing databases. It's pretty easy to get the hang of. You can also use ASP/JSP to access them through your webpage (although not if you're hosted by Freeola). Start with say, a 'People' table with name, dob etc in. Then add another table - 'Address', linked to 'People' on a unique key. And build up your database like that.
Is that the sort of thing you're after? Does that answer your question? Give me a shout if not.
I'm interested in the flat-file approach though. Is that all maintained in HTML or some other language? I'm assuming it's a series of opens, reads etc, but I haven't seen any examples of doing it this way.
cheers
ajg
Simple databases I've done in the past have used a flat file approach, but the next project I want to move onto may involve (as the database increases) a substantial amount of data and the flat file approach would be rather inefficient.
So, what is the best way? I'm not exactly sure how to build a relational DBMS from scratch - any ideas? Maybe I should store each entry in it's own file and have an index. But then I wouldn't be able to search every entry, and would have to have key words, or something. Hmmmm. Anyone got any ideas?
Cheers,
Rikki