[eluser]romenov[/eluser]
Hello all,
I am trying to delete a file from my server (currently hosted localy)
but when I use unset() within a certain function in my controller, it gives the following error:
Parse error: syntax error, unexpected T_UNSET
The code:
Code:
function deleteimage($id)
{
$return = unset(base_url() . $product["thumbnail"]);
}
(I stripped the rest out to check if that was causing the error but it isn't)
Any help would be welcome
thanks in advance