Re: [PHP] file locks

2002-04-10 Thread rarmin
Liam Gibbs wrote: > < trying to access is locked by other script (via > flock()) or not. I need to make script wait untill > other script running in a parallel thread releases the > lock on the file.>> > > Without testing, would this work? Just a suggestion > (read: shot in the dark) that may wo

[PHP] file locks

2002-04-09 Thread rarmin
Is there a way for a script to tell if the file it's trying to access is locked by other script (via flock()) or not. I need to make script wait untill other script running in a parallel thread releases the lock on the file. Tnx in advance. Armin -- PHP General Mailing List (http://www.php

[PHP] Re: sessions and passing variables

2002-04-08 Thread rarmin
Michael Virnstein wrote: > you also have to make sure, that only one user can access the file for > writing at one time, or your data gets probably > screwed. The easiest way would be storing the object not in a file but in a > database, so you don't have to care about locking. Tnx for the help,

[PHP] sessions and passing variables

2002-04-08 Thread rarmin
Is there a way to pass variables (objects) across the different sessions. I thought of sharing one object for all users that access my web site (it's an object that does some operations with files common to all users, like reading and writing). Any ideas? Tnx in advance. Armin -- PHP Genera

[PHP] PHP and DOM XML

2002-04-05 Thread rarmin
I have one question about operations that can be done with XML. What I need to do is build a web site which stores some data in XML files and retrieve that data. It's basically the system that allows users to register, login and upload and download some files. It needs to use XML. The questi