Mailinglisten-Archive |
> Hallo Rene, > Ich verwende dafür Curl: > > // create a new curl resource > $ch = curl_init(); > > // set URL and other appropriate options curl_setopt ($ch, > CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 5.01; > Windows NT 5.0)"); curl_setopt($ch, CURLOPT_URL, > www.entfernteAdresse.de); curl_setopt($ch, CURLOPT_USERPWD, > "USER:PASSWORD"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, > true); //curl_setopt($ch, CURLOPT_HEADER, 1); > > // grab URL, and return output > $output = curl_exec($ch); > > // close curl resource, and free up system resources curl_close($ch); Sry...das fehlte noch: curl_close($ch); Gruß Achim
php::bar PHP Wiki - Listenarchive