ahoj,mam problem s uploadovanim suboru na server.robim to pomocou fcie move_uploaded_file(); ale stale mi to tam vyhodi chybu Warning: move_uploaded_file(): Unable to move '/tmp/phpLmQ6wx' to '',..........
kod je:
<?php
if (isset($_FILES['subor'])){
$destination=$_FILES['subor']['name'];
$subor_tmp=$_FILES['subor']['tmp_name'];
if(is_uploaded_file($_FILES['subor']['tmp_name'])){
move_uploaded_file($subor_tmp,$destinatoin);
echo("subor bol uploadnuty");
}
else{
echo("chyba 1");
}
}
else
echo("subor chyba 2");
?>
move_uploaded_file($subor_tmp,$destinatoin); - mas tam preklep
move_uploaded_file($subor_tmp,$destination);