Hello

I have a problem with the unlink() function , its working when im using it like this:
Code:
$acao = $_POST['acao'];
if ($acao=='Excluir')
{
$file = $_POST['file'];
//$file_clean=substr ($file, 30);


$file_clean='ABVFP/uploads/43e509f5c9_knotthouse.jpg';
if(unlink("$file_clean")) echo "Deleted file ";
}
BUT i need to get the file name dynamically with a variable
and when im trying to use the variable it doesnt work any more
Code:
$acao = $_POST['acao'];
if ($acao=='Excluir')
{
$file = $_POST['file'];
$file_clean=substr ($file, 30);
--> here i get exactly this ABVFP/uploads/43e509f5c9_knotthouse.jpg

if(unlink("$file_clean")) echo "Deleted file ";
}
the original $file looks something like this :
http://www.mysite.com/abvfp/uploads/myfile.jpg

any reason why it doesnt accept the $file clean after it was substr

thanks