beyzad Posted August 14, 2011 Share Posted August 14, 2011 Hi there. I have a program that generate links like this: www.abc.com/#/one/two/three/four/... How can i get the full entered url? I tried all $_SERVER values, but they can't get the string after the # character. Thanks Link to comment https://forums.phpfreaks.com/topic/244748-full-uri-includes-character/ Share on other sites More sharing options...
trq Posted August 14, 2011 Share Posted August 14, 2011 Why is the hash in there in the first place? Anything after a hash is normally for use client side. Link to comment https://forums.phpfreaks.com/topic/244748-full-uri-includes-character/#findComment-1257089 Share on other sites More sharing options...
beyzad Posted August 14, 2011 Author Share Posted August 14, 2011 Hi. I use this cuz i am doing ajax. You can see a live demo here : www.wikimapia.org for example, if you enter the following url, you will be directed to my place: http://www.wikimapia.org/#lat=36.2880919&lon=59.5514452&z=14&l=16&m=b Thanks. Link to comment https://forums.phpfreaks.com/topic/244748-full-uri-includes-character/#findComment-1257094 Share on other sites More sharing options...
MasterACE14 Posted August 14, 2011 Share Posted August 14, 2011 in this case the hash should be a question mark. Link to comment https://forums.phpfreaks.com/topic/244748-full-uri-includes-character/#findComment-1257097 Share on other sites More sharing options...
beyzad Posted August 14, 2011 Author Share Posted August 14, 2011 Hi. Do you see any question mark in the following url? http://www.wikimapia.org/#lat=36.2880919&lon=59.5514452&z=14&l=16&m=b Thanks Link to comment https://forums.phpfreaks.com/topic/244748-full-uri-includes-character/#findComment-1257100 Share on other sites More sharing options...
trq Posted August 14, 2011 Share Posted August 14, 2011 I'm not sure you understand. Hashes are used for client side code. They are not actually sent to the server as part of the request. So, the url you posted in your first post makes no sense in relation to server side operations. Link to comment https://forums.phpfreaks.com/topic/244748-full-uri-includes-character/#findComment-1257106 Share on other sites More sharing options...
$php_mysql$ Posted August 14, 2011 Share Posted August 14, 2011 sorry out of topic but one hell of a site that is really impressive \m/ Link to comment https://forums.phpfreaks.com/topic/244748-full-uri-includes-character/#findComment-1257408 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.