Re: Please help!!! Trying to write some chat script!
| From: | Sheridan Saint-Michel | Date: | Thu, 20 Sep 2001 16:41:36 +0000 |
| Subject: | Re: Please help!!! Trying to write some chat script! | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-68013@lists.php.net to get a copy of this message | ||
You can use a flat file and work around problems like you described by using
flock, for example. I do agree a DB is the best way to go 99.9% of the time
though. I just wanted to give an overview of that covered most of the
possible
ways to write a chat room.
Sheridan Saint-Michel
Website Administrator
FoxJet, an ITW Company
www.foxjet.com
----- Original Message -----
From: "nico_oreka" <costes.nicolas@oreka.com>
To: "Sheridan Saint-Michel" <webmaster@foxjet.com>; "Diadon"
<diadon@dontek.ru>; <php-general@lists.php.net>
Sent: Thursday, September 20, 2001 2:01 AM
Subject: Re: [PHP] Please help!!! Trying to write some chat script!
> I made a chatboard script that i use on two websites (http://nayco.free.fr
,
> http://luxregina.free.fr )
> One thing important to know is that you MUST NOT use a text file : When
two
> people write together, messages are scrambled and the script displays
wierd
> things ....
> ----> use SQL, as it's faster, easier to use, and has got no 'lock'
problem
> ...
>
> If you want my script ..... tell me !!
>
>
> (°- Nayco,
> //\ Nayco@netcourrier.com
> v_/_ http://nayco.free.fr