opening htaccess-protected remote files

From: Date: Wed, 10 May 2000 12:20:43 +0000
Subject: opening htaccess-protected remote files
Groups: php.dev 
Request: Send a blank email to php-dev+get-18566@lists.php.net to get a copy of this message
Hi, I tried to open (and read) htaccess-protected files with 1.file() and 2.fread() like this: 1. $url = "http://user:password@www.domain.com"; $string = implode("\n", file($url)); 2. $url = "http://user:password@www.domain.com"; $fd = fopen ($url, "r"); $contents = fread ($fd, 1000000); fclose ($fd); Both gives me "unknown error". Can anybody help? Michael

« previous php.dev (#18566) next »