previousFile::stripTrailingSeparators() (Previous) (Next) File::write()next

View this page in Last updated: Sun, 18 Oct 2009
English | Brazilian Portuguese | Chinese | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Turkish

File::unlock()

File::unlock() – unlocks a locked file pointer

Synopsis

require_once 'File.php';

mixed File::unlock ( string $filename , string $mode )

Description

Parameter

Return value

Throws

Note

This function can be called statically.

See

Example

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";

?>
previousFile::stripTrailingSeparators() (Previous) (Next) File::write()next

Download Documentation Last updated: Sun, 18 Oct 2009
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.