automatic login to another website


<?php
echo function_exists('curl_init')
    ? 'cURL is enabled'
    'cURL is NOT enabled';
?>
<?php
    $username 'xxxxxx';
    $password 'yyyyy1';

    $url 'http://www.fracsoft.com/';

    $context stream_context_create(array(
        'http' => array(
            'header'  => "Authorization: Basic " base64_encode("$username:$password")
        )
    ));
    $data file_get_contents($urlfalse$context);
    // echo $data?>

No comments:

Post a Comment