File::unlock()
File::unlock() – unlocks a locked file pointer
Synopsis
require_once 'File.php';
mixed File::unlock (
string $filename
,
string $mode
)
Описание
Parameter
Return value
Throws
Замечание
This function can be called statically.
See
Пример
Using File::unlock()
<?php
require_once 'File.php';
$e = File::unlock('test.txt');
if (PEAR::isError($e)) {
echo 'Could not unlock the file : ' . $e->getMessage();
} else {
echo "Successfully unlocked the file test.txt\n";
}
?>