पीएचपी एमकेडीआईआर () फंक्शन
❮ पीएचपी फाइल सिस्टम संदर्भउदाहरण
"परीक्षण" नाम की एक निर्देशिका बनाएँ:
<?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) |
टेक्निकल डिटेल
प्रतिलाभ की मात्रा: | सफलता पर सत्य, असफलता पर असत्य |
---|---|
पीएचपी संस्करण: | 4.0+ |
❮ पीएचपी फाइल सिस्टम संदर्भ