How to use Filesystem delete in PHP
In this article I am going to explain about delete function in PHP.
PHP delete() function
PHP does not have any function like delete. Instead of delete function , you can use unlike function for delete operation.
Syntax of unlike function
Parameters in unlike function
It has only one parameter:
Parameter |
Description |
filename |
Here you define a name of a file. |
Example of filesystem unlike function
<html>
<body>
<?php
$filename = "C:\wamp\www\Dinesh\DotNetBookZero11.pdf";
unset($filename);
echo "File is deleted";
?>
</body>
</html>
|
Output:
You may also want to read these related articles :here
Ask Your Question
Got a programming related question? You may want to post your question here
Programming Answers here