Hello,
I'm trying to upload to an NT server running PHP, but having some problems. I think FTP has been disabled on the server, would that cause a problem? I'm not sure how PHP's functions send the file to the server.
Page 1:
<form action="uploadPhoto2.php" method="post" enctype="multipart/form-data">
<input type="hidden" name="MAX_FILE_SIZE" value="30000">
Send this file: <input name="userfile" type="file">
<input name="submit" type="submit" value="Send File">
</form>
Page 2:
print_r($_FILES);
$uploadFile = strtolower($_FILES['userfile']['name']);
print_r($_FILES['userfile']);
print "upload file: " . $uploadFile;
copy($uploadFile, "c:\\dataImages\\$uploadFile");
Result:
Array ( ) upload file:
As you can see, $_FILES seems to be a blank array. Something isn't working right... ugh.