a minimal set of routing functions for use with php