![]() |
![]() ![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 1 Pomógł: 0 Dołączył: 20.03.2005 Ostrzeżenie: (0%) ![]() ![]() |
Cześć
Nie znalazłem rozwiązania na mój problem wiec może mi pomożecie. Temat znany, ale wciąż stwarza problemy. Oto mój węzeł gordyjski. Skrypty upload.php działają poprawnie na lokalhoście, sprawdzałem juz kilka. Używam serwera XAMPP ,php 4.3.10 ,Apache 2.0.53. np.:
Kiedy umieściłem go na serwerze linuxowym pracującym posiadającym php 4 skrypt nie działa. Po kliknęciu na przycisk w formularzu nie występują błedy, pojawia się tekst z linii
Katalogi: zzz2, uploads mają nadane prawa 777 co mogę zauważyć dzieki programowi Windows Commender. Jeśli ktos moze mi pomóc będe wdzięczny: guciek |
|
|
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 123 Pomógł: 0 Dołączył: 12.01.2005 Ostrzeżenie: (0%) ![]() ![]() |
skrypt wyglada ok
tylko pewno blad jest tu: $sc = '../zzz2/uploads/'; ale jeszcze zobacz to ![]() $_FILES['userfile']['error'] Error Messages Explained Since php 4.2.0, php returns an appropriate error code along with the file array. The error code can be found in the ['error'] segment of the file array that is created during the file upload by php. In other words, the error might be found in $_FILES['userfile']['error']. UPLOAD_ERR_OK Value: 0; There is no error, the file uploaded with success. UPLOAD_ERR_INI_SIZE Value: 1; The uploaded file exceeds the upload_max_filesize directive in php.ini. UPLOAD_ERR_FORM_SIZE Value: 2; The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form. UPLOAD_ERR_PARTIAL Value: 3; The uploaded file was only partially uploaded. UPLOAD_ERR_NO_FILE Value: 4; No file was uploaded. Notatka: These became php constants in php 4.3.0. Ten post edytował vala 4.06.2005, 07:37:53 -------------------- Warsztat: Easy PHP 1.7:Apache 1.3.27|PHP 4.3.3|PHPMYADMIn 2.5.3|MYSQL 4.0.15
|
|
|
![]()
Post
#3
|
|
![]() Developer Grupa: Moderatorzy Postów: 2 844 Pomógł: 20 Dołączył: 25.11.2003 Skąd: Olkusz ![]() |
|
|
|
![]() ![]() |
![]() |
Wersja Lo-Fi | Aktualny czas: 14.08.2025 - 00:18 |