Parašė Noyz· 2010 Rugp. 7 10:08:36
weberiz parašė:
<?php
$limit_size=50000;
// idetu failu nustatymai
$name = $_FILES["myfile"] ["name"];
$type = $_FILES["myfile"] ["type"];
$size = $_FILES["myfile"] ["size"];
$temp = $_FILES["myfile"] ["tmp_name"];
$error = $_FILES["myfile"] ["error"];
if($size >= $limit_size){
echo "tavo failas per didelis<BR>";
echo "tavo failo dydis = ".$size;
echo " K";
echo "<BR>Failo didžio limitas = ".$limit_size." k";
}
else {
if ($error > 0)
{
die("Klaida idedant faila! Code $error.");
}
else
{
move_uploaded_file($temp,"uploaded/".$name);
echo "Idejimas pavyko!";
}
}
?>
nu aišku nebandžiau bet pabandyk turetu veikt tik tas gal suklydau rašydamas K turbut reik bites rašyt
Ačiū veikia.