galacnet
10-06-2004, 08:22 AM
Does anyone know how to get a php script to chown a file to another user?
I used
chown ("filename", username);
But I got this error
Warning: chown(): Operation not permitted in /home/sites/site2/web/form.php on line 66
I then tried
exec (chown -R username filename);
No errors but it doesn't change anything at all at all....
Also tried shell_exec after reading the php manual but also no luck with that....
The CHMOD functions work under the same coding as above though but not the CHOWN...
Please help
I am running php 4.3.8
Thanks
I used
chown ("filename", username);
But I got this error
Warning: chown(): Operation not permitted in /home/sites/site2/web/form.php on line 66
I then tried
exec (chown -R username filename);
No errors but it doesn't change anything at all at all....
Also tried shell_exec after reading the php manual but also no luck with that....
The CHMOD functions work under the same coding as above though but not the CHOWN...
Please help
I am running php 4.3.8
Thanks
