php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "domain name"

How can the address in the URL always display a specific domain name, regardless of the server setup?

To always display a specific domain name in the URL regardless of the server setup, you can use PHP to check the current domain name and redirect to t...

What other PHP variables can be used to reliably retrieve the domain name with or without www in a consistent manner?

When retrieving the domain name from a URL in PHP, the $_SERVER['HTTP_HOST'] variable can be used to reliably get the domain name with or without the...

Are there alternative methods in PHP for extracting specific parts of a URL, such as the domain name?

To extract specific parts of a URL, such as the domain name, in PHP, you can use the parse_url() function to break down the URL into its components. T...

How can the domain name be included in an email sent using the mail() function in PHP for easier identification?

When sending emails using the mail() function in PHP, it can be helpful to include the domain name in the email headers for easier identification. Thi...

How can you retrieve the full domain name with the HTTP or HTTPS protocol using PHP?

To retrieve the full domain name with the HTTP or HTTPS protocol in PHP, you can use the $_SERVER superglobal array. The $_SERVER['HTTP_HOST'] variabl...

Showing 6 to 10 of 6830 results

‹ 1 2 3 4 5 6 7 8 9 10 ... 1365 1366 ›
PHP.ORG

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

Legal

  • About
  • Contact / Imprint
  • Terms
  • FAQ

© 2025 php.org. All rights reserved.