private static function emptyFile($fh) {
		rewind($fh);
		if(!ftruncate($fh,0)) {
			//release lock
			self::closeFile($fh);
			return false;
		}
		else {
			return true;
		}
	}
private static function emptyFile($fh) {
		rewind($fh);
		if(!ftruncate($fh,0)) {
			//release lock
			self::closeFile($fh);
			return false;
		}
		else {
			return true;
		}
	}
private static function emptyFile ( $ fh ) { rewind ( $ fh ) ; if ( ! ftruncate ( $ fh , 0 ) ) { //release lock self :: closeFile ( $ fh ) ; return false ; } else { return true ; } }
Empties a file.  If empty fails, the file will be closed and it will return false.
@param resource $fh The file handle
@return boolean true for success, false for failure
Empties a file . If empty fails the file will be closed and it will return false .