create directory failure
Hello,I wrote a PHP script which should create a new directory with mode 755
(>> mkdir ("test",0755);<<)
after execution of this script I get:
Warning: mkdir() failed (Permission denied) in /home2/user_id/public_html/directory/create.php on line 4.
This perrmission error do not appear if script home directory mode is set to 777. That means I have to open such dir. for public writing (777) if I want to dynamicaly generate directories and upload files. That is what I should not do.
I am wondering is there permission that should set on the PHP to allow writing to my folder. Other ways of solving this problem is also possibile!
Andy