Creating & writing to a file (with permission 755) from PHP fails as PHP runs as 'nobody' and target file owner is another user
问题 I am writing a PHP code that creates another PHP file with fopen and writes to it. It runs on most shared environments without any problem but in some old servers and customized servers the code fails to create file and write to it even though the folder permission is 755 as the PHP runs under the account 'nobody' and the folder owner is another user. In shared servers the folder owner and the PHP both runs under same user and so there are no permission issues. Can anyone help me out here