Date: 05/10/00
- Next message: richard <email protected>: "[PHP-DEV] PHP 4.0 Bug #4371: Cannot redeclare class ..."
- Previous message: bengt.nilsson <email protected>: "[PHP-DEV] PHP 4.0 Bug #4370: Problem w gd/ljpeg (3.0.16)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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>
- Next message: richard <email protected>: "[PHP-DEV] PHP 4.0 Bug #4371: Cannot redeclare class ..."
- Previous message: bengt.nilsson <email protected>: "[PHP-DEV] PHP 4.0 Bug #4370: Problem w gd/ljpeg (3.0.16)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

