Copy documents for another site.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/";);
	
	
	

?>

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux