Re: simple database

From: Date: Tue, 30 May 2000 21:15:26 +0000
Subject: Re: simple database
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-669@lists.php.net to get a copy of this message
The thing is that correctly using text files is much more difficult than using a simple SQL engine like MySQL or PostgreSQL. The biggest problem being file locking. If you have a script that writes to a text file then that script needs to lock the file to prevent somebody else from writing to it at the same time. And inserting records forces you to rewrite the entire file from the insertion point onwards. You might want to look at dbm files if all you need is a simple key/value type of data storage, but forget about manipulating your own text files directly. -Rasmus On Tue, 30 May 2000, Cathy Kenny wrote: > Can anyone point me towards some good tutorials on using files with PHP? > I have a very very simple database application, I don't have access to a > SQL (and honestly with this project I don't have the time to learn that too :) > I've used PHP successfully on a number of projects, but I need some help > integrating it with a text database.. > > tia! > cathy > > > > >

« previous php.general (#669) next »