Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Noyz php klausimai

Parašė Noyz· 2010 Rugp. 6 21:08:46
#7

Va visas upload.php :

<?php

// 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 ($error > 0)
{
   die("Klaida idedant faila! Code $error.");
}
else
{
move_uploaded_file($temp,"uploaded/".$name);
echo "Idejimas pavyko!";
}


?>