mkdir with root privileges
I am trying to create folders with a php website so users can login to an ftp session to drop files.
the script makes the directory but won't chown to the user name I want. the user name on the folder is apache.
What is the command for mkdir in php that will allow this chown as well.
I was looking for tips on using sudo for it but couldn't get it to work.