I want to encode the URL including its path in PHP.
For eg: As of now,my path is `www.yoursite.com/code/results/show.php?u=10&n="tom"`.
I want to encode this URL so that user should not be able to see the 
`"/code/results/show.php?u=10&n="tom"`.
Why I need this because 

1. I do not want to expose my server data location to user
2. Keep my server safe.

Thanks in advance.