★ wanayoo — archive 1999 http://www.php.net/manual/ja/function.chown.phpNouvelle recherche | Portail wanayoo

PHP Home Page

Manual Table of Contents
Up to ファイルシステム
Quick Reference
English version of this pageGerman version of this pageItalian version of this pageFrench version of this pageHungarian version of this page
ファイルシステム
* basename
* chgrp
* chmod
* chown
* clearstatcache
* copy
* delete
* dirname
* diskfreespace
* fclose
* feof
* fgetc
* fgetcsv
* fgets
* fgetss
* file
* file_exists
* fileatime
* filectime
* filegroup
* fileinode
* filemtime
* fileowner
* fileperms
* filesize
* filetype
* flock
* fopen
* fpassthru
* fputs
* fread
* fscanf
* fseek
* fstat
* ftell
* ftruncate
* fwrite
* set_file_buffer
* is_dir
* is_executable
* is_file
* is_link
* is_readable
* is_writeable
* link
* linkinfo
* mkdir
* pclose
* popen
* readfile
* readlink
* rename
* rewind
* rmdir
* stat
* lstat
* realpath
* symlink
* tempnam
* touch
* umask
* unlink
Manual: chown
View the source code for this pageSearch the site



Previous page
 chmod
 Updated
Mon, 14 Aug 2000
clearstatcache 
Next page


chown

(PHP3 , PHP4 )

chown -- ファイルの所有者を変更する

説明

int chown (string filename, mixed user)

ファイルfilenameの所有者をユーザuserに変更しようと試みます。 スーパーユーザのみがファイルの所有者を変更できます。

成功するとtrueを返し、そうでなければfalseを返します。

chown()およびchmod() も参照下さい。


User Contributed Notes: chown


joey@samaritan.com
18-Nov-1999 12:48
The manual is correct. Only superuser can chown files. (Don't believe? Try it! :) This is mainly useful for people who use php to write cron scripts, etc.


admin@cqfd.net
12-Jan-2000 09:07
What about using sudo ?
available at http://www.courtesan.com/sudo/
just putting nobody the ability to do chmod command...
It MUST work...



marcos@dyr.es
03-Aug-2000 10:19
There is a way to set the superuser in php3, although it is not the right one. it is to set the file permissions as 777 with "chmod".


 About Notes


Previous page
 chmod
 Updated
Mon, 14 Aug 2000
clearstatcache 
Next page





Who's responsible for this?
Top of this page

Site
Hosting:



Located in
United States
Elements of this website are subject to copyright.
Questions about installing or using PHP should be directed to one of the mailing lists.
Only questions about the website should be directed to webmaster@php.net.