Posted By
|
Message
|
 Imp of Hazard Games
Registered 27/08/2003
Points 781
|
19th April, 2004 at 13:14:15 -
Actually, the subject pretty much says it all.
I need painters, musicians and animators!
|
 Joe.H Evil Faker
Registered 19/08/2002
Points 3305
|
19th April, 2004 at 13:29:23 -
I use MySQL
My signature is never too big!!!
|
 Deleted User
|
19th April, 2004 at 13:46:26 -
I use, because MySQL isn't working propely on my host I have done several scripts building own textDB for them, but I am going to make a kind of general textDB... If I have time...
|
 Kaine
Registered 12/01/2003
Points 458
|
19th April, 2004 at 14:46:49 -
I also use mysql because its much faster and you can do alot more with it then a textdb I think.
n/a
|
 Shen Possibly Insane
Registered 14/05/2002
Points 3497
|
19th April, 2004 at 15:45:47 -
ditto
Although nothing beats not having a database at all, and loading it in and parsing it manually through fopen D
gone fishin'
|
 Joe.H Evil Faker
Registered 19/08/2002
Points 3305
|
19th April, 2004 at 16:07:44 -
using fopen and fwrite etc means that files can get big quickly
My signature is never too big!!!
|
 Kris Possibly Insane
Registered 17/05/2002
Points 2017
|
19th April, 2004 at 16:17:57 -
actually it's usually smaller because you wouldn't need any overhead (table info, etc) if you know exactly what you're doing to begin with
"Say you're hanging from a huge cliff at the top of mt. everest and a guy comes along and says he'll save you, and proceeds to throw religious pamphlets at you while simultaniously giving a sermon." - Dustin G
|
 Tigerworks Klik Legend
Registered 15/01/2002
Points 3882
|
19th April, 2004 at 16:45:16 -
Text databases are slow and often don't have the advanced features real databases can offer.
- Tigerworks
|
 Pete Nattress Cheesy Bits img src/uploads/sccheesegif
Registered 23/09/2002
Points 4811
|
19th April, 2004 at 17:34:50 -
plus they're more of a hassle to code. i use MySql databases. never 'ad a problem with them.
www.thenatflap.co.uk
|
 ShadowCaster Possibly Insane
Registered 02/01/2002
Points 2203
|
19th April, 2004 at 18:33:25 -
It depends what information you're saving as to what, IMO, is better to use. I actually made an object for Jamagic that could create/update/search text-based databases, it also had an index for primary keys so you could seek information faster, but that's sort of beside the point of this post ^__^
Mike
"Now I guess we're... 'Path-E-Tech Management'" -Dilbert
|
 Imp of Hazard Games
Registered 27/08/2003
Points 781
|
20th April, 2004 at 07:01:04 -
For example, please, what is the thing that I cannot do with TextDB and I can with MySQL? My host is very cheap, reliable and has unlimited traffic, but it doesn't give MySQL for such price, so I am mastering the skills of textDB. Take a small code of how to make it read and echo the DB easily and fast:
<?php
$file="file.txt";
$data=file($file);
$ndata=count($data);
for($index=0; $index<$ndata; $index++)
{
$now=explode("<|>", $data[$index]);
$nnow=count($now);
for($ind=0; $ind<$nnow; $ind++)
{
echo "${ind}: ${now[$ind]}";
}
}
?>
I need painters, musicians and animators!
|
 Deleted User
|
20th April, 2004 at 07:23:51 -
Handy function for textDB:s are serialize() and unserialize().(http://fi2.php.net/manual/fi/function.serialize.php)
It converts any of php variable, even array, to string that can be saved to file. I sometimes use it to save complex arrays to file without need for parsing them with e.g. ex- and implode(). Using it with associative arrays it brings functionality like in real databases. (Databases still have better functionality)
P.S. This forum is GREAT!
|
 Capnzippy - (Smegsoft)
Registered 11/02/2004
Points 88
|
20th April, 2004 at 15:08:55 -
The only things I've ever used a text database for for a simple news script and a hit counter
klik-union -- http://www.klik-union.com
http://www.capnz.info
|
|
|