When I try to delete uploaded file on my website with unlink function I get
Message: unlink() [function.unlink]: SAFE MODE Restriction in effect. The script whose uid/gid is 10566/2524 is not allowed to access /var/www/vhosts/websitename owned by uid/gid 0/0
I read that is a safe mode issue. OK but how to delete uploaded files ?