Re: [PHP] Understanding flock()

2004-12-31 Thread Gerard Samuel
Marek Kilimajer wrote: Gerard Samuel wrote: Im trying to simulate conditions, to see how flock works. Can anyone verify with the example code below, that data, never gets written to the file. //1 //2 are supposed to be processes??? For me, the var_dump() reports - int(7) bool(false) Thanks $fp =

[PHP] Understanding flock()

2004-12-30 Thread Gerard Samuel
Im trying to simulate conditions, to see how flock works. Can anyone verify with the example code below, that data, never gets written to the file. //1 //2 are supposed to be processes??? For me, the var_dump() reports - int(7) bool(false) Thanks $fp = fopen('foo.txt', 'w'); //1 flock($fp,

Re: [PHP] Understanding flock()

2004-12-30 Thread Marek Kilimajer
Gerard Samuel wrote: Im trying to simulate conditions, to see how flock works. Can anyone verify with the example code below, that data, never gets written to the file. //1 //2 are supposed to be processes??? For me, the var_dump() reports - int(7) bool(false) Thanks $fp = fopen('foo.txt', 'w');