![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 11 Pomógł: 0 Dołączył: 7.05.2014 Ostrzeżenie: (0%) ![]() ![]() |
Witam!
Piszę mały CMS do zarządzania stroną sklejam.com.pl Kilka dni temu zmieniłem serwer utrzymujący tę stronę z hostinghouse.pl na 1and1.pl. Oczywiście na nowym serwerze jest Windows i chcę zapytać, czy jest jakaś różnica w uploadowaniu plików na serwer w tych dwóch różnych systemach operacyjnych za pomocą funkcji move_uploaded_file()? Pytam bo na Windows skrypt prawidłowo nie przenosi wgrywanych plików. Wyciu |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 11 Pomógł: 0 Dołączył: 7.05.2014 Ostrzeżenie: (0%) ![]() ![]() |
Wyczytałem w manualu PHP taki wpis:
For those using PHP on Windows and IIS, you SHOULD set the "upload_tmp_dir" value in php.ini to some directory around where your websites directory is, create that directory, and then set the same permissions on it that you have set for your websites directory. Otherwise, when you upload a file and it goes into C:\WINDOWS\Temp, then you move it to your website directory, its permissions will NOT be set correctly. This will cause you problems if you then want to manipulate that file with something like ImageMagick's convert utility. Jak się tworzy taki php.ini? |
|
|
![]() ![]() |
![]() |
Aktualny czas: 14.10.2025 - 14:35 |