2People
Guest
Upload файла
иэто тоже
Подскажите пожалуйста, почему не передаётся $HTTP_POST_FILES и $_FILES
PHP:
function update_art(){
global $upload_path;
global $HTTP_POST_FILES;
if($HTTP_POST_FILES['uploaded']['tmp_name']!=""){
$name="$upload_path".$HTTP_POST_FILES['uploaded']['name'];
copy($HTTP_POST_FILES['uploaded']['tmp_name'], "$name");
}
}
PHP:
function update_art(){
global $upload_path;
if (is_uploaded_file($_FILES['uploaded']['tmp_name'])) {
$name=".o/hosting/upload/".$_FILES['uploaded']['name'];
copy($_FILES['uploaded']['tmp_name'], "$name");
}
}