We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example: thisdomain.doesnotexistatall $domain->isAvailable() returns TRUE
The text was updated successfully, but these errors were encountered:
Fixes regru#32: method isAvailable() returns TRUE when extension does…
76a6f37
…n't exist Signed-off-by: NabiKAZ <[email protected]>
I fixed this bug. After accept pull request you can try this:
<?php require_once __DIR__.'/../vendor/autoload.php'; $sld = ' thisdomain.doesnotexistatall'; try { $domain = new Phois\Whois\Whois($sld); } catch (InvalidArgumentException $e) { die($e->getMessage()."\n"); } if ($domain->isAvailable()) { echo "Domain is available\n"; } else { echo "Domain is registered\n"; }
Output:
Domain name isn't valid!
Or you can get a fork from my repository: https://github.com/NabiKAZ/php-whois/
Sorry, something went wrong.
No branches or pull requests
Example:
thisdomain.doesnotexistatall
$domain->isAvailable() returns TRUE
The text was updated successfully, but these errors were encountered: