Hi,
I am trying to delete a file from the server, using unlink. Here is my function :
<?php
function fnProprieteDelPic($picture)
{
echo $picture;
if (unlink($picture))
$msg = fnMessage("suc.BlahBlahBlah");
else
$msg = fnMessage("err.BlahBlahBlah");
return $msg;
}
?>
The echo is there so I can just verify that the right path is sent. Problem is, although the path is correct, and I've set the permissions to 777, I get this :
photo/house/simobk/1090831/12.jpg
Warning: unlink(photo/house/simobk/1090831/12.jpg): Permission denied in /home/httpd/vhosts/softmixstudios.com/subdomains/client/httpdocs/immofr/app/fnProprieteDelPic.php on line 5
Any help?
Thanks,
Simo