So anyways, I\'m working on a small PHP website/script, and as one of the features I\'d like to be able to run a WHOIS lookup on the current domain the PHP script is running
This should do exactly what you want... http://www.phpwhois.org/
I've used this class before, doing exactly what you want!