( my idea on the sub-dirs )DRAFT:
table: customers
id:int, primary key
name:varchar,
email:varchar ........
you create one sub-dir named "customers"
every time one starts editing a row
( EXAMPLE:id=10, name="john doe", email="johndoe@none.com" )
-the script checks for a file
( filename: "customers/10.sem" )
-creates a file named as the content of the "id"-field
everytime the script does the "update" statements, the script delete the file
the only problem is with people, who just open an entry for editing and
then close the browser( and leave you inbetween a session )
REAL EXAMPLES ON THIS:
some are:
- reader-/writer-cooperation in operating systems like windows/linux/unix ....
( mr tanenbaum from the university of amsterdam for example )
maybe you can check out some of the university-stuff ( they call that kind of code
"semaphore" ) ... but i am from germany and so i havent any international
urls on that.
the php.net site seems to be a good start as well ( sem_get, sem_release ) ......