![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 8 Pomógł: 0 Dołączył: 5.12.2004 Skąd: POLAND Ostrzeżenie: (0%) ![]() ![]() |
Witam,
Trafiłem z deszczu pod rynne (z jednego servera na drugi) gdzie funkcja move_uploaded_file jest wylaczona. Dostaje taki komunikat Kod Warning: move_uploaded_file(): open_basedir restriction in effect. File(/wyslane/przelew.jpg) is not within the allowed path(s): (/home/kmr:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/kmr/public_html/f/wyslij.php on line 66 Niestety ale bez tej funkcji nie wyobrazam sobie tworzyc jakikolwiek formularz z przesylaniem plikow na server dlatego chcialem Was zapytac czy istnieje jakakolwiek alternatywa dla tej funkcji? Pozdrawiam |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Przyjaciele php.pl Postów: 5 724 Pomógł: 259 Dołączył: 13.04.2004 Skąd: N/A Ostrzeżenie: (0%) ![]() ![]() |
Rozumiem ze jest to plik uploadowany?
Manual: Cytat Jeśli (...) ustawisz katalog open_basedir, wtedy wszystkie operacje plikowe bedą ograniczone do tego katalogu. Czyli katalog gdzie masz pliki uploadowane nie jest w sciezce dostepnej dla twojego skryptu. Nie zmienisz jej: Cytat Files will, by default be stored in the server's default temporary directory, unless another location has been given with the upload_tmp_dir directive in php.ini. The server's default directory can be changed by setting the environment variable TMPDIR in the environment in which php runs. Setting it using putenv() from within a php script will not work. Sproboj pogadac z adminem, zeby ci przestawil sciezke do uploadowanych plikow. |
|
|
![]() ![]() |
![]() |
Aktualny czas: 17.10.2025 - 04:10 |