PHP domain name check

Reply

Join Date: Sep 2008
Posts: 138
Reputation: rajeesh_rsn is an unknown quantity at this point 
Solved Threads: 0
rajeesh_rsn rajeesh_rsn is offline Offline
Junior Poster

PHP domain name check

 
0
  #1
Sep 27th, 2009
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
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 955
Reputation: ardav will become famous soon enough ardav will become famous soon enough 
Solved Threads: 126
ardav's Avatar
ardav ardav is offline Offline
Posting Shark

Re: PHP domain name check

 
0
  #2
Sep 27th, 2009
Try this:

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

It's free, but requires attribution. Ajaxified - looks nice.
"...the woods would be a very silent place if no birds sang except for the best"
All opinions count.
F'enw i yw Mr. Blaidd. Byddwch yn ofalus - dwi'n cnoi.
Reply With Quote Quick reply to this message  
Join Date: Sep 2005
Posts: 1,075
Reputation: digital-ether is just really nice digital-ether is just really nice digital-ether is just really nice digital-ether is just really nice 
Solved Threads: 66
Moderator
digital-ether's Avatar
digital-ether digital-ether is offline Offline
Veteran Poster

Re: PHP domain name check

 
0
  #3
Sep 29th, 2009
Originally Posted by rajeesh_rsn View 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
You can use gethostbyname().
http://us2.php.net/manual/en/function.gethostbyname.php

eg:

  1. if (gethostbyname('example.com')) {
  2. echo 'Domain exists';
  3. } else {
  4. echo 'Domain does not exist';
  5. }
www.fijiwebdesign.com - web design and development and fun
Cpanel Email - Let users Register email accounts on your website upon registration
Ajax Chat - Fully browser based chat!
Reply With Quote Quick reply to this message  
Join Date: Sep 2009
Posts: 1
Reputation: rajcpn is an unknown quantity at this point 
Solved Threads: 0
rajcpn rajcpn is offline Offline
Newbie Poster

Re: PHP domain name check

 
0
  #4
Sep 29th, 2009
dear i m rajneesh do u have any idea to make php based login form
Reply With Quote Quick reply to this message  
Join Date: Sep 2007
Posts: 1,449
Reputation: cwarn23 has a spectacular aura about cwarn23 has a spectacular aura about cwarn23 has a spectacular aura about 
Solved Threads: 135
cwarn23's Avatar
cwarn23 cwarn23 is offline Offline
Nearly a Posting Virtuoso

Re: PHP domain name check

 
0
  #5
Sep 29th, 2009
Originally Posted by rajcpn View Post
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.
Try not to bump 10 year old threads as it can be really annoying.
Like php then read my website at http://syntax.cwarn23.net/
Star-Trek-Atlantis - now that's what I call a movie ^_^
My favourite PC. - MacGyver Fan
Bad english note: dis-iz-2b4u
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 138
Reputation: rajeesh_rsn is an unknown quantity at this point 
Solved Threads: 0
rajeesh_rsn rajeesh_rsn is offline Offline
Junior Poster

Re: PHP domain name check

 
0
  #6
Sep 29th, 2009
Hai,
Ya I am a php programmer and I know to make a login form
Please let me know further
Thanks
Rajeesh


Originally Posted by rajcpn View Post
dear i m rajneesh do u have any idea to make php based login form
Reply With Quote Quick reply to this message  
Reply

Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC