Answers for "what is relative path"

7

relative path

/   = Root directory
   .   = This location
   ..  = Up a directory
   ./  = Current directory
   ../ = Parent of current directory
   ../../ = Two directories backwards
Posted by: Guest on March-26-2020
0

relative path

require __DIR__ . '/../folder1/folder2/file';
Posted by: Guest on October-26-2021

Browse Popular Code Answers by Language