girishbmgowda posted on 2010-02-19 06:01:59 #
Hi,
can i know is their any php script r methods to add domain details to my website.
I mean when user wants to know the details about a particular domain they will type in a text box, so that we need to provide the details like in whois server.
for example have a look of the following [b]example[/b] : - http://www.networksolutions.com/whois/index.jsp
Please provide me some information which is related to this...
thanks in advance,
Regard's
Girish
The most popular forum posts:
Comments / discussions
Olaf posted on 2010-02-19 06:16:00 #
Hello,
do you tried our Whois script?
girishbmgowda posted on 2010-02-19 09:32:42 #
Quote from: Olaf"Hello,
do you tried our Whois script?"
Hi olaf,
This is girish here, I need to implement domain registration details in my website. As I download your php script from www.phpclasses.org
When I make it live(http://www.pbminfotech.com/girish/whois/multi_whois_detail.php) by placing in a folder I encounter following errors as mentioned below, please support me on this issues
Warning: include(/home/pbminfot/public_html/classes/whois/server_list.php) [function.include]: failed to open stream: No such file or directory in /home/pbminfot/public_html/girish/whois/multi_whois_detail.php on line 2
Warning: include() [function.include]: Failed opening '/home/pbminfot/public_html/classes/whois/server_list.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/pbminfot/public_html/girish/whois/multi_whois_detail.php on line 2
Warning: include(/home/pbminfot/public_html/classes/whois/whois_class.php) [function.include]: failed to open stream: No such file or directory in /home/pbminfot/public_html/girish/whois/multi_whois_detail.php on line 3
Warning: include() [function.include]: Failed opening '/home/pbminfot/public_html/classes/whois/whois_class.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/pbminfot/public_html/girish/whois/multi_whois_detail.php on line 3
girishbmgowda posted on 2010-02-19 09:40:05 #
Quote from: Olaf
"Hello,
do you tried our Whois script?"
i tried but i am getting the same errors as follows,
Warning: include(/home/pbminfot/public_html/classes/whois/server_list.php) [function.include]: failed to open stream: No such file or directory in /home/pbminfot/public_html/girish/classes/whois/multi_whois_list.php on line 2
Warning: include() [function.include]: Failed opening '/home/pbminfot/public_html/classes/whois/server_list.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/pbminfot/public_html/girish/classes/whois/multi_whois_list.php on line 2
Warning: include(/home/pbminfot/public_html/classes/whois/whois_class.php) [function.include]: failed to open stream: No such file or directory in /home/pbminfot/public_html/girish/classes/whois/multi_whois_list.php on line 3
Warning: include() [function.include]: Failed opening '/home/pbminfot/public_html/classes/whois/whois_class.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/pbminfot/public_html/girish/classes/whois/multi_whois_list.php on line 3
Fatal error: Class 'Whois_domain' not found in /home/pbminfot/public_html/girish/classes/whois/multi_whois_list.php on line 6
Olaf posted on 2010-02-19 09:42:01 #
Hi,
the error's you get are related to your php script, you need to use the right paths to your scripts and classes. I didn't wrote a manual for this class because it's a script for hosting professionals. If someone can't setup a whois script how is it possible to setup more complex API based scripts for domain registrations.
It's not personal, just my two cents.
If you have at least basis PHP skills you should be able to run that script (check the latest version on this website)
girishbmgowda posted on 2010-02-19 10:17:44 #
Quote from: Olaf
"Hi,
the error's you get are related to your php script, you need to use the right paths to your scripts and classes. I didn't wrote a manual for this class because it's a script for hosting professionals. If someone can't setup a whois script how is it possible to setup more complex API based scripts for domain registrations.
It's not personal, just my two cents.
If you have at least basis PHP skills you should be able to run that script (check the latest version on this website)"
Hi olaf,
you are right, i didn't placed it in right path, but how to show the o/p of server details in proper way...
Olaf posted on 2010-02-19 10:29:30 #
but how to show the o/p of server details in proper way...
what do you mean with this?
do you tried the whois function on my site?
girishbmgowda posted on 2010-02-19 10:49:06 #
Quote from: Olaf
"
but how to show the o/p of server details in proper way...
what do you mean with this?
do you tried the whois function on my site?"
ya... i am getting output like , as shown below
-------------------------------------------------
Redirected to whois.godaddy.com][Querying whois.godaddy.com][whois.godaddy.com]The data contained in GoDaddy.com, Inc.'s WhoIs database,while believed by the company to be reliable, is provided "as is"with no guarantee or warranties regarding its accuracy. Thisinformation is provided for the sole purpose of assisting youin obtaining information about domain name registration records.Any use of this data for any other purpose is expressly forbidden without the prior writtenpermission of GoDaddy.com, Inc. By submitting an inquiry,you agree to these terms of usage and limitations of warranty. In particular,you agree not to use this data to allow, enable, or otherwise make possible,dissemination or collection of this data, in part or in its entirety, for anypurpose, such as the transmission of unsolicited advertising andand solicitations of any kind, including spam. You further agreenot to use this data to enable high volume, automated or robotic electronicprocesses designed to collect or compile this data for any purpose,including mining this data for your own personal or commercial purposes.Please note: the registrant of the domain name is specifiedin the "registrant" field. In most cases, GoDaddy.com, Inc.is not the registrant of domain names listed in this database.Registrant: PBM Group 19, 38th Main, 4th Cross, BTM 2nd Stage Bangalore, Karnataka 560068 India Registered through: GoDaddy.com, Inc. (http://www.godaddy.com) Domain Name: PBMINFOTECH.COM Created on: 15-Nov-09 Expires on: 15-Nov-10 Last Updated on: 20-Nov-09 Administrative Contact: Jesudass, Johnson support@pbm.co.in PBM Group 19, 38th Main, 4th Cross, BTM 2nd Stage Bangalore, Karnataka 560068 India 08026689921 Fax -- 08026689918 Technical Contact: Jesudass, Johnson support@pbm.co.in PBM Group 19, 38th Main, 4th Cross, BTM 2nd Stage Bangalore, Karnataka 560068 India 08026689921 Fax -- 08026689918 Domain servers in listed order: NS1.PBMINFOTECH.COM NS2.PBMINFOTECH.COM
-------------------------------------------------
but your's is giving in a proper alignment... so
Olaf posted on 2010-02-19 11:03:53 #
The Whois response is just a string, you can break the lines this way:
<?php echo nl2br($my_whois->info); ?>
or create an array from that string using
$arr = explode(PHP_EOL, $my_whois->info)
girishbmgowda posted on 2010-02-19 11:18:42 #
Quote from: Olaf
"The Whois response is just a string, you can break the lines this way:
<?php echo nl2br($my_whois->info); ?>
or create an array from that string using
$arr = explode(PHP_EOL, $my_whois->info)"
Hi , if u dont mind means plz have a look at my code
<body >
<?php if ($whois_detail->info != "") { ?>
<h2><?php echo "Whois ".$whois_detail->compl_domain."?" ?></h2>
<?php echo nl2br($whois_detail->info); ?>
<?php } ?>
</body>
now i need to split into address , expirary date, activation date, contact person, domain name like that
Olaf posted on 2010-02-19 11:32:49 #
now i need to split into address , expirary date, activation date, contact person, domain name like that
this is actually a problem because the data is very different for each whois server or tld.
You need to count the rows for each tld and extract them this way
girishbmgowda posted on 2010-02-19 11:38:49 #
Quote from: Olaf
"
now i need to split into address , expirary date, activation date, contact person, domain name like that
this is actually a problem because the data is very different for each whois server or tld.
You need to count the rows for each tld and extract them this way"
Hi,
this is the link http://pbminfotech.com/classes/whois/multi_whois_list.php
girishbmgowda posted on 2010-02-19 11:40:40 #
Quote from: Olaf
"
now i need to split into address , expirary date, activation date, contact person, domain name like that
this is actually a problem because the data is very different for each whois server or tld.
You need to count the rows for each tld and extract them this way"
Hi,
here is the link http://pbminfotech.com/classes/whois/multi_whois_list.php
Olaf posted on 2010-02-19 11:42:00 #
which mode do you use?
linux (whois command line tool)
or
win (php socket connection)
girishbmgowda posted on 2010-02-19 12:14:49 #
Quote from: Olaf
"which mode do you use?
linux (whois command line tool)
or
win (php socket connection)"
i am using socket connection mode . i mean my server use linux... i will use dreamviewer as IDE....
Olaf posted on 2010-02-19 12:36:03 #
try the linux mode (if the whois command line tool is enabled) maybe that both methods have a different output.
girishbmgowda posted on 2010-02-19 12:41:48 #
Quote from: Olaf
"try the linux mode (if the whois command line tool is enabled) maybe that both methods have a different output."
hi olaf,
dont be hesitate of my posts n replies, can u please explain me in details.How to work in linux mode n how to enable whois command line tool enable in linux mode. plz support me
Olaf posted on 2010-02-19 12:48:18 #
no it's not related to the method on how the script gets the information.
Seems to me that your server gives a different response than here on this site. (btw. this way I was able to fix my script after moving to this server)
If you can use the "linux" mode because you get better information.
If you try your server first with the file called "whois_servertest.php" you will see how the response is.
Olaf posted on 2010-02-19 12:49:29 #
how to enable whois command line tool enable in linux mode. plz support me
You're not owner of the server right? You need to ask that the hosting provider (normally the user of this script)
girishbmgowda posted on 2010-02-19 12:53:09 #
Quote from: Olaf
"
how to enable whois command line tool enable in linux mode. plz support me
You're not owner of the server right? You need to ask that the hosting provider (normally the user of this script)"
i can get the server details like control panel , ftp details n all...
Olaf posted on 2010-02-19 13:08:09 #
Quote from: girishbmgowda
i can get the server details like control panel , ftp details n all..."
You need root access via SSH, the script works try the test file first (put it on your website and let me know about)