Kód: Vybrať všetko
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Upload</title>
</head>
<body>
<h2>Warezman Upload Script</h2>
<form action="upload.php" method="post" enctype="multipart/form-data">
<div><input name="subor" type="file" /></div>
<div><input name="upload" type="submit" value="upload" /></div>
</form>
<?php
if (!empty($_POST['upload'])):
if (is_uploaded_file($_FILES["subor"]["tmp_name"])):
$subor_cesta = $_SERVER['DOCUMENT_ROOT']."<prepisat>/uploadss</prepisat>";
$subor_name = $_FILES["subor"]["name"];
copy($_FILES["subor"]["tmp_name"], "$subor_cesta/$subor_name");
echo "<a href=\"<prepisat>http://195.146.156.212/uploadss/$subor_name</prepisat>\">Subor uploadnuty,klikni pre zobrazenie</a>";
else:
echo "Subor sa neda uploadnut :)";
endif;
endif;
?>
</body>
</html> pls co tam je zle?
pise
Kód: Vybrať všetko
Warning: copy(C:/xampp/htdocs<prepisat>/uploadss</prepisat>/zivot.amx) [function.copy]: failed to open stream: Invalid argument in C:\xampp\htdocs\webadministracia\upload.php on line 18
Subor uploadnuty,klikni pre zobrazenie