rickytenzer Posted November 26, 2009 Share Posted November 26, 2009 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 More sharing options...
rickytenzer Posted November 26, 2009 Author Share Posted November 26, 2009 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? Link to comment https://forums.phpfreaks.com/topic/183052-fsockopen-connection-timed-out/#findComment-966088 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.