PHP将文件链接到根文件目录

I've decided to organize my website into folders, the problem is when I do, the PHP files cannot access /Images in the root directory. For example: I have a header.php linked to /test_folder/test.php with include. Neither of these files can access the /Images folder. Is there a solution that will allow me to organize files into folders and still access main files in the root directory?

Remember that an initial slash in a pathname will point to the root directory of your file system. Try one of these methods:

include($_SERVER["DOCUMENT_ROOT"]. "/test_folder/test.php");

This if you know the relative path:

include("../test_folder/test.php");