get whole url with # in php

Posted by Prashant on Stack Overflow See other posts from Stack Overflow or by Prashant
Published on 2010-03-29T10:32:01Z Indexed on 2010/03/29 10:53 UTC
Read the original article Hit count: 682

Filed under:

Hello all.
I want to get the whole url from address bar, along with #, if any, using php.
say for eg. my url is http://test.com/#/test
Using $_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'] I am getting only http://test.com.
ie everything after # is stripped off. If it is not possible with php, suggest me how to do it using javascript.
Please help me out.
Thanks.

© Stack Overflow or respective owner

Related posts about php