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? 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 Link to comment https://forums.phpfreaks.com/topic/183556-error-pages/#findComment-968909 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.