How to correctly load a PHP file in another PHP file?
问题 I have trouble to find a way to load a php file correctly in another php file when the php file is included in another php file with include () and required_once(). I found that if Afile.php uses url such as ../controller/mycontroller.php to include another php file in it, when Afile.php in been included in Bfile.php which is located in a different dir, the ../ will lead the Afile.php's url to a different dir that is based on Bfile.php. I tried to use these PHP string to specify a file's url