Cauko ludia. Nevedel by mi niekto pls poradit co tu mam zle ? Ja uz fakt neviem

. Funkcia move_uploaded_file mi nechce fungovat a nefunguje to ani s funkciou copy.
Kód:
<?php
$way = !isset($_POST['select'])? NULL : $_POST['select'];
$target_path = "fotos/".$way."/";
$target_path = $target_path . basename( $_FILES['obrazok']['name']);
if(move_uploaded_file($_FILES['obrazok']['tmp_name'], $target_path))
{
echo "Súbor ". basename( $_FILES['obrazok']['name'])." bol uploadnuty.";
}
else
{
echo "Nastala chyba, skuste to prosim znova.";
}
?>
Dakujem

.