I am trying to give 777 permissions to a folder on my hosting.
I use the following command: chmod("./test",0777);
I know it doesn't work because I execute a script which changes a file in the directory.
If I give the permissions manually (in the FTP) it works.
Why doesn't the chmod work?