Code: Select all
mkdir($creation_dir, 0775);
$index_file = $creation_dir."/index.php";
$fh = fopen($index_file, 'w') or die("can't open file");
Once I create the file, I don't have permission to do anything to it since it's created by the server and server group haha