Re: MySql or flat database using PHP ?
| From: | Emilio Panighetti | Date: | Sat, 18 Aug 2001 21:06:38 +0000 |
| Subject: | Re: MySql or flat database using PHP ? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-63294@lists.php.net to get a copy of this message | ||
It depends... if you have a handful of records, you might start with a flat
file. but if you think you'll get to hundreds of records, go with a
database.
Even if all you want is a small array of data, go with a database.
If all you want is a simple array, you might consider use DBM files (Look
at, for example, http://www.php.net/manual/en/ref.dbm.php ).
If you really need SQL goodies, also consider PostgreSQL. Both MySQL and
PostgreSQL work great with PHP.
Emilio
----- Original Message -----
"David Ovens" <DOvens@doweb.co.uk> wrote in message
news:001301c12824$8cd3a9a0$24047ad5@tinypc...
Before I start creating an Sql table/database, thought I would ask for
advice first.
I am creating a directory online, with urls information, links, email
addresses etc etc. What do you think is best a MySql database or writing it
to a file using fopen/fwrite (flat file) ??? Your thoughts would be very
much appreciated.
Thanks
Dave