cpanel - php chmod issue with server -


i creating new directory 1 index.php file inside, php script. give privileges using code -

mkdir("".$directoryname.""); chmod($directoryname.',755); chmod($directoryname.'/index.php',644); 

when working local machine working fine. but, if move code server, privileges not set. default set 0777 directory , 0666 index.php.

here hierarchy -

public_html/{mydirectory}/index.php 

public_html having 0755. controller file setting permissions located @ -

public_html/{directory}/{directory}/{directory}/controller.php 

all {directory} has 0755 permissions. have checked changing permissions of these {directory} 0777, same issue.

any appreciated.

thanks.


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -