?

Log in

No account? Create an account
June 4th, 2006 - LiveJournal Client Discussions — LiveJournal [entries|archive|friends|userinfo]
LiveJournal Client Discussions

[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

June 4th, 2006

I cannot to send any request (PHP) [Jun. 4th, 2006|02:37 pm]
LiveJournal Client Discussions

lj_clients

[dilesoft]
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?
link2 comments|post comment

navigation
[ viewing | June 4th, 2006 ]
[ go | Previous Day|Next Day ]