Well, heres one for you all… Need to upload a file, and reprint it into a textbox. Ok thats no problem at all. The real issue at hand is when uploading .DOC’s… it seems to do it in BINARY format… any ideas on converting or what to do?
[php]
if ($_POST['submit_upload_file']) {
$Temporary_File = $_FILES['upload_file']['tmp_name'];
$File_Name = $_FILES['upload_file']['name'];
move_uploaded_file($Temporary_File, "temp/$File_Name");
$Read_File = file_get_contents("temp/$File_Name");
unlink("temp/$File_Name");
$_POST['event_description'] = $Read_File;
}
[/php]