JamieFuller
Programmer
Hi,
I have a php script that creates a folder, this works but the permissions are incorrect.
I have tried using the chmod command with setting 0777 but that only changes it to 757 (or something like that)
I want to create a folder and then cretae a small php file inside it.
is 0777 the right access level or is that too open?
my idea is
is that ok? will it work?
Kindest Regards
Jamie
I have a php script that creates a folder, this works but the permissions are incorrect.
I have tried using the chmod command with setting 0777 but that only changes it to 757 (or something like that)
I want to create a folder and then cretae a small php file inside it.
is 0777 the right access level or is that too open?
my idea is
Code:
mkdir ("folder",0777);
$filea = fopen ("folder.index.php","w");
fwrite($filea,"test text");
fclose ($filea);
is that ok? will it work?
Kindest Regards
Jamie