Parašė fearless· 2013 Sau. 12 21:01:16
#7
Nesuprantu. Juk cia pirmas dalykas
php kalboje. Niekada nesimokiau, bet va prireike ir kazkaip reik padaryt.
if (isset($_POST['submit']) && !empty($_FILES["ufile"]) && move_uploaded_file($_FILES['ufile']['tmp_name'], "uploads/".time(). "_".basename($_FILES['ufile']['name']))) {
echo "Ikelta.";
}
?>
<html>
<head>
<title>Failo ikelimas</title>
</head>
<body>
<form action="index.php" method="post" enctype="multipart/form-data">
Select file: <input name="ufile" type="file" /><br />
<input type="submit" name="submit" value="Upload" />
</form>
</body>
</html>