Re: php
| From: | Curt Zirzow | Date: | Sat, 19 Jun 2004 05:53:49 +0000 |
| Subject: | Re: php | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-188632@lists.php.net to get a copy of this message | ||
* Thus wrote ck@sglite.com:
> Hi,
>
> can i ask what is the difference between writing and getting data from files and from SQL.
>
files: lots of coding
sql: easy
> will retrieving data from files have a problem like if 2 person access the same file at the
> same time and causing the data to crush? or will the situation be the same to SQL?
>
You will always have race conditions. who is writing what and
reading when. SQL servers handle these races.
> because i will wish to use file instead of sql, hope that there won't be a difference. i
> would wish to the what is/are the difference between them in every details.
>
An alternative to using files is to use SQLite. It is a file base sql datatase
that can be use easily be used and avoid the above mentioned
issues.
Curt
--
First, let me assure you that this is not one of those shady pyramid schemes
you've been hearing about. No, sir. Our model is the trapezoid!