php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "$_SERVER"

What are potential pitfalls when using $_SERVER['REMOTE_ADDR'] to retrieve IP addresses in PHP?

Using $_SERVER['REMOTE_ADDR'] to retrieve IP addresses in PHP can be unreliable as it can be easily spoofed or manipulated by users. To accurately ret...

In PHP, what are the differences between using dirname($_SERVER['PHP_SELF']) and explode('/', $_SERVER['PHP_SELF']) to determine the path, and which one is recommended for beginners?

When determining the path in PHP, using dirname($_SERVER['PHP_SELF']) will give you the parent directory of the current script, while explode('/', $_S...

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

The difference between $_SERVER['REMOTE_ADDR'] and $REMOTE_ADDR in PHP is that $_SERVER['REMOTE_ADDR'] is a superglobal array that contains server and...

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

The main difference between PHP_SELF and _SERVER["REQUEST_URI"] in PHP is that PHP_SELF contains the filename of the currently executing script, while...

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

The difference between $PHP_SELF and $_SERVER['PHP_SELF'] in PHP forms is that $PHP_SELF is a variable that was used in older versions of PHP to refer...

Showing 41 to 45 of 1617 results

‹ 1 2 ... 6 7 8 9 10 11 12 ... 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.