The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
chown() ?
How do I use the chown() function to change ownership of folder, and then a file, if someone can post the code for changing ownerships of folders and files seperatly here, I would be really greatful.
Thank you in advance Regards -Arunan |
#2
|
||||
|
||||
your a punk your online and you never came back to aim
punk |
#3
|
||||
|
||||
Hey Im online now!!
Im not a punk |
#4
|
||||
|
||||
so umm anyone know how chown works?
|
#5
|
|||
|
|||
Your script needs to be running as "root" user, since in most setups chown() can only be run by root.
From php manual: Quote:
Hope that helps. |
#6
|
||||
|
||||
Yes, but what is the exact code, I know that the root has to be used, but what is the code that to be used
like chown(dir); or what? |
#7
|
|||
|
|||
chown("/path/to/the/file", "username");
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|