Question

i am using this code to connect to the whois vpb_domain_whois is a array the code works fine in my localhost, but when uploaded to my host shows error could not connect to the server :

if($vpb_socket = fsockopen($vpb_domain_whois[0], 43))

Was it helpful?

Solution

Is correct port open on live site?

This is usually the problem with fsockopen on hosting servers like hostgator, godaddy etc.

You can ask them to open the port.

It seems godaddy, doesn't open ports at all.

I had success with hostgator, they will open ports > 1000 if I remember correctly. But ask sales team before getting account with them.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top