I can not write in php, but I had to. How to use require_once to connect, for example, /folder_1/test.php, if I do it from the file /second/main.php? That is, I am not in the root directory?

    1 answer 1

    require_once('../folder_1/test.php'); 

    In general, it is better to connect from the root. It is more convenient and reliable.