Menu
I’m trying to create a new file within a new directory that was created using mkdir. The permission on the new folder are fine. I checked the permission within my ftp client. I can create files within the parent directory. code follows. Please note not complete code.
[code=php]
// Create folder for sub pages
mkdir(“../$sect/”,0777);
// create file for index of section
$file = “../$sect.php”;
$main_file = “../$sect/main.php”;
$fp = fopen (“$file”, “wb”) or die(“can’t open file”);
fclose($fp);
$fp2 = fopen (“$main_file”, “wb”) or die(“can’t open main file”);
fclose($fp2);