pureDesi Posted January 21, 2007 Share Posted January 21, 2007 I've looked around and couldn't find a solution, and I'm not entirely sure if it's possible.But is it possible to get the full URL including what's after the hash symbol (#) ?$_SERVER['QUERY_STRING'] returns everything after the question mark but stops as soon as it hits the # symbol.Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/35062-getting-the-_full_-url/ Share on other sites More sharing options...
bibby Posted January 21, 2007 Share Posted January 21, 2007 $_SERVER['REQUEST_URI'] ?? Quote Link to comment https://forums.phpfreaks.com/topic/35062-getting-the-_full_-url/#findComment-165468 Share on other sites More sharing options...
pureDesi Posted January 21, 2007 Author Share Posted January 21, 2007 Nope, does the exact same thing :( Quote Link to comment https://forums.phpfreaks.com/topic/35062-getting-the-_full_-url/#findComment-165470 Share on other sites More sharing options...
Jessica Posted January 21, 2007 Share Posted January 21, 2007 I don't think it is under certain circumstances. If you visit the page as http://www.domain.com/page.php?id=1#homeI think URI could do it. But if you went to the pagehttp://www.domain.com/page.php?id=1then click on the a href to #home, you won't be able to tell, because the page has already loaded.Does that make sense? Quote Link to comment https://forums.phpfreaks.com/topic/35062-getting-the-_full_-url/#findComment-165471 Share on other sites More sharing options...
bibby Posted January 21, 2007 Share Posted January 21, 2007 Nope. I guess not. # is a client side element.PHP would never be aware of it if the anchor id first appears after the page is loaded. What are you trying to do?Javascript might be able to do it. Quote Link to comment https://forums.phpfreaks.com/topic/35062-getting-the-_full_-url/#findComment-165476 Share on other sites More sharing options...
pureDesi Posted January 21, 2007 Author Share Posted January 21, 2007 I was scared of that.. Well I have a flash app that uses DHTML history and was going to implement some stuff using it.. but I guess I'll have to resort javascript. Quote Link to comment https://forums.phpfreaks.com/topic/35062-getting-the-_full_-url/#findComment-165481 Share on other sites More sharing options...
bibby Posted January 21, 2007 Share Posted January 21, 2007 It's not a bad thing if it's the right thing. Quote Link to comment https://forums.phpfreaks.com/topic/35062-getting-the-_full_-url/#findComment-165518 Share on other sites More sharing options...
Daniel0 Posted January 21, 2007 Share Posted January 21, 2007 [quote author=bibby link=topic=123336.msg509682#msg509682 date=1169371572]It's not a bad thing if it's the right thing.[/quote]The problem is that the page would break if the user does not use Javascript. Quote Link to comment https://forums.phpfreaks.com/topic/35062-getting-the-_full_-url/#findComment-165564 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.