I have a PHP file with unlink() in application/views/delete/target.php and I want to delete a file in application/views/uploads/target.jpg. When I call target.php I want to remove both target.php and target.jpg but so far I was only able to remove the target in the delete/ folder.
<?php function destruct()
{
unlink('../views/uploads/target.jpg');
unlink('target.php');
}
destruct(); ?>
unlink('../../views/uploads/target.jpg');, assuming you have permission to delete the file.unlink('../uploads/target.jpg');target.phpto delete itself?