Re: [PHP] XML file locking

2008-05-19 Thread Iv Ray
Kaja wrote: Does anyone know if any of the PHP 5 XML libraries use flock() internally? I'd like to use XMLReader and XMLWriter but I need to make sure theres no writing going on while reading and no more than one writer at time. And if I have to use DOM, does DOM lock the file when it calls

RE: [PHP] XML file locking

2008-05-19 Thread bruce
Subject: Re: [PHP] XML file locking Kaja wrote: Does anyone know if any of the PHP 5 XML libraries use flock() internally? I'd like to use XMLReader and XMLWriter but I need to make sure theres no writing going on while reading and no more than one writer at time. And if I have to use DOM, does

Re: [PHP] XML file locking

2008-05-19 Thread Iv Ray
bruce wrote: Couldn't you also create a rather simple test to determine if the locking of the file takes place? I personally do not trust file system level locks. Even if a software is not intended to be portable across operating systems, it is possible to use different file systems under

RE: [PHP] XML file locking

2008-05-19 Thread bruce
to get a feel for how often you might run into file conflicts... -Original Message- From: Iv Ray [mailto:[EMAIL PROTECTED] Sent: Monday, May 19, 2008 7:45 AM To: bruce Cc: 'Kaja'; php-general@lists.php.net Subject: Re: [PHP] XML file locking bruce wrote: Couldn't you also create

[PHP] XML file locking

2008-05-18 Thread Kaja
Does anyone know if any of the PHP 5 XML libraries use flock() internally? I'd like to use XMLReader and XMLWriter but I need to make sure theres no writing going on while reading and no more than one writer at time. And if I have to use DOM, does DOM lock the file when it calls save()? Or is