PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
This is a server issue. If it is not there it is because the server is not passing it to PHP. You could always try a combination of $_SERVER['HTTP_HOST'] and $_SERVER['PHP_SELF'].