Problem obtaining the current url using php

0

Hi, I have the following error when it comes to obtaining the current url using php The URL is as follows:

  

http://localhost/token.php?#access_token=EAALhZB1GcFMUBAIk7fEy1221212HjQUT6wb0NypHpKYRKRxcQVcKxmn56hn0RdZB6LO6qyppN1Jc7VBjcJITzOoKBT65dKZBgiyy55HNqdKuTAJSVnfgCwfdBBwe1rl0cUeksZAXcuG8cLJLwMYHQ8557bvVjhD2MTse3czS3o1c0jWmIqdWMYLJ63TYIIpFKK4DVm8a3LtH7sq2Ngz5QZDZD&expires_in=709385

As you can see the url has this part ?#access_token the sign # prevents getting the full url using this method.

$urls = "http://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; 

echo $urls;

What I'm trying to do is get the full url, I only get this part http://localhost/token.php?

    
asked by BotXtrem Solutions 13.11.2017 в 21:33
source

1 answer

1

The problem is the sign of gato # , they will never be sent to the server because it is usually used for anchors on the client side page. Check this question .

    
answered by 13.11.2017 в 21:44