canadabeeau Posted December 1, 2009 Share Posted December 1, 2009 Hi I want my error 403 pages to also say which URL the user tried to visit, ie <?php echo "You can not visit:".$pagetriedtoview.", sorry if this is not okay.";?> How can I do this? Quote Link to comment https://forums.phpfreaks.com/topic/183556-error-pages/ Share on other sites More sharing options...
steviewdr Posted December 1, 2009 Share Posted December 1, 2009 See: http://www.php.net/manual/en/reserved.variables.server.php <?php echo $_SERVER['REQUEST_URI']; ?> -steve Quote Link to comment https://forums.phpfreaks.com/topic/183556-error-pages/#findComment-968909 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.