Дмитрий Лейкин (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

  • 302: lj_dev

    In the interests of consolidating all LiveJournal development-related discussion, we're going to be closing down this community. The same…

  • Plain text to LJ

    I have an old blog from xanga that's in html/plain text and I want to move it over here. Which client would be the best to do this? I also want to…

  • ljKlient 0.2.0 Preview Release 1

    Today marks another milestone in the development of ljKlient — as the first preview of the 0.2 series is released.  Please go to the project…

  • 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