Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   HTML / XHTML / CSS (http://www.programmingforums.org/forum27.html)
-   -   domain name search (http://www.programmingforums.org/showthread.php?t=4536)

Alex C D1DJ Jun 21st, 2005 8:17 AM

domain name search
 
Hi

I know its not html but what language would i use to create a domain name search.

so my users can search to see if there domain is available and then if it is available purchase the domain name

Thanks
Alex C

Infinite Recursion Jun 21st, 2005 1:23 PM

PHP
(making this reply longer)

Ooble Jun 21st, 2005 3:03 PM

IR, if you're gonna use filler, put [color] tags around it at least. You want #EDEDED.

Infinite Recursion Jun 22nd, 2005 9:30 AM

Can't be bothered with that... :)

Pizentios Jun 22nd, 2005 9:33 AM

php would most likely be the best language.

Are you starting a domain registy?

Dizzutch Jun 22nd, 2005 3:34 PM

yeah, but just cuz a domain doesn't respond to pings doesn't mean it's not owned by someone, you'd have to run a whois on it.
-Dizz

Pizentios Jun 23rd, 2005 4:44 PM

Quote:

Originally Posted by Dizzutch
yeah, but just cuz a domain doesn't respond to pings doesn't mean it's not owned by someone, you'd have to run a whois on it.
-Dizz

instead of programming it your self (well if you want to learn something you should), you could use this script located at: http://sourceforge.net/projects/phpwhois

i haven't tryed it out, but it looks pretty easy to use.

Cerulean Jun 23rd, 2005 6:40 PM

Can someone give me a reason why PHP is considered "the best language" for almost anything web related 'round these parts?
IMO there are many faults with PHP (that i'm not going to detail here), and web programming with Python is probably "better" due to the massive amount of web-related external modules for things like TLS, SSL, HTTP authentication, SSH etc, and the fact that it's an elegant language with re-usability and readability in mind.

BlazingWolf Jun 24th, 2005 12:19 AM

Well...because most of us like php better for whatever reason

And like no one uses python for web programming cept you. :P

And that my friend was a thread hijack

Cerulean Jun 24th, 2005 4:15 AM

<offtopic>

Quote:

Well...because most of us like php better for whatever reason
And I like the Konqueror web browser, but I still take into account the existence of other web browsers when designing a website (bad analogy, but it's early..)

Quote:

And like no one uses python for web programming cept you. :P
...and Google, NASA, people who use Zope, the Moin Moin wiki, Mailman, and so on...

</offtopic>

<ontopic>

Domain lookup you say? Here is quick domain look-up using whois information from whois.net with Python. I'm not sure what the maximum amount of lookups per IP address is though, you'll have to run the script a lot of times and see.
:

import urllib

def whois(domain):
    page = urllib.urlopen("http://www.whois.net/whois.cgi2?d=%s" % domain).read()
    return page.count("No match found for '%s'" % domain) == 0

if whois("google.com"):
    print "google.com is a registered domain!"

if whois("gaojfwaruqp.com"):
    print "gaojfwaruqp.com is a registered domain!"
else:
    print "gaojfwaruqp.com is NOT a registered domain name!"


</ontopic>


All times are GMT -5. The time now is 4:22 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC