I have a htaccess tag, it renames and gives hello name to the v.php
file, leaving:
www.example.com/hola
So, I want to delete this " v.php ", by its name hello (written by htaccess)
$e = __DIR__ . "/hola";
$result = unlink($e);
if ($result){
echo "done";
} else {
echo "fail";
}
But give this error:
Warning: unlink(C:\xampp\x\xxx_xxx/hola): No such file or directory in C:\xampp\x\xxx_xxx\delete.php on line 3
But I need to remove it using this htccess rewrite, since I pull out the url from a database.
How can I do?