php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "get_headers"

What are the potential drawbacks of using file_get_contents() to check for domain existence in PHP?

Using file_get_contents() to check for domain existence in PHP can be slow and inefficient, as it downloads the entire content of the webpage. This ca...

Are there any alternative methods or functions in PHP that can be used to check the status of a URL more effectively?

When checking the status of a URL in PHP, using the `get_headers()` function is a common approach. However, this function may not always be reliable a...

How can one check if an external domain exists using PHP?

To check if an external domain exists using PHP, you can make a simple HTTP request to the domain and check the response code. If the response code is...

What are the potential reasons for the code provided not working to check the existence of an external domain?

The potential reasons for the code not working to check the existence of an external domain could be related to network connectivity issues, incorrect...

How can PHP be used to handle HTTP redirects and extract the destination URL from the headers?

To handle HTTP redirects and extract the destination URL from the headers in PHP, you can use the `get_headers()` function to retrieve the headers of...

Showing 66 to 70 of 103 results

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