22, November 2008

PHP Whois script :: all queries give the result "free" - webmaster forum

 
Webdigity webmaster forums
This forum shares its ad revenue with its members!
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  PHP classes @finalwebsites.com  >  PHP Whois script (Moderator: Olaf)
Topic: PHP Whois script :: all queries give the result "free"
« previous next »
Pages: [1] Print

Author Topic: PHP Whois script :: all queries give the result "free"  (Read 2665 times)
Google dot what?
*
Posts: 2
16 credits
Members referred : 0


« on: May 04, 2006, 03:52:27 PM »

When i use your PHP Whois script ver. 1.21 and run the PHP page with for example etretertrt.com or another extension it always says that the domein name is registrated but it isn't registrated at all.

All the files are in the same directory and i have changed the document root to the right path.

Are I am doing something wrong? Can someone help me with this?
« Last Edit: May 04, 2006, 04:00:23 PM by olaf »
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6440
39464 credits
Members referred : 374


It's time to use PHP5!


« Reply #1 on: May 04, 2006, 03:59:16 PM »

When i use your PHP Whois script ver. 1.21 and run the PHP page with for example etretertrt.com or another extension it always says that the domein name is registrated but it isn't registrated at all.

All the files are in the same directory and i have changed the document root to the right path.

Are I am doing something wrong? Can someone help me with this?

Hello,

are you using the script on a windows host?

try both settings for this variable:
Quote
   var $os_system = "win"; // switch between "linux" and "win"

why? "win" is using fsockopen and with "linux" the whois module is used via the exec() functions.


Last blog : Just a better Internet portal provided by Google
Google dot what?
*
Posts: 2
16 credits
Members referred : 0


« Reply #2 on: May 04, 2006, 05:57:10 PM »

That was the solution

It work just fine

Thanks for your effort
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6440
39464 credits
Members referred : 374


It's time to use PHP5!


« Reply #3 on: May 04, 2006, 05:59:23 PM »

That was the solution

It work just fine

Thanks for your effort

You're welcome, it was time to make this standard answer "public", Thank you for joining this community!


Last blog : Just a better Internet portal provided by Google
I crack Photoshop!
*
Posts: 3
18 credits
Members referred : 0


« Reply #4 on: Nov 30, 2006, 08:47:41 AM »

I'm getting the same problem, but I'm running on a linux server and checked the code and its okay..
I have the source file which i placed code from the example php form directly into, and then made a folder classes/whois and put all the files inside that, even edited the chmod on them just in case there was something they needed from that... still everything comes up as registered.
Also, while i'm asking, if by chance anyone knows of a way i could make it so that if it is successful you have the option to add it to a basket? I'm planning on installing paypal on the site seeing as it seems to be something that will work and not cost a rediculous monthly fee for some cart.
Cheers for ANY help! And sorry yeah, I am new at php. Exuse my dumb-ness.
I crack Photoshop!
*
Posts: 3
18 credits
Members referred : 0


« Reply #5 on: Nov 30, 2006, 08:52:37 AM »

okay sorry don't worry about the part with the returning the same thing always. i went through the whois_class.php and found two references to 'win' instead of linux, and changed them manually. Didn't realise i had to do that, i thought it would be all variable based. Now just have to figure out how to stop redirection Smiley
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6440
39464 credits
Members referred : 374


It's time to use PHP5!


« Reply #6 on: Nov 30, 2006, 09:45:09 AM »

The whois is class has a more experienced target group, thats why there is no manual.

is you redirection problem related to the whois class?


Last blog : Just a better Internet portal provided by Google
I crack Photoshop!
*
Posts: 3
18 credits
Members referred : 0


« Reply #7 on: Nov 30, 2006, 09:49:31 AM »

yeah i think so. when the domain is registered, it comes up with a message saying so. When it isn't registered it automatically redirects to a site called NetFirms. Two other little  questions; it takes awhile to load when you press check, is that server related or is the script generally slowish..
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6440
39464 credits
Members referred : 374


It's time to use PHP5!


« Reply #8 on: Nov 30, 2006, 10:25:24 AM »

