Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> APACHE_Problem z mkdir() zabroniony dostep..HELP
JarekBednarskii
post
Post #1





Grupa: Zarejestrowani
Postów: 17
Pomógł: 0
Dołączył: 20.09.2007

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


Witam,

Mam problem z serwerem Apache (IMG:http://forum.php.pl/style_emoticons/default/sad.gif) Otóż mam taki fragment kodu (skrypt tworzy m.in katalog) :

umask (0);
mkdir ("$abpath/$newdir", 0755);
chmod ("$abpath/$newdir",0777);
$file = fopen("$abpath/$newdir/album.txt","w");
chmod ("$abpath/$newdir/album.txt",0777);

Problem polega na tym ,że po wywołaniu skryptu otrzymuję błąd: mkdir() [function.mkdir] permission dennied..... i linia
mkdir ("$abpath/$newdir", 0755); (IMG:http://forum.php.pl/style_emoticons/default/sad.gif) Pisałem już bo myślałem ze to problem w kodzie...ale podobno wina może leżeć po stronei serwera (niewłaściwa konfiguracja??)

Jak mogę sprawdzić lub jak ustawić aby serwer mógł tworzyć ten katalog (tzn aby skrypt mogl go tworzyc na serwerze)....jakies prawa dostępu ale nie mam pojęcia gdzie (IMG:http://forum.php.pl/style_emoticons/default/sad.gif)

Proszę o pomoc...to dla mnie ważne i dość pilne.

pozdrawiam i dzięki!
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: 20.12.2025 - 17:50