Deleting files

Used to delete files

unlink(file);

 

<?php
	$fileName = "/home/d/BANG" ; //specify file name

	if (unlink($fileName)) {

		echo ("Successfully deleted $fileName");

	} else {

		echo ("Failed to delete $fileName");
	}
?>

Leave a Reply