سؤال

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