Check Domain Name Availability With PHP

Scripts and tutorials to check domain availability with PHP — Maybe we often check the availability of the domain that we will order at a web hosting that provides server rental services, but have we ever thought and found out how to make a script to check the availability of the domain?

Then in our minds, is it difficult? consuming a lot of scripts? maybe only senior programmers understand? Turns out it was all wrong. The script to check the domain is very simple, let’s make a domain check script with php:

I’m using xampp in this tutorial, please create a new folder in htdocs named check_domain create a new file index.php, in thecheck_domain folder, also create a new css folder in it create a new file and name it style.css, here is a picture of the folder structure:

Untitled

Here’s the script for css/style.css:

body {
margins: 0px;
padding: 0px;
}

check_domain {

margins: 250px;
font-size:28px;
}

.input {
font-family: “Verdana”;
font-size: 28px;
colors: #000;
text-decoration: none;
padding: 5px;
border: 1px solid #009BDB;
}

.resultdomain {
width: 500px;
padding: 10px;
background: #EEE;
font-size: 16px;
}

.font-green {
color: green;
}

.font-red {
color: red;
}
css/style.css
The main script for index.php, this script is placed in the body, don’t forget to include style.css in the head section by using the rel=”style.css” link.