Page 1 of 1
Can you add a whois lookup to your own website?
Posted: Wed Aug 02, 2017 10:26 am
by simonmlewis
We want to give our customers the chance to check if their domain is available, via our own site, rather than taking them away elsewhere.
Once they know, we can guide them to our favoured domain registrars.
I did find one called Speedy something, but it uses *.php, and we want to keep it within our own .inc template.
Any suggestions would be great.
Re: Can you add a whois lookup to your own website?
Posted: Wed Aug 02, 2017 4:35 pm
by requinix
simonmlewis wrote:I did find one called Speedy something, but it uses *.php, and we want to keep it within our own .inc template.
So what you're saying is that you have PHP code in one file and you wish it was in another file? What's the problem with copying it? Is there a license protecting the original? Then you'll either have to find a way to work Speedy into your system, or find another source.
Re: Can you add a whois lookup to your own website?
Posted: Wed Aug 02, 2017 4:45 pm
by simonmlewis
I did try to put the code into a *.inc file but there were so many files attached to it, it seemed overkill anyway.
Hence why I wondered if there was a simpler way.
Re: Can you add a whois lookup to your own website?
Posted: Wed Aug 02, 2017 5:44 pm
by requinix
There is.
I don't know what you expect to happen here. Some solution is not going to magically present itself to you. Someone is not going to tell you "oh it's easy, just call this one function".
"Oh, but there are multiple files." Have you never worked with code that used two or more files?
You have code. Read it. Then adapt it into your site.
Re: Can you add a whois lookup to your own website?
Posted: Wed Aug 02, 2017 8:12 pm
by Celauran
Is it
this? If so, take a look at index.php, specifically lines 150 to 170. That's effectively all you need to incorporate into your existing codebase. You'll need to leave the directory structure in place since it doesn't use autoloading, but you can always call out to it from wherever you need to.