How to debug move_uploaded_file() in PHP
Posted
by iamdadude
on Stack Overflow
See other posts from Stack Overflow
or by iamdadude
Published on 2010-05-25T21:34:35Z
Indexed on
2010/05/25
21:41 UTC
Read the original article
Hit count: 470
move_uploaded_file() won't work for me anymore, it was working fine and just stopped out of nowhere. Is there a way for me to check why it's not working anymore? Here's what I currently have, but it only returns TRUE or FALSE.
$status = move_uploaded_file($tempFile, $targetFile);
if($status) {
echo 'its good';
} else {
echo 'it failed';
}
I know the path is 100% correct and the directory is CHMOD 755. Is there anything I might be doing wrong?
© Stack Overflow or respective owner