I'm not entirely sure what you're asking... If you want to do a redirect, it can be done like this:
header("Location: http://www.example.com");
The header doesn't get displayed to the user, so redirecting is probably the only time you would ever put a URL there.