Sorry if there is something wrong with this question. I'm developing website. But there is a confusing situation in my head about file system. Choosing to load files from few nested directory or deep nested directories? example:
A. file_get_contents('layout/guest/pages/home/data/slogan.txt');
include_once 'layout/guest/required/front.php';
OR
B. file_get_contents('layout/slogan.txt');
include_once 'layout/front.php';
Which performs faster?
I worry about this because there are lots of file system operations inside the website. If we look at the FileZilla operation, there seen that load many nested directories consuming more time. But I do not know, I hope your help. Thank you for all your helps :)