php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "$_SERVER"

Are there any potential issues or pitfalls in using $_SERVER['PHP_SELF'] and $_SERVER['SCRIPT_NAME'] in PHP?

One potential issue with using $_SERVER['PHP_SELF'] and $_SERVER['SCRIPT_NAME'] in PHP is that they can be vulnerable to cross-site scripting (XSS) at...

What is the purpose of $_SERVER['PHP_SELF'] in PHP?

The purpose of $_SERVER['PHP_SELF'] in PHP is to retrieve the filename of the currently executing script. However, using $_SERVER['PHP_SELF'] in forms...

Is it possible to store login data in $_SERVER['PHP_AUTH_USER'] and $_SERVER['PHP_AUTH_PW'] using PHP and .htaccess?

Storing login data in $_SERVER['PHP_AUTH_USER'] and $_SERVER['PHP_AUTH_PW'] using PHP and .htaccess is not recommended as these variables are typicall...

How can the use of $_SERVER["HTTP_HOST"] or $_SERVER["SERVER_NAME"] improve link functionality in PHP?

Using $_SERVER["HTTP_HOST"] or $_SERVER["SERVER_NAME"] can improve link functionality in PHP by dynamically retrieving the host name of the current re...

Are there any best practices or guidelines recommended for handling $_SERVER variables, specifically $_SERVER['PHP_AUTH_USER'], in PHP scripts?

When handling $_SERVER variables, especially sensitive ones like $_SERVER['PHP_AUTH_USER'], it is important to validate and sanitize the input to prev...

Showing 26 to 30 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.