Blame The Drugs (bobert225) wrote in lj_clients,
Blame The Drugs
bobert225
lj_clients

Sorry for not being more specific with my last post...I am having some problems with my client's PHP code...
MY CODE IS:

?php
$host = "www.livejournal.com";
$fp = fsockopen( "$host", 80, &$errno, &$errdesc);
if ( ! $fp )
die ( "Coudln't connect to $host:\nError: $errno\nDesc: $errdesc\n" );
$request = "POST /interface/flat HTTP/1.0\r\n";
$request. = Host: $host\r\n";
$request. = "Content-type: application/x-www-form-urlencoded\r\n";
$request. = "Content-length: 34\r\n";
$request. = "mode=login&user=bobert225&password=force&clientversion="PHPUpdate/V1.0.1"\r\n";
fputs ( $fp, $request );
fclose( $fp );
?



It is giving me parsing errors on the lines that say "$request=".

-bobert
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

  • 9 comments