Deleting Files:
Be very careful when using the unlink() function because once you’ve deleted a file, it’s gone for good.
Example:
<?php
$new_file = "e:/ashu.txt";
$success = unlink($new_file) or die("Unable to delete file");
if($success)
{
$msg = "Delete $new_file";
}
?>
<?
echo $msg;
?>
No comments:
Post a Comment