The term “absolute path” is a rather arcane one. Using simpler speech, the “absolute path” is just the full listing of the location of a file or a folder/directory on a computer. It is sometimes known as the “full path.” The absolute path includes the complete location of the file or folder, including which drive it is on.
For example, on a Windows computer, the absolute path for a file might be:
Servers systems are required to know the absolute path for every file that it has access to in order to locate it. Each different operating system (Windows, Linux, MacOS, etc) uses a different syntax or way to write an absolute path.
There is also a term called “relative path,” which refers to the location of a file in relation to the current location. For example, the above file in Windows might be listed as “\docs\blogpost1.txt” if you are currently in the “Billy” folder.
The only time you need to know and use absolute paths in WordPress is when you are a developer and you need to reference the exact location of a file when writing code. To find the absolute path of files used for WordPress, you can write three simple lines of code in PHP and store that information on your web server for use as a reference.
Latest posts by Jamie (see all)
- Facebook Alternatives 2021 – Social Networks That Won’t Sell Your Data - February 3, 2021
- How To Make Money On Twitch – 2021 Ultimate Guide - February 2, 2021
- .IO vs .COM – Which Domain Extension Should You Choose? – 2021 Guide - January 13, 2021