I have found several PHP scripts that pull in the WHOIS data for a domain name, but I'm looking for a method to pull in the domain name status. None of the scripts that I've found thus far do that.

I want to use it to check for domain name availability similar to the way that Domain Tools' Bulk Checker does it.

Bulk Check

They determine the domain status as one of the following:

Available (Previously registered)
Registered (Active website)
Registered (Parked or redirected)
Registered (No website)
On-Hold (Generic)
On-Hold (Redemption Period)
On-Hold (Pending Delete)

Does anyone know where this data is coming from?