flock
Posted: Wed Apr 20, 2005 3:28 pm
im having trouble with locking text files. this always sends me 'couldnt lock it g'. any idea why? i have php 4.3
Code: Select all
$open = fopen('shiznatix.txt', 'w');
if (flock($open, LOCK_SH)){
echo 'success lock'; print_r($file_arr);
}else{
echo 'couldnt lock it g';
}