I have a problem getting to grips with file permissions and hope someone can point me in the right direction.
I have a PHP script that creates a folder on the server and then uploads a couple of files to it (it's an admin function in the web site).
I have moved the site to our new server but when I try and run the admi script (which uses mkdir(full_directory_path) I get permission denied. By default the main folder is 755 and I have tried all combinations up to 777 but of course I don't think it likes a 777 anway.
The actual error message is
Warning: mkdir(/home/p900themes/domains/p900themes.com/public_html/themes/designs/Cartoons/homertrix): Permission denied in /home/p900themes/domains/p900themes.com/public_html/themes/addthemes.php on line 83
Can anyone suggest why the script cannot create new folders and files?
Many thanks
Steve
I have a PHP script that creates a folder on the server and then uploads a couple of files to it (it's an admin function in the web site).
I have moved the site to our new server but when I try and run the admi script (which uses mkdir(full_directory_path) I get permission denied. By default the main folder is 755 and I have tried all combinations up to 777 but of course I don't think it likes a 777 anway.
The actual error message is
Warning: mkdir(/home/p900themes/domains/p900themes.com/public_html/themes/designs/Cartoons/homertrix): Permission denied in /home/p900themes/domains/p900themes.com/public_html/themes/addthemes.php on line 83
Can anyone suggest why the script cannot create new folders and files?
Many thanks
Steve