943,782 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 5010
  • PHP RSS
Sep 27th, 2009
0

PHP domain name check

Expand Post »
Hai,

I had developed a web site. In that website I need to add a facility to check for the domain name availability. I am a PHP programmer. I need to check for .com, .net, .info, .co.in only.

Please help me how to do this.

Thanks
Rajeesh
Similar Threads
Reputation Points: 10
Solved Threads: 0
Posting Whiz in Training
rajeesh_rsn is offline Offline
265 posts
since Sep 2008
Sep 27th, 2009
-1

Re: PHP domain name check

Try this:

http://www.bootstrike.com/PHPAJAXDom...k/ajax_try.php

It's free, but requires attribution. Ajaxified - looks nice.
Sponsor
Featured Poster
Reputation Points: 1048
Solved Threads: 947
Sarcastic Poster
ardav is offline Offline
6,680 posts
since Oct 2006
Sep 29th, 2009
0

Re: PHP domain name check

Hai,

I had developed a web site. In that website I need to add a facility to check for the domain name availability. I am a PHP programmer. I need to check for .com, .net, .info, .co.in only.

Please help me how to do this.

Thanks
Rajeesh
You can use gethostbyname().
http://us2.php.net/manual/en/function.gethostbyname.php

eg:

PHP Syntax (Toggle Plain Text)
  1. if (gethostbyname('example.com')) {
  2. echo 'Domain exists';
  3. } else {
  4. echo 'Domain does not exist';
  5. }
Moderator
Reputation Points: 457
Solved Threads: 101
Nearly a Posting Virtuoso
digital-ether is offline Offline
1,250 posts
since Sep 2005
Sep 29th, 2009
0

Re: PHP domain name check

dear i m rajneesh do u have any idea to make php based login form
Reputation Points: 10
Solved Threads: 0
Newbie Poster
rajcpn is offline Offline
1 posts
since Sep 2009
Sep 29th, 2009
0

Re: PHP domain name check

Click to Expand / Collapse  Quote originally posted by rajcpn ...
dear i m rajneesh do u have any idea to make php based login form
First let me say welcome to daniweb. And when posting new questions in future, please post a new topic unless they relate to a recent topic which in this case it does not. At least it is better than bumping a 5 year old topic. So as for the problem (making forms), since how it is one of the basics of php, I would suggest following this tutorial. Basically you make a html form and set method=post and action=page.php Then in page.php you place the php code to process the code and the data is stored in the $_POST array/variable. The tutorial should explain it all and a google search will show more. If your confused just let me know.
Sponsor
Featured Poster
Reputation Points: 410
Solved Threads: 258
Occupation: Genius
cwarn23 is offline Offline
3,004 posts
since Sep 2007
Sep 29th, 2009
0

Re: PHP domain name check

Hai,
Ya I am a php programmer and I know to make a login form
Please let me know further
Thanks
Rajeesh


Click to Expand / Collapse  Quote originally posted by rajcpn ...
dear i m rajneesh do u have any idea to make php based login form
Reputation Points: 10
Solved Threads: 0
Posting Whiz in Training
rajeesh_rsn is offline Offline
265 posts
since Sep 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: Joomla help!
Next Thread in PHP Forum Timeline: Inerting new rows in a database table





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC