Remeber that including a file isn't the same thing as defining a
function. That is, if the included file immediately starts with <?php
then it's as if the content were written in the enclosing script.
So the included file is not restricted to function definitions,
it can include global variables and in-line code as well.
So in your example, if 'track.php' includes a function called track(),
you can do it the way you described, but you could also include
the statement
track();
as the last line of the file (after any function definitions but before
the terminating ?> ) and then the track function will be called
anytime you include the file; you don't have to remember to
add the function call to you top-level source file.