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))

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top