It seems on some servers that file locking using the flock command generates errors. I'm not sure if this is caused by the handle number used. I use 2 which is usually supplied in the literature - for example:
flock (DAT, 2);
Is there some servers (like NT servers etc.)that require a different handle? Also, is it recommended to unlock the file when done before closing the file? For example:
unlock (DAT, 8);
Dan
flock (DAT, 2);
Is there some servers (like NT servers etc.)that require a different handle? Also, is it recommended to unlock the file when done before closing the file? For example:
unlock (DAT, 8);
Dan
