PHP fopen fails as PHP runs as 'nobody'. How to fix this...
Hello All,
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.
This problem might have bugged many others including packages like Joomla, Drupa, etc. How do they get around this problem?
Can anyone help me out here with a solution please.....
Thank you All...
|