This question already has an answer here:
I have issues while trying to delete files in PHP, using unlink('filename')
.
I have tried with a complexe file and it didn't worked. I've been using relative paths as adviced on other post about this.
So i've made the simpliest script possible :
<?php
unlink("acs.gif");
?>
The script is located in the same folder as my asc.gif
is, tho it still doesn't work.
I've got no fatal errors, and a warning when enabling error_reporting()
and init_set()
. But the file is still there.
I've tried to set the permissions to both my folder, my image and my script to 0777
but it didn't help.
I'm getting quite confused about what is happening.
Do you guys have any ideas ?
</div>