You are here: Re: Please could you help me « PHP Language « IT news, forums, messages
Re: Please could you help me

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация