Chciałem wrzucić zdjęcia do bazy mysql, jednak przeczytałem, że w łatwy sposób można ją spowolnić.
Tak więc postanowiłem wrzucić zdjęcia na serwer.
Niestety pojawia się problem:
Cytat
Warning: move_uploaded_file(C:\wamp\www\foto\zdjecia) [function.move-uploaded-file]: failed to open stream: Permission denied in C:\wamp\www\foto\upload.php on line 3
Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move 'C:\wamp\tmp\phpF085.tmp' to 'C:\wamp\www\foto\zdjecia' in C:\wamp\www\foto\upload.php on line 3
Nie da się uploadować!
Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move 'C:\wamp\tmp\phpF085.tmp' to 'C:\wamp\www\foto\zdjecia' in C:\wamp\www\foto\upload.php on line 3
Nie da się uploadować!
plik upload.php
<?php $sciezka='C:wampwwwfotozdjecia'; { } ?>
index.html (formularz):
<!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-2" /> </head> <body> <form method="post" action="upload.php" enctype="multipart/form-data"> <input type="file" name="myfile" size="30"> <input type="submit" value="Upload"> </form> </body> </html>