PHP mkdir() လုပ်ဆောင်ချက်
❮ PHP ဖိုင်စနစ် အကိုးအကားဥပမာ
"test" ဟု အမည်ပေးထားသည့် လမ်းညွှန်တစ်ခု ဖန်တီးပါ-
<?php
mkdir("test");
?>
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
mkdir() လုပ်ဆောင်ချက်သည် လမ်းကြောင်းအမည်ဖြင့် သတ်မှတ်ထားသည့် လမ်းညွှန်တစ်ခုကို ဖန်တီးသည်။
အထားအသို
mkdir(path, mode, recursive, context)
ကန့်သတ်တန်ဖိုးများ
Parameter | Description |
---|---|
path | Required. Specifies the directory path to create |
mode | Optional. Specifies permissions. By default, the mode is 0777 (widest possible access). Note: The mode parameters is ignored on Windows platforms! The mode parameter consists of four numbers:
Possible values (to set multiple permissions, add up the following numbers):
|
recursive | Optional. Specifies if the recursive mode is set (added in PHP 5) |
context | Optional. Specifies the context of the file handle. Context is a set of options that can modify the behavior of a stream (added in PHP 5) |
နည်းပညာဆိုင်ရာအသေးစိတ်
ပြန်ပို့တန်ဖိုး- | အောင်မြင်မှုအပေါ် သစ္စာ၊ ကျရှုံးမှုတွင် မှားသည်။ |
---|---|
PHP ဗားရှင်း- | 4.0+ |
❮ PHP ဖိုင်စနစ် အကိုးအကား