Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8047349
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T06:04:10+00:00 2026-06-05T06:04:10+00:00

Anyone tell me why I’m getting the error Class ‘Whois’ not found. It’s something

  • 0

Anyone tell me why I’m getting the error “Class ‘Whois’ not found”. It’s something to do with the line $whois = new Whois(); but I’m not sure what.

<form method="post" action="">
  <div style="margin:auto;width:300px;">
  <label for="domain name">Domain Check:</label><br />
  <input type="text" name="domain" /><br /><br />
  <input type="submit" />
</form>
<br />
<?php
if (isset($_REQUEST['domain'])) { // check to see if form has been submitted
function getwhois($domain, $tld)
{
require_once("whois.class.php");

$whois = new Whois();

if( !$whois->ValidDomain($domain.'.'.$tld) ){
    return 'Sorry, the domain is not valid or not supported.';
    }

if( $whois->Lookup($domain.'.'.$tld) ){
    return $whois->GetData(1);
    }else{
    return 'Sorry, an error occurred.';
    }
}

$domain = trim($_REQUEST['domain']);

$dot = strpos($domain, '.');
$sld = substr($domain, 0, $dot);
$tld = substr($domain, $dot+1);

$whois = getwhois($sld, $tld);

echo "

";
echo $whois;
echo "
";
}
?>
</div>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T06:04:12+00:00Added an answer on June 5, 2026 at 6:04 am

    Make sure you’re loading this from the right directory

    require_once("whois.class.php");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

can anyone tell me why i am getting this error? because of that I'm
Can anyone tell me what reasons exceptions can have, not to be compatible with
Can anyone tell me why this code would throw an undefined is not a
Can anyone tell me why my icon in div id=combinedClasp is not centering on
Can anyone tell me why the following code might not cycle through the array
Can anyone tell me what is the difference between build and new command on
Can anyone tell me if the following CSS is valid? .class { background-color:none; }
can anyone tell me the function of following code. is the code line NSString*
Can anyone tell where i am wrong because its just a simple process but
Can anyone tell me why this code would not be working? $('body').on('test', function() {

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.