php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "REMOTE_ADDR"

How can the use of $_SERVER["REMOTE_ADDR"] instead of $REMOTE_ADDR impact the functionality of a PHP script?

Using $_SERVER["REMOTE_ADDR"] instead of $REMOTE_ADDR is the correct way to access the remote IP address of the client in PHP. $REMOTE_ADDR is a globa...

What are the potential pitfalls of using deprecated PHP functions like $REMOTE_ADDR instead of $_SERVER['REMOTE_ADDR']?

Using deprecated PHP functions like $REMOTE_ADDR instead of $_SERVER['REMOTE_ADDR'] can lead to compatibility issues with newer PHP versions and may r...

What are the potential security risks of using $HTTP_SERVER_VARS["REMOTE_ADDR"] instead of $_SERVER["REMOTE_ADDR"] in PHP scripts?

Using $HTTP_SERVER_VARS["REMOTE_ADDR"] instead of $_SERVER["REMOTE_ADDR"] in PHP scripts can pose a security risk as $HTTP_SERVER_VARS is deprecated a...

In PHP, what is the difference between $REMOTE_ADDR and $_SERVER['REMOTE_ADDR'] when trying to obtain information about the user's device or network?

When trying to obtain information about the user's device or network in PHP, the difference between $REMOTE_ADDR and $_SERVER['REMOTE_ADDR'] is that $...

What are the differences between using $REMOTE_ADDR and $_SERVER["REMOTE_ADDR"] in PHP scripts?

Using $REMOTE_ADDR directly is not recommended as it is a global variable that may not always be set depending on the server configuration. It is bett...

Showing 6 to 10 of 226 results

‹ 1 2 3 4 5 6 7 8 9 10 ... 45 46 ›
PHP.ORG

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

Legal

  • About
  • Contact / Imprint
  • Terms
  • FAQ

© 2025 php.org. All rights reserved.