Absolute path works with unlink():
<?php
unlink('images/filename.jpg');
?>
But this does not work.
<?php
$image_id = $_POST['image_id'];
unlink('images/'.$image_id)
?>
File permission is ok, script can read, write and execute. Tried with single and double quotes it works with absolute file path but not with variables passed from $_POST[].
Any workaround here? Thank you.