ankur0101 Posted May 20, 2009 Share Posted May 20, 2009 Hi, I want to make a website like domaintools.com I have not yet reached to that limit of knowledge . How to do that ? I want its host name, its name servers list, IP, WHOIS, domain registrar, thumbnail photo, Domain created date, last update date, expiry date. Plz...need help Quote Link to comment https://forums.phpfreaks.com/topic/158911-how-to-make-website-like-domaintoolscom/ Share on other sites More sharing options...
JonnoTheDev Posted May 20, 2009 Share Posted May 20, 2009 You need all programs available on your server that can perform the tasks i.e WHOIS from the CLI, PHP itself has some functions to utilize such as DNS record lookups, look into these. If you use PHP to create the website then you need the ability to execute the server apps through PHP and parse the results to display to the user. i.e. // whois lookup exec("whois xyz.com", $output); Quote Link to comment https://forums.phpfreaks.com/topic/158911-how-to-make-website-like-domaintoolscom/#findComment-838219 Share on other sites More sharing options...
ankur0101 Posted May 21, 2009 Author Share Posted May 21, 2009 Thanks I want to make it like www.samplewhois.com/index.php?domain=somewebsite.com Then by making .htaccess, I want it like www.samplewhois.com/somewebsite.com Is it possible ? Quote Link to comment https://forums.phpfreaks.com/topic/158911-how-to-make-website-like-domaintoolscom/#findComment-838805 Share on other sites More sharing options...
JonnoTheDev Posted May 21, 2009 Share Posted May 21, 2009 yes Quote Link to comment https://forums.phpfreaks.com/topic/158911-how-to-make-website-like-domaintoolscom/#findComment-838810 Share on other sites More sharing options...
GingerRobot Posted May 21, 2009 Share Posted May 21, 2009 Thanks I want to make it like www.samplewhois.com/index.php?domain=somewebsite.com Then by making .htaccess, I want it like www.samplewhois.com/somewebsite.com Is it possible ? No. I'm afraid they created that website with a magic wand, which has unfortunately since been broken. It's therefore impossible to create something similar. Quote Link to comment https://forums.phpfreaks.com/topic/158911-how-to-make-website-like-domaintoolscom/#findComment-838819 Share on other sites More sharing options...
ankur0101 Posted June 24, 2009 Author Share Posted June 24, 2009 Hi friends, I am back, I was busy and out of town for few days. I have 2 pages index.php domains.php Here is the Code of index.php <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <style type="text/css"> <!-- .style1 { font-size: 24px } --> </style> </head> <body> <p> </p> <p> </p> <p> </p> <form id="form1" name="form1" method="post" action="index.php"> <div align="center" class="style1">Enter Domain Name : <label> <input name="domainnamebox" type="text" id="domainnamebox" size="35" /> </label> <label> <input type="submit" name="submit" id="submit" value="Submit" /> </label> </div> </form> <p align="center">E.g. google.com</p> </body> </html> Code of domains.php <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <body> <p>WHOIS Record for </p> <p>Front Page Information :</p> <table width="591" border="0" bordercolor="#FFFFFF" bgcolor="#FFFFFF"> <tr> <td width="108">Website Title</td> <td width="473"> </td> </tr> <tr> <td>Meta Discription</td> <td> </td> </tr> <tr> <td>Meta Keywords</td> <td> </td> </tr> <tr> <td>About Us</td> <td> </td> </tr> </table> <p> </p> <table width="588" border="0"> <tr> <td width="108">Alexa Ranking</td> <td width="470"> </td> </tr> </table> <p>Registery Date :</p> <table width="590" border="0"> <tr> <td width="111">Registrar</td> <td width="469"> </td> </tr> <tr> <td>Created</td> <td> </td> </tr> <tr> <td>Updated</td> <td> </td> </tr> <tr> <td>Expires</td> <td> </td> </tr> <tr> <td>Status</td> <td> </td> </tr> <tr> <td>Name Server</td> <td> </td> </tr> <tr> <td>Name Server</td> <td> </td> </tr> <tr> <td>Whois Server</td> <td> </td> </tr> </table> <p>Server Data :</p> <table width="589" border="0"> <tr> <td width="111">Server Type</td> <td width="468"> </td> </tr> <tr> <td>IP Address</td> <td> </td> </tr> </table> <p>Whois Record :</p> <p> </p> <p> </p> </body> </html> So how can I redirect index.php to domains.php Like this > When a person will search for google.com, index.php will redirect it to domains.php?domain=google.com After that considering HEADER , domains.php file will react. How can I do that ? Quote Link to comment https://forums.phpfreaks.com/topic/158911-how-to-make-website-like-domaintoolscom/#findComment-862782 Share on other sites More sharing options...
ankur0101 Posted June 24, 2009 Author Share Posted June 24, 2009 Now I have added this code before <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> in index.php <?php isset($_POST['submit']); $domains = $_POST['domainnamebox']; if($domains == 0) { $iderror; } else { header('Location: domains.php?domains='.$domains); } ?> When I search for google.com, it goes to index.php, where it should go to domains.php?domains=google.com What I am doing wrong ? Please I need help Quote Link to comment https://forums.phpfreaks.com/topic/158911-how-to-make-website-like-domaintoolscom/#findComment-862791 Share on other sites More sharing options...
947740 Posted June 24, 2009 Share Posted June 24, 2009 What is isset($_POST['submit']); doing all by itself? Normally you use if(isset($_POST['submit'])) { // then do something } And where do you define $iderror? Quote Link to comment https://forums.phpfreaks.com/topic/158911-how-to-make-website-like-domaintoolscom/#findComment-862793 Share on other sites More sharing options...
ankur0101 Posted June 24, 2009 Author Share Posted June 24, 2009 I have already put if(isset($_POST['submit'])) { } But it was doing nothing, then I thought using isset($_POST['submit']); I know, I am going in wrong direction, damn confused Quote Link to comment https://forums.phpfreaks.com/topic/158911-how-to-make-website-like-domaintoolscom/#findComment-862794 Share on other sites More sharing options...
ankur0101 Posted June 25, 2009 Author Share Posted June 25, 2009 What I have to do ? Quote Link to comment https://forums.phpfreaks.com/topic/158911-how-to-make-website-like-domaintoolscom/#findComment-863121 Share on other sites More sharing options...
Ken2k7 Posted June 25, 2009 Share Posted June 25, 2009 You have to learn PHP. <?php if($domains == 0) { $iderror; } What is that? Quote Link to comment https://forums.phpfreaks.com/topic/158911-how-to-make-website-like-domaintoolscom/#findComment-863132 Share on other sites More sharing options...
JonnoTheDev Posted June 25, 2009 Share Posted June 25, 2009 You have no chance if you don't know PHP or perl Quote Link to comment https://forums.phpfreaks.com/topic/158911-how-to-make-website-like-domaintoolscom/#findComment-863322 Share on other sites More sharing options...
Daniel0 Posted June 25, 2009 Share Posted June 25, 2009 What is that? A perfectly valid, yet entirely useless piece of PHP code. Quote Link to comment https://forums.phpfreaks.com/topic/158911-how-to-make-website-like-domaintoolscom/#findComment-863324 Share on other sites More sharing options...
ankur0101 Posted June 26, 2009 Author Share Posted June 26, 2009 Hello Sir I have solved the issue. How can I Fetch the remote Server's Signature, Name Servers ? I am using $dnsrecord = dns_get_record("series99.com"); On my computer, its showing error. I know how to get whois record of domain but how to Fetch only Registration Date and Expiry Date ? Should I use any Java Script ? Quote Link to comment https://forums.phpfreaks.com/topic/158911-how-to-make-website-like-domaintoolscom/#findComment-863948 Share on other sites More sharing options...
JonnoTheDev Posted June 26, 2009 Share Posted June 26, 2009 I know how to get whois record of domain but how to Fetch only Registration Date and Expiry Date ? Should I use any Java Script ? WTF would javascript do for you? If you know how to fetch the whois record for a domain and store in a variable then it is simple to extract the registration date and expiry date using regex or php's string functions. Quote Link to comment https://forums.phpfreaks.com/topic/158911-how-to-make-website-like-domaintoolscom/#findComment-864018 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.