Jump to content

fsockopen connection timed out


rickytenzer

Recommended Posts

Hey everyone,

 

I'm trying to use email validation on my website that incorporates fsockopen to check domains. The function exists on my server, but it times out every time it's called. It's being called properly:

 

fsockopen('google.com',25,$errno,$errstr,25);

 

Anyone know why this could be happening? Is there another way that I can verify the domain without using getmxrr or checkdnsrr (which both don't work because I'm on PHP 5.2.5 on a Windows platform)?

 

Thanks

 

Link to comment
https://forums.phpfreaks.com/topic/183052-fsockopen-connection-timed-out/
Share on other sites

Got a response from my hosting company. They simply told me to change the port to 80 and it worked! However, for some reason, once I get a true value out of it, if I change the email address back to a BAD domain, it won't work unless I remove all the text after the @ and it fails the basic ereg test. If I do that, then it will check the domain properly.

 

Anyone know why?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.