PHP Domain Availability Checker (Check Domain Instantly)

Rate this post

Today, We want to share with you PHP Domain Availability Checker (Check Domain Instantly) using jQuery AJAX.In this post we will show you Try AJAX Instant Website URL Name exist or not Checker in PHP, hear for check to see if a Website URL is available or not using PHP? we will give you demo and example for implement.In this post, we will learn about with an example.

PHP Domain Availability Checker (Check Domain Instantly) using jQuery AJAX

There are the Following The simple About Website URL exist or not checker, php free download Full Information With Example and source code.

As I will cover this Post with live Working example to develop Website URL name exist or not check source code, so the some major files and Directory structures for this example is following below.

Free Live Chat for Any Issue
Website URL Availability jQuery/Javascript Ajax Checker

Instantly Domain Availability Checker In PHP

We have simple create index.php files that include HTML, CSS, and PHP free download source Codes.

Read Also:  how to send email in php using localhost in mail configuration by XAMPP/LAMP/WAMP server?

index.php

<!DOCTYPE html>
<html lang="en">
    <head>
        <title>www.pakainfo.com - Instant Server side Domain Availability Checker Script</title>    
    </head>
    <body>
        <div class="wrapper">
            <h2>Check Domain Name Availability</h2>
            <div class="container">
                <form action="" method="GET">
                    <input id="searchBar" class="advancedsearch" type="text" name="domain" placeholder="Search You Web domain name..." value="<?php if(isset($_GET['domain'])){ echo $_GET['domain']; } ?>">
                    <button type="submit" id="btnSearch" class="btn-search"><i class="fa fa-search"></i></button>
                </form>
            </div>
            <?php
                error_reporting(0);
                if(isset($_GET['domain'])){
                    $url_fulll = $_GET['domain'];
                    if ( gethostbyname($url_fulll) != $url_fulll ) {
                        echo "<h3 class='fail'>Your Domain Already Registered!</h3>";
                    }
                    else {
                        echo "<h3 class='success'>Good Luck, your domain is available!, you can register it.</h3>";
                    }
                }
            ?>
        </div>

        <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.2/css/all.css"/>
        <style type="text/css">
            body, h2, h3 {
                font-weight: normal;
                font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
                color: #333;
            }
            body {
                display: flex;
                flex-direction: column;
                justify-content: center;
                align-items: center;
                height: 90vh;
            }
            h2 {
                font-size: 26px;
                text-align: center;
            }
            h3 {font-size: 24px; }
            h3.success {
                color: #008000;
                text-align: center;
            }
            h3.fail {
                color: #ff0000;
                text-align: center;
            }
            .container {
                display: flex;
                flex-direction: row;
                justify-content: center;
                align-items: center;
            }
            .advancedsearch {
                padding: 6px 10px;
                width: 400px;
                max-width: 100%;
                border: none;
                margin-top: 1px;
                margin-right: 8px;
                font-size: 1em;
                border-bottom: #333 solid 2px;
                transition: 0.3s;
            }
            .advancedsearch::placeholder {
                font-size: 1em;
            }
            .advancedsearch:focus {
                outline: none;
            }
            .btn-search {
                cursor: pointer;
                text-decoration: none !important;
                font-size: 1.5em;
                padding-top: 5px;
                padding-bottom: 5px;
                background-color: transparent;
                border: none;
                outline: none;
            }
        </style>
    </body>
</html>

Web Programming Tutorials Example with Demo

Read :

Read Also:  Codeigniter recaptcha form validation - Google recaptcha

Summary

You can also read about AngularJS, ASP.NET, VueJs, PHP.

Download

I hope you get an idea about Website URL availability check github.
I would like to have feedback on my infinityknow.com blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.