To KIIV : :D ked som posielal moju predposlednu spravu tak tvoj prispevok tu este nebol
Příspěvky odeslané z IP adresy 178.41.103.–
ehm
ehm
ok diky. teraz uz viem ze do cielovej cesty treba taktiez pridat aj meno suboru
ehm
btw ked dumpen $_FILES
array(1) {
["file"] => array(5) {
["name"] => string(7) "wow.png"
["type"] => string(9) "image/png"
["tmp_name"] => string(14) "/tmp/phpjIfCE0"
["error"] => int(0)
["size"] => int(59182)
}
}
ehm
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