yeah i think so. when the domain is registered, it comes up with a message saying so. When it isn't registered it automatically redirects to a site called NetFirms. Two other little  questions; it takes awhile to load when you press check, is that server related or is the script generally slowish..

the script is fast as the whois server Wink try the example file without redirection


Last blog : Just a better Internet portal provided by Google
Kill the googlebot
*
Posts: 6
36 credits
Members referred : 0


« Reply #9 on: May 13, 2007, 10:32:18 PM »


I am getting "Registered" for any domain under the sun even if it's not registered.

I created a dir/sub directories under my root web for /classes/whois with 644 for permission on both directories.
I ran the example php file and get "registered" for real and fake domain name. 

I also checked and make sure that the setting is set for "linux" in the whois_class.php file.

Any help would be appreciated.  Thanks.
Kill the googlebot
*
Posts: 6
36 credits
Members referred : 0


« Reply #10 on: May 13, 2007, 10:34:14 PM »

Also, in the whois_example.php page, I place a checked mark next to "show all info"  but nothing happens.
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6440
39464 credits
Members referred : 374


It's time to use PHP5!


« Reply #11 on: May 13, 2007, 10:35:15 PM »

do you read this thread?


Last blog : Just a better Internet portal provided by Google
Kill the googlebot
*
Posts: 6
36 credits
Members referred : 0


« Reply #12 on: May 13, 2007, 11:00:27 PM »

Hello Olaf,

Yes, I read this thread.  Maybe I am missing the point people are saying or something.  I reread it and verified that I did like everyone suggested. Could you point it out for me please. 
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6440
39464 credits
Members referred : 374


It's time to use PHP5!


« Reply #13 on: May 13, 2007, 11:12:52 PM »

I guess your server doesn't allow the whois linux command
so try the "win" option


Last blog : Just a better Internet portal provided by Google
Kill the googlebot
*
Posts: 6
36 credits
Members referred : 0


« Reply #14 on: May 13, 2007, 11:29:16 PM »


Why "win"?  I am on a linux server.
Kill the googlebot
*
Posts: 6
36 credits
Members referred : 0


« Reply #15 on: May 13, 2007, 11:33:01 PM »


I tried "win" and it worked.  Weird.  Why would selecting the "win" , I assumed that means Windows, make it work?  Anyway, that doesn't make sense.
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6440
39464 credits
Members referred : 374


It's time to use PHP5!


« Reply #16 on: May 13, 2007, 11:33:34 PM »


Why "win"?  I am on a linux server.

win = socket
linux = command line


Last blog : Just a better Internet portal provided by Google
Kill the googlebot
*
Posts: 6
36 credits
Members referred : 0


« Reply #17 on: May 14, 2007, 06:45:53 AM »

Sorry, I thought win is windows.  My bad.
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6440
39464 credits
Members referred : 374


It's time to use PHP5!


« Reply #18 on: May 14, 2007, 09:31:55 AM »

Sorry, I thought win is windows.  My bad.


Smiley actually, I used that naming convention with the idea that the whois command is available for all linux hosting accounts (maybe I should change that)


Last blog : Just a better Internet portal provided by Google
I love Pokemon
*
Posts: 13
88 credits
Members referred : 0


« Reply #19 on: Oct 22, 2008, 09:17:42 AM »

My question is the same with you.
And i think i get the answer now!
and thank you!
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=2417
Tags : php domains whois linux Bookmark this thread : Digg Del.icio.us Dzone more....

Topic sponsors:
Get a permanent link here for $1.99!


Pages: [1] Print 
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  PHP classes @finalwebsites.com  >  PHP Whois script (Moderator: Olaf)
Topic: PHP Whois script :: all queries give the result "free"
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
Nov 22, 2008, 12:20:59 PM





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!


Forum Statistics
Total Posts: 37.736
Total Topics: 7.650
Total Members: 4.396
Tutorials : 56
Resources : 143
Designs : 220
Latest Member: thomas09

29 Guests, 4 Users online :

12 users online today:



Readers

Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2008 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.