Sublime directory Surf the web anonymous Pagerank Monitor


PHP Whois script :: all queries give the result "free"

keeshofman
Thu 4 May 2006, 03:52 pm GMT +0300
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?

olaf
Thu 4 May 2006, 03:59 pm GMT +0300
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.

keeshofman
Thu 4 May 2006, 05:57 pm GMT +0300
That was the solution

It work just fine

Thanks for your effort

olaf
Thu 4 May 2006, 05:59 pm GMT +0300
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!

Klor
Thu 30 November 2006, 08:47 am GMT +0200
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.

Klor
Thu 30 November 2006, 08:52 am GMT +0200
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 :)

olaf
Thu 30 November 2006, 09:45 am GMT +0200
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?

Klor
Thu 30 November 2006, 09:49 am GMT +0200
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..

olaf
Thu 30 November 2006, 10:25 am GMT +0200
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 ;) try the example file without redirection

CaSau
Sun 13 May 2007, 10:32 pm GMT +0300

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.

CaSau
Sun 13 May 2007, 10:34 pm GMT +0300
Also, in the whois_example.php page, I place a checked mark next to "show all info"  but nothing happens.

olaf
Sun 13 May 2007, 10:35 pm GMT +0300
do you read this thread?

CaSau
Sun 13 May 2007, 11:00 pm GMT +0300
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. 

olaf
Sun 13 May 2007, 11:12 pm GMT +0300
I guess your server doesn't allow the whois linux command
so try the "win" option

CaSau
Sun 13 May 2007, 11:29 pm GMT +0300

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

CaSau
Sun 13 May 2007, 11:33 pm GMT +0300

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.

olaf
Sun 13 May 2007, 11:33 pm GMT +0300

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

win = socket
linux = command line

CaSau
Mon 14 May 2007, 06:45 am GMT +0300
Sorry, I thought win is windows.  My bad.

olaf
Mon 14 May 2007, 09:31 am GMT +0300
Sorry, I thought win is windows.  My bad.


:) 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)

Archive for SMF v1.00 by N.P. Valid XHTML 1.0 Transitional