I have something like this:
$root = $_SERVER['DOCUMENT_ROOT'];
and:
$coverv = $root . $coverv;
if(unlink($coverv)){
echo "$coverv - ok<br>";
}
it shows me the echo imagelink - ok but the image still on the server.
eg:
/home/storage/8/d7/ef/myfolder/public_html/wp/2017/tay/tay-italy-may-2017-fri-apr-14-2017_t_8.jpg - ok
any ideas why the image still on the server?