I upload every day a file on my web site using this script:
Code: Select all
$uploadfile = $uploaddir . basename($_FILES['nume_fis']['name']);
if (move_uploaded_file($_FILES['nume_fis']['tmp_name'], $uploadfile))
{echo "File is valid, and was successfully uploaded.\n";} else { }Note: the file that I upload in not TXT but binary. I am beginner in PHP
Thanks