Re: PHP and Flatfile Database
| From: | Michael Howitz | Date: | Sat, 15 Jul 2000 13:47:11 +0000 |
| Subject: | Re: PHP and Flatfile Database | ||
| References: | 1 2 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-1162@lists.php.net to get a copy of this message | ||
hi richard,
what about dbm (ndbm or gdbm ... are quite the same)?
this is a little flatfile like db with a hash-key and the data assigned
to this key. you are able to select the data by key
what you need is that php was configured '--with-dbm'.
hope this helps a little.
bye,
mac
Richard McLean wrote:
>
> Hi All,
>
> I'm trying to set up a site to use a tab-separated text file to generate
> dynamic product pages for an online catalogue. MySQL I can do, but
> I haven't found many resources about doing this with a flat file (I can't
> use MySQL/PHP on this server.)
>
> Does know where I can find some info or examples of doing this?
>
> The examples I've seen so far read the whole file into an array and
> go from there. Is this how it has to be done? I'm thinking I should
> search the file first, and then only turn the line(s) that match into
> an array. Is this possible? I'm a bit lost ...