Дмитрий Лейкин (dilesoft) wrote in lj_clients,
Дмитрий Лейкин
dilesoft
lj_clients

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?
Subscribe
  • Post a new comment

    Error

    Comments allowed for members only

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

  • 2 comments