[PHP] chmod error?

2002-04-10 Thread John Weez
Hi all...I want to change the ownership of a file that is created via php..so i uses chmod command in my php script.. Upon execution of the script i get an error saying command not permitted with a line number pointing to my chmod command. I'm running apache as user nobody for security

Re: [PHP] chmod error?

2002-04-10 Thread Henrik Hudson
Hello. First off, to change ownership you want chown, not chmod. Also, chown isn't always permitted depending on the cicrumstances of who owns the directory or the specific file to begin with. If you're web server is running as nobody it will only be able to create files in a directory