php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "$_SERVER['REQUEST_TIME']"

What is the difference between using $_SERVER['REMOTE_ADDR'] and gethostbyname($_SERVER['REMOTE_ADDR']) in PHP for retrieving user information?

When retrieving user information in PHP, using $_SERVER['REMOTE_ADDR'] directly gives you the IP address of the user. However, if you want to get the...

How can the use of $_SERVER['HTTP_HOST'] and $_SERVER['REQUEST_URI'] simplify the process of determining the current domain in PHP?

To determine the current domain in PHP, we can use $_SERVER['HTTP_HOST'] to get the hostname of the current request and $_SERVER['REQUEST_URI'] to get...

What are the potential pitfalls of using $_SERVER['SERVER_NAME'] or $_SERVER['HTTP_HOST'] to retrieve the Internet address in PHP?

Potential pitfalls of using $_SERVER['SERVER_NAME'] or $_SERVER['HTTP_HOST'] include susceptibility to header injection attacks and unreliable results...

What are the potential pitfalls of using $_SERVER['SERVER_NAME'] to determine domain?

Using $_SERVER['SERVER_NAME'] to determine the domain can be unreliable as it relies on the server configuration, which may not always be accurate. It...

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...

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.