Ok, so I have the following code:
$newFileName = $newID . "_" . $_FILES['thefile']['name'];
$newLocation = "e:\\Home\\Domains\\qqq.com\\ROOT\\Inetpub\\wwwroot\\Images\\uploads\\";
$newLocation .= $newFileName;
if ( !move_uploaded_file($_FILES['thefile'] ['tmp_name'], $newLocation) )
{
print '<pre>';
print_r( $_FILES );
print '</pre>';
}
For some reason this won't move the image at all. It fails on the move_uploaded_file, and then just continues on w/o any warning message until the script completes.
I added in the IF with the print_r($_FILES) to see if anything was actually happening. When I do a die() after the IF I see the following:
Array
(
[thefile] => Array
(
[name] => rufus.jpg
[type] => image/pjpeg
[tmp_name] => c:\windows\temp\php\php62.tmp
[error] => 0
[size] => 12442
)
)
So to me this would mean the file is being uploaded.. for whatever reason I can't copy it from the tmp dir to another one tho.
This is on a windows system. Safemode is off. Code works fine on a *nix based system.