Gerald Posted April 30, 2011 Share Posted April 30, 2011 Hello, can you please help i have a question ! how can i create some kind of internal " whois server " for a domain .AL so i can register the domain's on my database. since there is no whois server for .AL domains, is there any method i can have domains already registered in my website to show as unavailable? some kind of internal check into a database or something? i don't know if i was very clear in explaining my problem, i hope someone can help me. thank you. 0 Quote Link to comment Share on other sites More sharing options...
DontForget Posted April 30, 2011 Share Posted April 30, 2011 It is really easy, look, 1) Create subdomain ( like whois,yoursite.com ) 2) Add your subdomain link to /includes/whoisservers.php ( make new line and write: .al|whois.yoursite.com|No entries found 3) Create script which will check domains avaibility from the file.If domain free your script shoud write No entries found.... Hope this will help Best Regards, Alex. 0 Quote Link to comment Share on other sites More sharing options...
Gerald Posted April 30, 2011 Author Share Posted April 30, 2011 Can u please tell me or give me some kind if directions on how can i create the "" 3) Create script which will check domains avaibility from the file.If domain free your script shoud write No entries found.... "" Because here is were i am confused and cant work it out ! How can i create the check domain avaibility from the file ? That would help me solve my problem ! Thank you for taking time on this ! 0 Quote Link to comment Share on other sites More sharing options...
DontForget Posted April 30, 2011 Share Posted April 30, 2011 a very simple example <?php if ($_SERVER['REQUEST_METHOD'] == 'GET'){ $check = htmlspecialchars($_GET['domain']); }else{ $check = htmlspecialchars($_POST['domain']);} $mystring = prezident.al mail.al'; //write your domains, separate with the space $pos = strpos($mystring, $check); if ($pos !== false) { echo "Registered";//change if you need } else { echo "Not found";//change if you need } ?> 0 Quote Link to comment Share on other sites More sharing options...
Gerald Posted April 30, 2011 Author Share Posted April 30, 2011 Thank's for taking time and helping ! What precisely i'm looking for is for a script who can create files '".al " ! So when users purchase the domain they are looking for a file can be created so after they make the payment the domain wont be available ! Example : support.host.al whois server: http://www.host.al/html/domain/domwhois/domain/ !! I am trying to do the same thing ! Again thank you for your help ! 0 Quote Link to comment Share on other sites More sharing options...
DontForget Posted May 1, 2011 Share Posted May 1, 2011 Yep, I had the same issue, but with the subdomain. Look, General Settings > Ordering > Block Existing Domains Tick this box to prevent orders being placed for domains already in your system Hope this will help. And can you give the source code of that, http://www.host.al/html/domain/domwhois/domain/ Thanks. Best Regards, Alex. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.