|
Posted by Mig21 on 05/16/05 02:58
Kimmo Laine a écrit :
> "Dave" <topspam@topspam.us> kirjoitti
> viestissä:4287b63d$0$3109$8fcfb975@news.wanadoo.fr...
>
>>thank you but for give the owner to th folder could you give the
>>instruction please
>>
>
>
> Is chown() perhaps something you are looking for?
> chown
> (PHP 3, PHP 4 , PHP 5)
> chown -- Changes file owner
> Description
> bool chown ( string filename, mixed user)
>
> Attempts to change the owner of the file filename to user user (specified by
> name or number). Only the superuser may change the owner of a file.
>
> with fileowner() you get the current owner of file:
> fileowner
> (PHP 3, PHP 4 , PHP 5)
> fileowner -- Gets file owner
> Description
> int fileowner ( string filename)
>
>
> Returns the user ID of the owner of the file, or FALSE in case of an error.
> The user ID is returned in numerical format, use posix_getpwuid() to resolve
> it to a username.
>
> I'm just guessing here though. I didn't quite understund what you were
> looking for...
>
you probably don't want to change the owner.
if you want apache to upload to a folder, apache must have write
permissions. same as reading.
Navigation:
[Reply to this message]
|