How do I declare a variable (actually a base "path") and then use this in all the php files

so If I change the path I can edit ONE file.

now, i know I can do this:

define("BASEPATH", 'website.com/test/');

but how do I then use $BASEPATH in other files?