[PHP-DEV] opening htaccess-protected remote files From: Michael Schüller (ms <email protected>)
Date: 05/10/00

Hi,

I tried to open (and read) htaccess-protected files with 1.file() and
2.fread() like this:

1.
$url = "email protected>?subject=Re:%20[PHP-DEV]%20opening%20htaccess-protected%20remote%20files&replyto=3919541B.92A05115 <email protected>">password <email protected>">http://user:password <email protected>";
$string = implode("\n", file($url));

2.
$url = "email protected>?subject=Re:%20[PHP-DEV]%20opening%20htaccess-protected%20remote%20files&replyto=3919541B.92A05115 <email protected>">password <email protected>">http://user:password <email protected>";
$fd = fopen ($url, "r");
$contents = fread ($fd, 1000000);
fclose ($fd);

Both gives me "unknown error".
Can anybody help?

Michael

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>