php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "get_headers"

How can one check if a URL exists in PHP?

To check if a URL exists in PHP, you can use the `get_headers()` function to retrieve the headers of the URL. If the URL exists, the function will ret...

What are the limitations of using the filesize() function over HTTP in PHP?

The filesize() function in PHP cannot be used directly with files over HTTP because it requires a local file path to determine the size of the file. T...

What is the correct way to check if a file exists in PHP and why does the file_exists function not work with URLs?

To check if a file exists in PHP, you should use the `file_exists` function. However, this function does not work with URLs because it is designed to...

What are some best practices for automatically inserting file information into headers in PHP?

When working with files in PHP, it can be helpful to automatically insert file information into headers for better organization and tracking. One way...

How can the correct status code of a URL be determined in PHP, especially when there is a redirection involved?

When determining the correct status code of a URL in PHP, especially when there is a redirection involved, you can use the `get_headers()` function to...

Showing 81 to 85 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.