Copy documents for another site.

From: Date: Mon, 19 Jul 2010 16:33:02 +0000
Subject: Copy documents for another site.
Groups: php.general 
Request: Send a blank email to php-general+get-307013@lists.php.net to get a copy of this message
Hello I create one site like document menage system and nide to take some date information from another site. The problem is a don't have access to date base. The site from who I need to take infomations use .htdacces but I have user and password for enter to site and i look the information. I write one php scripte but is not work. Do you somebody know how can I copy inflammations from this site to mine (from this site to my database) Thanks a lot and this is a php scirpte <?php $url = 'url site'; $username='user'; $password='pass'; $context = stream_context_create(array(
    'http' => array(
        'header'  => "Authorization: Basic " . base64_encode("$username:$password")
    )
)); $data = file_get_contents($url, false, $context); echo $data; echo file_get_contents("http://$username:$password@site/meetings/"); ?>

« previous php.general (#307013) next »