hey, i have no clue how to start this one. i need to know how to find the url of the page that i redirected to. what i want, is have a page, and if you dont have enough permissions to view the page, you get redirected to a different page that displays what the error is. the page is going to display different errors for each situation. so im going to do something like:
function redirectedFrom($url) {
//code
}
if(redirectedFrom($url) == $url2) {
echo "error message1";
}
or something similar, you get the point.