If you would like to reference a PHP script from within another PHP script, use either the include() or require() functions. For example, if you want to store functions for all of your pages in one file, you could reference that file from within your web pages like this:
include ('/foo.php');