![]() |
I need to change file ownership with PHP script
This is a follow on from my previous problem.
I have now managed, with help, to copy a file to a new file name. However, the file is useless for use by the user because it is chown apache.apache. I need it to be countrymusic.apache to be usable. This is my code up to now: PHP Code:
Code:
Array ( [type] => 2 [message] => chown(): Operation not permitted [file] => /home/countrymusic/countrymusic.org.uk/html/clubs/fr_clubs/fr_admin/register-exec.php [line] => 120 )How can I change to root within the script ??? Can anybody help, please. |
can I ask why you need those ownership perms ? , you should be able to chmod them to 0777 would that not be enough ?
|
Quote:
I assumed that I needed to change the ownership of the file, but now realise that chmod 0777 works perfect. |
<==== Is still waiting for firepages website to be fixed :thumbsup:
|
| All times are GMT +1. The time now is 10:32 PM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.