ulimativ: mkdir problem

Beitrag lesen

Hi »» Hier mein code:


mkdir($destpath = "/".$_SESSION["domain"], 0777);
copy("userindex.php", $dest = $destpath."/index.php");
CHMOD($destpath."/index.php", 0777);
Warning: mkdir() [function.mkdir]: SAFE MODE Restriction in effect. The script whose uid is 17025 is not allowed to access / owned by uid 0 in /home/www/htdocs/air-world.de/xxx/xxx/step4.php on line 28

Tja das liegt wohl daran, dass du keine Rechte im destpath hast, also das mkdir schon keine rechte hat.
Das heisst du musst das verzeichnis das über $_SESSION["domain"] steht chmod 766 geben. Dann sollte das klappen.
gruß uli