I have put an echo in to test to see if it is outputting something but it's not. This is just a part of the code that copies the file. It works fine with register globals turned on. The only other thing I have changed is that I'm testing on Vista RC-1.
Edit:
I turned error reporting on and got this output from the echo line:
Notice: Undefined index: pic_set in /home/ixdipfd/public_html/auction/sellcb.php on line 101
Notice: Undefined index: pic in /home/ixdipfd/public_html/auction/sellcb.php on line 101
$num = 0;
while($num < 6)
{
$num++;
echo $_POST['pic_set'][$num], $_POST['pic'][$num]; // This does not output anything
if (($pic_set[$num]) || ($pic[$num]))
{
if ($pic_size[$num] > $max_filesize)
$err2=1;
if (($pic_type[$num]!="image/pjpeg") && ($pic_type[$num]!="image/gif") && ($pic_type[$num]!="image/bmp") &&
($pic_type[$num]!="image/jpeg") && ($pic_type[$num]!="image/png"))
$err2=1;
if ($pic_size[$num]<=0)
$err2=0;
if (isset($WINDIR))
$pic[$num] = str_replace("\\\\","\\", $pic[$num]);
$filename = basename($pic_name[$num]);
copy($pic[$num], "$archive_dir/$filename");
}
}