<?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($url, false, $context);
// echo $data?>
No comments:
Post a Comment