0
我試圖在windows
環境(WAMP
)中創建並更改文件的所有權。我的文件如下:更改所有權不起作用
<?php
$my_file = 'myfile.txt';
$handle = fopen($my_file, 'w') or die('Cannot open file: '.$my_file);
$path = "c:\wamp\www\\".$my_file;
$user_name = "Nitish D";
chown($path, $user_name);
?>
儘管文件被創建myfile.txt
,惠蔭我檢查它的細節就顯示了其作爲owner
Administrators
。如何將owner
更改爲我的$user_name
?