php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "REMOTE_ADDR"

How can using $_SERVER["REMOTE_ADDR"] improve the functionality of a PHP script over getenv(REMOTE_ADDR)?

Using $_SERVER["REMOTE_ADDR"] directly accesses the server-supplied variable, providing a more direct and reliable way to obtain the client's IP addre...

What is the difference between using $REMOTE_ADDR and $_SERVER["REMOTE_ADDR"] in PHP scripts?

Using $REMOTE_ADDR is a deprecated way of accessing the remote IP address of the client in PHP. It is recommended to use $_SERVER["REMOTE_ADDR"] inste...

What are the differences between using $HTTP_SERVER_VARS["REMOTE_ADDR"] and $_SERVER['REMOTE_ADDR'] to retrieve the IP address in PHP?

Using $HTTP_SERVER_VARS["REMOTE_ADDR"] is deprecated in PHP, and it is recommended to use $_SERVER['REMOTE_ADDR'] instead to retrieve the IP address o...

What are the implications of using $REMOTE_ADDR versus $_SERVER['REMOTE_ADDR'] in PHP for obtaining the user's IP address?

Using $REMOTE_ADDR directly can lead to security vulnerabilities as it can be easily manipulated by the client. It's recommended to use $_SERVER['REMO...

What are the potential implications of using getenv("REMOTE_ADDR") instead of $_SERVER['REMOTE_ADDR'] to get the user's IP address?

Using getenv("REMOTE_ADDR") can potentially lead to security vulnerabilities as it relies on the user's input, which can be manipulated. It is safer t...

Showing 11 to 15 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.