перерыл гугл и яндекс, везде грузят либо картинки либо такст :-(
 
вот у меня тут был скрипт один:
 
 
<?php
 
// Where the file is going to be placed
 
$target_path = "uploads/";
 
 
/* Add the original filename to our target path. Result is "uploads/filename.extension" */
 
$target_path = $target_path . basename( $_FILES['uploadedfile']['name']);
 
 
// This is how we will get the temporary file...
 
$_FILES['uploadedfile']['tmp_name'];
 
 
$target_path = "uploads/";
 
 
$target_path = $target_path . basename( $_FILES['uploadedfile']['name']);
 
 
if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path)) {
 
    echo "The file ". basename( $_FILES['uploadedfile']['name']). " has been uploaded";
 
} else{
 
    echo "There was an error uploading the file, please try again!";
 
}
 
?>
 
 
но он что то выгружает только текстовые нормально 
 
(в смысле выгружает то он все, а вот читаются после него только текстовые файлы.)
 
 
может что в нём исправить?
 
если есть скрипт получше буду очень рад
Ответить
        |