It is not valid HTTP response when you put relative path. However, you can calculate it from the whole path and the name of the script itself... litlle playing with strings 🙂
also are useful several environment and HTTP variables, so check the documentation 🙂