What is the “less code needed” way to get parameters from an URL query string which is formatted like the following?
My current url
www.mysite.com/category/subcategory/#myqueryhash
I put this code
$url="http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
It returns only www.mysite.com/category/subcategory/
Output should be :
www.mysite.com/category/subcategory/#myqueryhash
You can use this for HTTP request
You can use this for HTTPS request
You can use this for HTTP/HTTPS request