php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "get_headers"

What are some best practices for checking the existence of a website using PHP?

When checking the existence of a website using PHP, it is important to handle different scenarios such as checking for valid URLs, handling errors, an...

What are the indicators of an HTTP redirection and how can it be detected in PHP?

When a website performs an HTTP redirection, it typically sends a status code of 301 or 302 along with a Location header that specifies the new URL. T...

Is there a recommended method or code example to handle URL redirection detection in PHP?

When handling URL redirection detection in PHP, one common approach is to check the HTTP response headers for any redirection status codes (e.g., 301...

What is the most efficient way to check if an image exists on a remote server in PHP?

When checking if an image exists on a remote server in PHP, the most efficient way is to use the `get_headers()` function to retrieve the headers of t...

How can one request only the header of a file from a remote HTTP server in PHP?

When requesting only the header of a file from a remote HTTP server in PHP, you can use the `get_headers()` function. This function sends a HEAD reque...

Showing 46 to 50 of 103 results

‹ 1 2 ... 7 8 9 10 11 12 13 ... 20 21 ›
PHP.ORG

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

Legal

  • About
  • Contact / Imprint
  • Terms
  • FAQ

© 2025 php.org. All rights reserved.