Somehow, I work on a small PHP / script website, and as one of the functions that I would like to use to search for WHOIS in the current domain that the PHP script is running on.
Ideally, this would be one function that I could name, and in the function, it launched WHOIS, and then echoed the results on the screen. The WHOIS URL will require the website URL, or it will just run it in the current URL / domain (this is what I want), although I can supply it as a variable for the website domain if necessary.
I know little about WHOIS searches (well, I know what they do, I just donβt know how to run them in PHP), but I will also be fine with a request to another site (even one of my own, if you can give me code for it).
Whatever works, just let me know! The main thing is that I would prefer it to correspond to all in one function, and it should definitely fit into one PHP file / document.
php whois
Alper
source share