php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "$_SERVER"

How can you determine if $_SERVER['PHP_SELF'] is identical to $_SERVER['SCRIPT_NAME']?

To determine if $_SERVER['PHP_SELF'] is identical to $_SERVER['SCRIPT_NAME'], you can use the strcmp() function in PHP. This function compares two str...

What is the difference between $_SERVER['QUERY_STRING'] and $_SERVER['PHP_SELF'] in PHP?

$_SERVER['QUERY_STRING'] contains the query string part of the URL, including any parameters passed to the script. On the other hand, $_SERVER['PHP_SE...

What is the difference between $_SERVER['PHP_SELF'] and $_SERVER['SCRIPT_NAME'] in PHP?

$_SERVER['PHP_SELF'] and $_SERVER['SCRIPT_NAME'] both provide the filename of the currently executing script, but there is a subtle difference between...

What are the differences between `$_SERVER["REQUEST_URI"]`, `$_SERVER["SCRIPT_NAME"]`, and `$_SERVER["PHP_SELF"]` in PHP?

`$_SERVER["REQUEST_URI"]` contains the URI which was given in order to access the page, `$_SERVER["SCRIPT_NAME"]` contains the path of the current scr...

What is the difference between $_SERVER["REQUEST_URI"] and $_SERVER["HTTP_REFERER"] in PHP?

$_SERVER["REQUEST_URI"] contains the URI of the current request, including query parameters, while $_SERVER["HTTP_REFERER"] contains the URL of the pr...

Showing 1 to 5 of 1617 results

‹ 1 2 3 4 5 6 7 8 9 10 ... 323 324 ›
PHP.ORG

A free knowledge base for PHP developers. Open to all.

Legal

  • About
  • Contact / Imprint
  • Terms
  • FAQ

© 2025 php.org. All rights reserved.