Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [php] problem z uploadem plikow
mmmincberg
post
Post #1





Grupa: Zarejestrowani
Postów: 5
Pomógł: 0
Dołączył: 20.12.2009

Ostrzeżenie: (0%)
-----


a wiec tak

formularz ( form.html ) :

<form enctype="multipart/form-data" action="upload.php" method="POST"^gt;
<input type="hidden" name="MAX_FILE_SIZE" value="1000" />
Upload File: <input name="uploadedfile" type="file" />
<input type="submit" value="Upload File" />
</form>

ladowanie pliku ( ulpload.php )

<?php
$target_path = "uploads/";
$target_path = $target_path . basename( $_FILES['uploadedfile']['name']);

if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path)) {
echo "The file ". basename( $_FILES['uploadedfile']['name']). "Plik zaladowany ! ";
} else{
echo "Blad plik nie zaladowany !";
}?>

----------
katalog uploads - jest ustawiony na 777
pliki upload.php i form ustawione na 755

i mam problem po wybraniu pliku i probie uploada na server caly czas dostaje blad

nie wiem czy to ma znaczenie ale pliki mam w podkatalogu na serwerze
a nie w glownym katalogu

Ten post edytował mmmincberg 20.12.2009, 21:25:11
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 23.08.2025 - 16:16