Aloha, I have a download button and when the image is downloaded it`s dispalyed using session (path). I then delete the picture that was used before, but when the name of the image is the same, "unlink($_SESSION['picture']);" deletes both of them- I want to delete ony one each time... Something like this "unlink($_SESSION['picture'] < 1);" which doesn't work. Please Help:), Aloha
And here's the code which saves the picture..
session_start();
$filename = $_FILES["picture"]["tmp_name"];
$destination = "upload/" . $_FILES["picture"]["name"];
move_uploaded_file($filename, $destination); //save uploaded picture in your directory
$_SESSION['picture'] = $destination;