Re: Can I fopen() files in .htaccess protected directories?

From: Date: Sun, 07 Apr 2002 09:21:57 +0000
Subject: Re: Can I fopen() files in .htaccess protected directories?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-91915@lists.php.net to get a copy of this message
On Sat, 6 Apr 2002, Dalton Hunter wrote: > Hi, does fopen() support the opening and reading of remote files in > directories protected with .htaccess files like ... > > > fopen("http://user:password@www.domain.com/directory/file.php","r"); > > If not, is there an alternative way to do this? Thanks! If you're only going to be reading it from inside your PHP program, why not just put the target resource at a secret URL rather than behind .htaccess password protection? That's pretty much equivalent to a password. miguel

« previous php.general (#91915) next »