|
Posted by Heiko Richler on 08/02/07 15:04
Joff wrote:
> I'm running PHP on IIS and need to set basic authentication on a
> particular folder, e.g http://domain.com/private/
> I've set the user on the server and assigned permissions to the
> folder.
>
> When requesting files within the folder, I get the login/password
> prompt and entering the correct credentials gives me the file, except
> for .php files.
>
> The .php file is as basic as they come with just <?php echo "Hello
> world"; ?> as the contents.
>
> http://domain.com/private/test.txt works perfectly, however
> http://domain.com/private/test.php denies access, giving only:
> "Unauthorized
> Access is denied due to invalid credentials."
>
> I've tried giving the user full permissions; I've ensured that
> Application Settings configuration within IIS Manager properties >
> Home Directory, allows PHP files.
>
>
> Any other suggestions?
What you describe sounds like windows integrated authentication not like
basic authentication. In this cases the user login on needs access to
the file on the server. If it is what you mean, the user may even need
the rights to execute that .php file as well as the right to execute php
itself.
Heiko
[Back to original message]
|