I am building a system that includes all validation, database function php pages in one global page

then in my system I will call the global page which will hold all the includes.
This is done to save time adding all the includes on every page.

Problem is that when i call the global.php script when in another folder the pages in the global can't be found.

setup
global.php

include '../scripts/dbconfig.php';
include '../scripts/validation.php;

main pages

include 'global.php';

when in root it is fine, when calling global.php in e.g. website folder/pages/ the scripts in the global.php cant be found.

i assume it is a relative linking problem, anyway i can resolve this issue?