westman Posted February 2, 2014 Share Posted February 2, 2014 Hi all I have a php domain checker script and it works fine... <?phpif($_POST['proses']){ //$domain_name_show = $_POST['domain']; //$domain_suffix_show = $_POST['suffix']; $nama_domain = "$_POST[domain]"."$_POST[suffix]"; $arrHost = @gethostbynamel("$nama_domain"); if(empty($arrHost)){ echo "Domain $nama_domain is available, price unknown."; }else{ echo "Domain $nama_domain is not available."; }}?> I would like it to check non premium domains only so I am not selling a domain for $15 that costs me over $1,000. How do I do that? Link to comment Share on other sites More sharing options...
Don Jajo Posted February 2, 2014 Share Posted February 2, 2014 how do you mean a premium domain??? Link to comment Share on other sites More sharing options...
westman Posted February 3, 2014 Author Share Posted February 3, 2014 for example when you buy a normal domain from godady.com its about 15-30USD but some names cost over 1,000USD because they are premium names. how do i get my PHP to find the (price) difference? Link to comment Share on other sites More sharing options...
davej Posted February 3, 2014 Share Posted February 3, 2014 (edited) Why wouldn't you have your prices in a database table or in an array? Edited February 3, 2014 by davej Link to comment Share on other sites More sharing options...
westman Posted February 3, 2014 Author Share Posted February 3, 2014 I do not know the prices of domains. I just know if they are available or not. What I am asking is how do I find out (by using PHP) witch name costs more and witch ones are cheaper. Link to comment Share on other sites More sharing options...
justsomeguy Posted February 3, 2014 Share Posted February 3, 2014 You'll need to find a domain seller that provides a price checking service that you can use. Those prices are set by the people selling the domains, so you need to check with them to get the price. ICANN does not distinguish between "regular" and "premium" domain names, they all start at the same price. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now