Hi,
I'm trying to make a socket-connection on port 119 of Google in order to fetch threads in a specific newsgroup,but no matter what I do I keep on getting time-out problems, the connection part looks something like:
<?php
//$newsurl is returned from some function in the script
$newsurl = "http://www.google.com";
$host = parse_url($newsurl);
$fp = @fsockopen($host['host'],119,$errno,$errstr,20);
if($fp)
{
echo"alrighty";
fclose($fp);
}
else
{
echo"$errstr($errno)";
}
?>
Am I doing something wrong here???
Thnkz!