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