This is because your PHP scripts run under the userid "nobody" and group "nobody". In order to get around this, you will need to set the relevant files and directories to world read/writable. (chmod 777)