is there any way that i can read the actual url entered by the user !?
ie. not $SERVER["SCRIPT_NAME"] nor $SERVER["PHP_SELF"] coz those two give the excuted page instead of the actual url entered by the user, what i am looking for is something like var url = document.write(location) of javascript.
the reason i need the url entered by the user is that i'm going to parse the url and redirect the user to the best match page if the page that user entered does not exist ie.under 404.shtml i'll use <!--#include file="404.php"--> therefore if i use $SERVER["SCRIPT_NAME"] or $SERVER["PHP_SELF"] it will return 404.php instead of the url entered by the user.