jscix Posted May 17, 2007 Share Posted May 17, 2007 $who_is = fsockopen($server, 43, $errn,$errstr) or die ("$errn - $errstr"); It simply keeps timing out, I don't know what the issue is, I can connect with telnet just fine.. Anyone? ??? Link to comment https://forums.phpfreaks.com/topic/51877-solved-fsockopen-timing-out/ Share on other sites More sharing options...
phast1 Posted May 17, 2007 Share Posted May 17, 2007 Check the value of $server and make sure that it has udp:// in front of the host name.. It looks like you are trying to connect to port 43, which I assume is for a WHOIS service.. WHOIS uses UDP port 43, not TCP port 43.. Link to comment https://forums.phpfreaks.com/topic/51877-solved-fsockopen-timing-out/#findComment-255688 Share on other sites More sharing options...
jscix Posted May 17, 2007 Author Share Posted May 17, 2007 Doh, I was using http:// Thanks alot, that resolved the issue.... Link to comment https://forums.phpfreaks.com/topic/51877-solved-fsockopen-timing-out/#findComment-255689 Share on other sites More sharing options...
phast1 Posted May 17, 2007 Share Posted May 17, 2007 No problem at all Please click 'Topic Solved' Link to comment https://forums.phpfreaks.com/topic/51877-solved-fsockopen-timing-out/#findComment-255698 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.