php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "get_headers"

How can PHP be used to check if a specific page on a server is available?

To check if a specific page on a server is available, you can use PHP to send a HTTP request to the page and check the response code. If the response...

How can you access and evaluate the header of a redirect in PHP?

When a redirect occurs in PHP, you may need to access and evaluate the headers of the redirect response for various reasons, such as checking the stat...

How can the HTTP status code be retrieved using PHP to determine if a link is reachable?

To determine if a link is reachable, you can use PHP to make a request to the URL and retrieve the HTTP status code. This can be done using the `get_h...

How can the distinction between different status codes, like 301 and 200, be determined when accessing URLs like Google.com using PHP?

To determine the distinction between different status codes when accessing URLs like Google.com using PHP, you can use the PHP function get_headers()....

Are there any best practices for automatically determining the Content-Type based on the response content in PHP?

When making HTTP requests in PHP, it is important to accurately determine the Content-Type of the response content. One way to automatically determine...

Showing 91 to 95 of 103 results

‹ 1 2 ... 12 13 14 15 16 17 18 19 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.