php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "host name"

What is the recommended method to determine the name of a database using PHP when having access to the host, user, and password?

To determine the name of a database using PHP when having access to the host, user, and password, you can use the mysqli_connect() function to establi...

What are common reasons for the error message "Host lookup failed" in a socket connection in PHP?

The "Host lookup failed" error in a socket connection in PHP typically occurs when the host name specified in the connection is not valid or cannot be...

How can the error "Unknown MySQL server host 'localhost ' (11004)" be fixed in a PHP script using mysql_connect?

The error "Unknown MySQL server host 'localhost ' (11004)" indicates that there is an issue with the host name specified in the mysql_connect function...

What PHP function can be used to retrieve the host from which a page is accessed?

To retrieve the host from which a page is accessed in PHP, you can use the $_SERVER['HTTP_HOST'] superglobal variable. This variable contains the host...

How can one efficiently stop reading and extracting information from a text file after encountering a certain condition, such as a specific host name?

To efficiently stop reading and extracting information from a text file after encountering a specific condition, such as a specific host name, you can...

Showing 6 to 10 of 6178 results

‹ 1 2 3 4 5 6 7 8 9 10 ... 1235 1236 ›
PHP.ORG

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

Legal

  • About
  • Contact / Imprint
  • Terms
  • FAQ

© 2025 php.org. All rights reserved.