im using mkdir and chmod to create dir, copy files into the created dir and to chmod it (anything but 777).. like: [code] if(!is_dir("$ausername")) { mkdir("$ausername", 0755); @chmod("$ausername", 0755); copy("stu_index.html", "$ausername/index.html"); @chmod("$ausername/index.html", 0755); }[/code] *the problem is i cant add files via ftp to the created folder or even delete it.. [code] if(!is_dir("$ausername")) { mkdir("$ausername", 0777); @chmod("$ausername", 0777); copy("stu_index.html", "$ausername/index.html"); @chmod("$ausername/index.html", 0777); }[/code] *only when i use php to mkdir and chmod it to 777, then i am able to add files and or del the folder via ftp.. i wonder how can i not chmod the file and folder 777 yet able to edit things via ftp ? im using a shared unix host.. thanks in advance!