Caute,
mam takyto problem: chcem spravit script na upload suboru, avsak ked pouzijem move_uploaded_file() tak hodi chybu
Warning: move_uploaded_file(/var/www/test/uploads) [function.move-uploaded-file]: failed to open stream: Is a directory in /var/www/test/upload.php on line 317
Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpRg1CCA' to '/var/www/test/uploads' in /var/www/test/upload.php on line 317
<form action="" method="post" enctype="multipart/form-data">
<input type="file" name="file" />
<input type="submit" />
</form>
move_uploaded_file($_FILES['file']['tmp_name'], realpath(dirname(__FILE__) . '/uploads'));
(toto nie je presny kod ktory pouzivam.prepisal som ho do takejto "lightweight" podoby)
cielova zlozka je chmodnuta na 777.
Dakujem