Problem solved...
it APPEARS that on the win platform (others?) in PHP4.0.2, the $file automatic variable is NOT getting set with the local temp copy of the file. The new PHP4 global HTTP_POST_VARS[] var must be used.
Example:
File Upload here:
<INPUT NAME="the_file" TYPE="file" SIZE="35">
PHP receiving script - this FAILS:
$copyFile = $the_file;
$newFile = "NameAndPathOfCopiedFile";
copy ($copyFile, $newFile)
or die ("Problem in file copy");
PHP receiving script - this WORKS:
$copyFile = $HTTP_POST_FILES['the_file']['tmp_name'];
$newFile = "NameAndPathOfCopiedFile";
copy ($copyFile, $newFile)
or die ("Problem in file copy");
The first method is supposed to work, by the PHPManual, however did not work for me on win98 or NT4.0w.
Like to hear other thoughts or experiences.