php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "get_headers"

How can one determine if a file_get_content() call results in a 404 error?

To determine if a file_get_contents() call results in a 404 error, you can check the HTTP response code returned by the function. If the response code...

How can one extract the original filename of a downloaded file when using file_get_contents() in PHP?

When using file_get_contents() in PHP to download a file, the original filename of the downloaded file is not directly accessible. However, you can ex...

How can one access and utilize the response headers when using file_get_contents() in PHP?

When using file_get_contents() in PHP to retrieve a remote file, the function does not provide access to the response headers by default. To access an...

Are there alternative methods to validate the existence of a server when checking a homepage input in PHP?

When checking a homepage input in PHP, one alternative method to validate the existence of a server is by using the `get_headers()` function to send a...

Why is the filesize() function in PHP not suitable for remote files, and what alternative method can be used to determine the file size for remote downloads?

The filesize() function in PHP is not suitable for remote files because it requires the file path to be local. To determine the file size for remote d...

Showing 51 to 55 of 103 results

‹ 1 2 ... 8 9 10 11 12 13 14 ... 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.