Expand|Select|Wrap|Line Numbers
- if(file_exists($destination.$filename))
- {
- $exitmsg .=
- "<br>File still in temporary location
- <br>$filename
- <br>Attempting deletion ";
- if(unlink($destination.$filename))
- $exitmsg .= '<br>Success deleting. Please try again ';
- else
- $exitmsg .= '<br>Failed deleting. Please inform IT';
- }
move_uploaded_file() 'destination' so that the file can upload. This piece of code returns TRUE but the file is still there
Expand|Select|Wrap|Line Numbers
- if(unlink($destination.$filename))
Or am I completely mis-understanding unlink()?
By the way it is a CSV file.