Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Alternatywa dla move_uploaded_file?
Kimor
post
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
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
dr_bonzo
post
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.
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: 17.10.2025 - 04:10