PHP chown () الوظيفة
❮ مرجع نظام ملفات PHPمثال
تغيير مالك ملف "test.txt":
<?php
chown("test.txt","charles")
?>
التعريف والاستخدام
وظيفة chown () تغير مالك الملف المحدد.
بناء الجملة
chown(file, owner)
قيمه المعامل
Parameter | Description |
---|---|
file | Required. Specifies the path to the file to change owner for |
owner | Required. Specifies the new owner. Can be a user name or a user ID. |
تفاصيل تقنية
قيمة الإرجاع: | صواب في النجاح ، خطأ في الفشل |
---|---|
إصدار PHP: | 4.0+ |
❮ مرجع نظام ملفات PHP