Check if the domain name exists

This tutorial is temporarily unavailable, please try related tutorials.
Related Tutorials
Creating a domain checker
In this tutorial I will show you how to create a PHP script to check whether the actual domain name is available or not. In the next section I focus on the .com domains but you can extend the script to handle as many top level domains as you want.
Implementing Cross-Domain Cookies
Cookies are a great invention, allowing the web developer to maintain the login status of their users. However, problems occur when your site or network has more than one domain. The cookie specification says that any cookie set for one domain, must not be sent to any other domain. Therefore, if you set a cookie in your user's browser on one domain, that cookie will not be available on any other domain. This is a big problem, if you want your users to log in on one of your sites and still be logged in on your other domains.
Check your server status - a basic ping
In this tutorial I will show you how to check whether a domain, server is up or down and how fast it is. Generally speaking we will implement a ping command with PHP.
Check For Empty Values
In this tutorial we will create a function to check if a field is empty in either a string or an array. So this could be used to do a simple check on if a form field is left blank.
Extract domain, path etc from a full url
PHP's parse_url function makes it easy to extract the domain, path and other useful bits of information from a full URL. This can be useful for a variety of purposes, such as when spidering content from a website and needing to extract particular pieces of information from the links in the page.
How to get all META data of a website
In this tutorial I will show you how you can easy check META information of any website. It can be very usefull in search engine optimization when you want to check your competitors settings.
Creating a Website / Server Monitoring Script
I have created a script which allows users to check to see if their server is online. Obviously running this script from the same server and trying to check your server status whilst its down its too clever, so try using an include or iframe from a free hosting company.
Contact form validation
Creating a very simple PHP script that will stop some basic spam bots submitting blank or spam messages in contact forms. What we need to do is call the parameters and check to see if what has been submitted is blank or if it contains data. Also we will check to see if the email that is entered has to correct characteristics of an email address. If you are new to html and PHP this is a rather easy tutorial to follow I will explain in detail what each function is and how it works.
Sending E-Mail to validate User Sign-up
In on of our last tutorials we covered how to verify that a users email address is formatted correctly as well as verify that it goes to a valid domain name.
Force Redirect to SSL
The public domain code snippet below shows you how to forcibly redirect a web page to SSL using PHP, if you require the page to be SSL encrypted.
Upload and Rename File
In this tutorial show you how to rename file when upload file to server to prevent new file overwrite an old file that exists in you server.
Upload and Rename File
This tutorial show you how to rename file when upload file to server to prevent new file overwrite an old file that exists in you server.
Sending Emails
This tutorial describes: How to check the mail server on your local Windows system, How to send an email through PHP.
Extract query string into an associative array
How to extract the domain, path, etc from a url with PHP and in this follow up post show how to extract the query string into an associative array using the parse_str function.
E-mail Validation with PHP
This tutorial will show you how to check to see if an E-mail address is valid.
Last Modified
Learn how to check when the file was last modified using power of PHP.
PHP News CMS
Check out this great tutorial to find out all the details of Content Management Systems (CMS). Everything you need to know is right here.
How to Identify Duplicate and Similar Text
It's not a common problem but sometimes you have to check if 2 texts are similar. If you have to aggregate data from multiple sources you might know what I'm talking about.
PHP Script Tips - Understanding and Managing Cookies
A collection of 23 tips on understanding and managing cookies in PHP. Clear explanations and tutorial exercises are provided on setting and receiving cookies, creating and removing persistent cookies, specifying domain and path to restrict cookies, finding cookies in cookie files, cookie limitations.
PHP Form Class
Generates select boxes, text boxes, check boxes and radio buttons. Via a handful of functions.
Geotargetting code
This snippet originally is used for targetting ads banners depended on the geographic location of the visitor, but can be used for other purposes. Also originally is used for US and the rest of the world, but you can add check for other countries too.
Check the status of a page
Sometimes it is useful to know whether a certain website is online or if it is down. This could be part of a more complex script, so even just a simple status page. Either way, the principle is the same.
PHP With HTML Forms
This 2-page tutorial shows how to work HTML forms in PHP. Topics covered: Drop menu builder, Radio buttons, Check boxes, Error processing, and more.
IMAP Mail Reading With PHP3
Don't you hate it when you are at a friend's house or visiting relatives and you want to check your email but dont know your POP/IMAP settings. Or even worse, they dont have your POP or IMAP software?
E-mail Validation with PHP
This tutorial will show you how to check to see if an E-mail address is valid. When you register on at a website, the site normally checks if the e-mail address that you enter is in a valid format. This is done by using what called a Regular Expression.
Getting Your Visitor's Details using PHP
You can get quite a bit of information about your visitors without having to use a third party tracking software. I'll outline the PHP commands you can use to capture some of this data. The details you capture can be saved into a database, and retrieved later to check your site's performance and user details.
Macronimous - Codeigniter for PHP application development
With many software frameworks available online nowadays, with many pros and cons on their side, it has become very important to check out complete details of these frameworks before applying them. Amongst the various kinds of software frameworks, the PHP Framework is more popular nowadays.
Check what people searched in search engines for your site
Find out what people have searched on search engines to access your website. A similar feature can be found on google.com/webmasters but thats is a 3rd party script where as this can be hosted directly on your site .
Screen Scraping Your Way Into RSS
RSS is one the hottest technologies at the moment, and even big web publishers (such as the New York Times) are getting into RSS as well. However, there are still a lot of websites that do not have RSS feeds. If you still want to be able to check those websites in your favourite aggregator, you need to create your own RSS feed for those websites. This can be done automatically with PHP, using a method called screen scrapping.
Using PHP 'if' Statements
Using 'if' statements, you can check to see if a variable equals something else, and then execute a line of code if it is, and execute another line of code if it isn't. This tutorial is meant for beginners.
Saving Data into Excel the Easy Way
PHP: If youre looking for an easy way to output your data from a PHP script into a Excel file, youve got to check out this script MS Excel Stream Handler which I came across at the PHP Classes site.
How to use Cookies
Cookies is small text files saved locally on the user's computer by the website, when the website later on wants the information it just reads the cookie on the user's computer. An example on what you can use cookies for is to see if the user has visited the site before, if it has then a cookie you saved the last time lies on the computer so therefor you can only check if it does.
 
Categories