The problem of PHP creating directory function

When the

mkdir () function uses the absolute path, why is not taking the project directory as the root directory but disk as the root directory?

-sharp  E  Test 
mkdir("/Test");
-sharp  Test 
mkdir("Test");

solve

Php
Mar.01,2021

first of all, you don't know what absolute path
absolute path starts from the root path

    On
  • linux, it is / , for example: / home/salamander/code/test.js
  • In the case of
  • Windows Mountain, it starts with a drive letter, C:\ Windows\ System32\ drivers\ etc\ hosts

clipboard.png

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1ea1501-1b47.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1ea1501-1b47.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?