June 4th, 2006

9may

I cannot to send any request (PHP)

Hello!

I copy this code from: http://www.livejournal.com/developer/embedding.bml?method=php


$fp = fsockopen("www.livejournal.com", 80, &$errno, &$errstr, 30);
if($fp) {
fputs($fp,"GET /\n\n");
while(!feof($fp)) {
echo fgets($fp,128);
}
fclose($fp);
}

But when I open page, it opens too long time and don't open.

I try to write:

$fp = fsockopen("www.microsoft.com", 80, &$errno, &$errstr, 30);

and all OK!

What the trouble with www.livejournal.com server?