Hello all. This is really the first time I have ever had to work with PHP on Windows. I seem to be running into a problem I never have on linux.
The following code show the correct directory in which the image should be moved to, but it fails. It shows the correct path and is_uploaded_file is a success.
Any suggestions as to why it won't work would rock.
$des = $_SERVER['DOCUMENT_ROOT'].'\images\\';
// there are two slashes at the end of
// the images dir, the board removes
// the extra slash
echo $des.$pic['name'];
if(is_uploaded_file($pic['tmp_name'])){
if(move_uploaded_file($pic['tmp_name'], $des.$pic['name'])){
echo "Image was uploaded";
} else {
$err[] = "Could not move the uploaded image.";
}
} else {
$err[] = "Could not upload the image.";
}
#edit# PHP tags are jacking up the code, sorry. #/edit#