variables - PHP: Unlink doesn't work in 'deeper' folder -


i tried deleting file folder not work...

i tried changing ' " still not work...

so tried putting exact value, , worked

    unlink('uploads/12/33.jpg'); 

this 1 deletes image gallery folder

unlink('gallery/'.$id.'.'.$ext); unlink('gallery/thumbs/'.$id.'.'.$ext); 

this 1 doesn't work.

unlink('uploads/'.$album_id.'/'.$image_id.'.'.$image_ext); unlink('uploads/thumbs/'.$album_id.'/'.$image_id.'.'.$image_ext); 

i tried changing dot comma , still didn't work :[

try

echo "     unlink('uploads/'.$album_id.'/'.$image_id.'.'.$image_ext);     unlink('uploads/thumbs/'.$album_id.'/'.$image_id.'.'.$image_ext); "; 

and see if shows correct syntax. maybe you're still having incorrect value or missing slash or something.

please paste results here if doesn't further.


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -