Permission problems mkdir()

hey guys,

i changed the permission of all my folders to 777 but i still get this:
Warning: mkdir(): Permission denied in /storage/ssd5/191/6153191/public_html/php/form.php on line 46

anyone knows whats going on?
cheers

The script is? :slight_smile:

$structure = '../uploads/';
mkdir('./test1/test2', 777, true);
chmod('./test1/test2', 777);
$save = fopen($structure.$projectname . ".json", "w");
fwrite($save, $json);
fclose($save);

worked well, added the mkdir() and the chmod() line but i get permission errors

Warning: mkdir(): Permission denied in /storage/ssd5/191/6153191/public_html/php/form.php on line 46
Warning: chmod(): Permission denied in /storage/ssd5/191/6153191/public_html/php/form.php on line 47

@ckhawand Your feedback still needed here!

1 Like

Make sure the directory you are creating the folder in is set to 755

1 Like