unlink

(FW >= 1.0)

unlink - Deletes a file

Description

int unlink( string $filename )
Deletes filename. Similar to the Unix C unlink() function.

Parameters

filename

Path to the file

Return Value

Returns 0 if the file was deleted.

Examples

<? 
$fh = fopen('test.html', 'a');
fwrite($fh, 'Hello world!');
fclose($fh);

$res=unlink('test.html');
print("Unlinking the file returned :".$res);
?>