PHP gets the URL of the address bar 10

Updated on technology 2024-03-06
11 answers
  1. Anonymous users2024-02-06

    That's not right! If you get it, give it a value!

    url=$_post["url"];Yes guaranteed!

    Get all the URLs that can be returned to the current , that is, you can use them when you can go back.

    url=$http_server_vars['http_referer'];

    Then: echo("");

  2. Anonymous users2024-02-05

    The content in the URL is the path to the PHP file itself, and he still needs to ask the browser where it is??? URL is not submitted, PHP never knows, JS can get the content of the browser address bar, but it can still be submitted to the server's PHP in the form of a form, which will definitely refresh the page...

    PHP executes the customer's request, the customer does not request, you can also request the customer in turn, the browser is not an HTTP server, he will not execute someone else's HTTP request, he can only submit the request???

  3. Anonymous users2024-02-04

    This is delivered using get, so you can only get it with $get.

    That is, $get[.]"editname"];

  4. Anonymous users2024-02-03

    You have a fixed value.

    Use $get['editname'] Take.

  5. Anonymous users2024-02-02

    extract($_get);After running this function, you can use $editname

  6. Anonymous users2024-02-01

    $server[.]'php_self'Definitely!

    The results you want are done with pseudo-static!htaccess

    Bridge over the Sunshine That beforehand page.

  7. Anonymous users2024-01-31

    You mean the ?, which is included in the iframe?

    echo $_server['http_referer'];

  8. Anonymous users2024-01-30

    This is actually to delete the content after the last Li Tan, and the method is:

    str=substr($str,0,strrpos($str,'/1);

    echo $str;

    The above **debugging through which line Tong has, if you encounter problems with execution, please check whether the person with the paste error.

  9. Anonymous users2024-01-29

    Just write it like this.

  10. Anonymous users2024-01-28

    $_server["query_string"What you get should be qy=test, and then take it yourself.

  11. Anonymous users2024-01-27

    PHP has a built-in function that can directly obtain the current URL, so let's share it briefly, I hope it can help you;

    How it works: **:

    Run the results.

Related questions
8 answers2024-03-06

DHCP is a function of the router, which means that the IP address is assigned to the connected device, and if you keep showing that you get the P address, it may be that the DCHP function is turned off, and he doesn't assign you an IP address, so you keep getting it, and your computer keeps trying again, and the result is still not obtained, and if you know the network segment, you manually specify the IP

12 answers2024-03-06

Variables can be included in double quotes, where $str reads look at the sea"$str";It will recognize that $str is a variable and explain the contents of the variable to get it"look at the sea", and single quotes'$str'It is to output the string $str, depending on the situation. Sometimes you need to make up a SQL statement with some variables, and double quotation marks are useful. >>>More

4 answers2024-03-06

1.Need a field trip to choose the learning style that suits you; >>>More

14 answers2024-03-06

This means to judge that the variable $entry is not equal to. And not equally. and the following is dir($dir.$entry) Yes. >>>More

9 answers2024-03-06

If you're using aspnet, he has a special function in. NET to get a computer name, IP address and current username is very simple, the following are a few methods I commonly use, if you have other good methods, you can reply and sort it out together: >>>More