Leave a Reply

To leave a comment, please Login or Register

Comments (1)

Balvinder Singh Selected

Balvinder Singh

1 year ago
There are two type of file paths
1. relative
2. absolute
relative is when we know path of some file and need to look along nearby path , like var/www/index.php var/www/options.php both are in same folder, so we can do ../options.php to use in index.php as a relative path.

where as var/www/options.php is we add this path then it is an absolute path.

Absolute path in case for Wordpress is the exact path from public folder or / in Linux

so, if we have our WordPress under folder /html , so we can access other files by adding path
/html/folder/file or folder/file with exact folder/file name