URN-based resource server in PHP