R
R
rinaz222020-05-16 10:42:24
PHP
rinaz22, 2020-05-16 10:42:24

How to get full URL in PHP?

Hello! How can I get the full url in PHP? Displayed the $_SERVER array, but not everything is there. I also need what is after #, i.e. should be like this:
http://www.site.ru/page#abc
Is it possible to do it in PHP or in some other way on the server and then you can work in PHP?
On JS I know how to get it, but it's not desirable to send it to the server.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DevMan, 2020-05-16
@rinaz22

that after # exists only in the browser, and is not transmitted to the server in any way.
the only option is to receive js'om and send it as a parameter to the server. there are no other options. from the word at all.
and if you have a problem with that, I have bad news for you.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question