<? function FileLock() { ignore_user_abort(true); $fl=fopen("/tmp/webbind.lock","a+"); if ( $fl !=0 && flock($fl,2) ){ return $fl ; } }