×
Jinxia Li

Relative Path in PHP ‘include’

No Comments

This is important for building modularized application – when grandparent file A ‘include’ a child file B, which ‘include’ a grandchild file C, the path to grandchild file C in child file B is relative to the grandparent A, not parent B. Example:

Reference-

https://stackoverflow.com/questions/17407664/php-include-relative-path

Leave a Comment

Your email address will not be published. Required fields are marked *

By commenting you accept the Privacy Policy